Leave a comment

RPM Build

When I first started to create RPM packages, I was and slightly still am a bit lost. I had no clue what I was doing when starting. The first set of commands we’re pretty straight forward and easy enough to understand what it was doing. However when creating the spec file that was mess. After trying to fill in the each parameter that was left blank, I got a bunch of errors.
I’ve never seen so many errors in my life. However I realize that “tabbing” is the cause for most of the errors and not correctly filling out the changelog accordingly.The errors I had left, had me stumped:

***Note-to-self: make sure when labelling the name of a package that its exactly the same as the one your got from source.***

rpmbuild -ba httptunnel.spec

error: Installed (but unpackaged) file(s) found:
/usr/bin/htc
/usr/bin/hts
/usr/share/man/man1/htc.1.gz
/usr/share/man/man1/hts.1.gz

RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/bin/htc
/usr/bin/hts
/usr/share/man/man1/htc.1.gz
/usr/share/man/man1/hts.1.gz

I later realize that reading is important because everything to explain these errors, are on the website. However with some help from my peers, I was able to fix my errors. The reason for my errors was because I didn’t place any predefine macros in my spec file. By doing so These errors were fixed.

I ran the commands to test the RPMs that I built:
[challahar@challahar SPECS]$ rpmlint ~/rpmbuild/SPECS/httptunnel.spec
/home/challahar/rpmbuild/SPECS/httptunnel.spec:4: W: mixed-use-of-spaces-and-tabs (spaces: line 1, tab: line 4)
0 packages and 1 specfiles checked; 0 errors, 1 warnings.

After fixing my spacing and tabbing errors:
[challahar@challahar SPECS]$ vi httptunnel.spec
[challahar@challahar SPECS]$ rpmlint ~/rpmbuild/SPECS/httptunnel.spec
0 packages and 1 specfiles checked; 0 errors, 0 warnings.

Needed to change the License that was written to fix this error:
[challahar@challahar SPECS]$ rpmlint ~/rpmbuild/SRPMS/httptunnel-3.0.5-1.fc15.src.rpm

httptunnel.src: W: invalid-license GPL
httptunnel.src:4: W: mixed-use-of-spaces-and-tabs (spaces: line 1, tab: line 4)
1 packages and 0 specfiles checked; 0 errors, 2 warnings.

Leave a comment