Guest Posted November 11, 2002 Report Share Posted November 11, 2002 to unpack a src.rpm change it then repack it to a src.rpm regards ric Quote Link to comment Share on other sites More sharing options...
qeldroma Posted November 12, 2002 Report Share Posted November 12, 2002 I do it with mc (midnightcommander). It browses through tar.gz, zip, tar AND , that's the clue: RPM. It browses like normal directories, so you can copy with it, like with all other dirs... Quote Link to comment Share on other sites More sharing options...
Guest Posted November 12, 2002 Report Share Posted November 12, 2002 thanks ild have a look at that when i get home regards Ric Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted November 13, 2002 Report Share Posted November 13, 2002 Yes it is possible. I did it for freetype2. First install the src.rpm. example: package-1.0-1mdk.src.rpm: rpm -i package-1.0-1mdk.src.rpm Then go to /usr/src/RPM/SOURCES and tar xzf package.tar.gz (the package where you have changes to make). Do your changes inside the newly created package/ directory. After that rm -f package.tar.gz tar czf package.tar.gz package Next, you should go to /usr/src/RPM/SPECS and edit the package.spec file. In the "release" section, change "1mdk" to something unique; eg: "1mdk1me" and save your change (you can also change the compile options; I did that for php). Finally, in that same directory, execute rpm -ba ./package.spec That's all from 1year-old memory, so be creative and adapt it if needed. And read the rpm man page in case of trouble. I almost forgot: the new src.rpm will be in /usr/src/RPM/SRPMS and the binary package should be in /usr/src/RPM/RPMS/i686. I hope this helps. Yves. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.