Packaging wireshark... what can I say, it didn't go smoothly but then again after reading some other posts on packaging, I quickly realized how lucky I had it.
I simply used Prof. Tyler's steps to making the SPEC file:
rpmdev-setuptree
1. get tarball, put in ~/rpmbuild/SOURCES
2. Go to ~/rpmbuild/SPECS
> RUN rpmdev-newspec [name]
3. Edit name.spec
4. rpmbuild -ba name.spec
I didn't have to change much on the spec file. At first all I did was fill in the meta data and ran the rpmbuild hoping on a miracle. Everything seemed to be going surprisingly smoothly...no errors (warnings, but no errors)...A few minutes later when everything was complete, I went to check my RPM and SRPM directories...and OFCOURSE nothing was there...
BACK to the drawing board I went (aka the SPEC file). I looked at some sample SPEC files on the net and realized a lot of them had
"make DESTDIR=$RPM_BUILD_ROOT install" under %install
So I changed mine to that, ran it again...and it seemed to go better. However with that all said and done, I couldn't get rpmlint and mock to work. I will be asking Prof. Tyler in class tomorrow to see why this was happening.
Monday, September 28, 2009
Subscribe to:
Post Comments (Atom)
Alex -- good post. A link to your .src.rpm would be helpful -- people could make suggestions or comments.
ReplyDelete