Jump to content

is it posibble


Guest
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...