Click to See Complete Forum and Search --> : How can I "edit" a .src.rpm?
LukeM
11-25-2000, 09:47 AM
I need to "edit" a .src.rpm file so I can change CFLAGS from "-march=pentium..." to "-march=k6". How would I do that? I've tried opening up the .src.rpm with emacs but it is unreadable. Does anyone else have any ideas?
Luke
KumaSan
11-25-2000, 12:39 PM
Ok, I believe that you still have to use rpm to unpack the .rpm. That should put the source into a form that's readable by emacs. I'm at work so I can't give you the exact options for rpm, or where it will put the source, but I hope I at least pointed you in the right direction.
------------------
jaa, mata-ne...
LukeM
11-25-2000, 01:05 PM
Yes I know I can unpack the .src.rpm and then configure/make/install the source myself but I want to use Mandrake build scripts in the .src.rpm I just want to edit their build scripts to change CFLAGS.
Luke
Sweede
11-25-2000, 01:09 PM
rpm --rebuild package.src.rpm
wait till it starts the configure part of the compiling
^z (control+z)
then goto
/usr/src/redhat/SPECS
and copy the spec file to somewhere (/root/ ?)
edit the spec file as needed, then run
rpm -bb package.spec
and you'll build finished RPMS and the SRC.RPM