HI, I wanted to try to learn how to create an RPM file and followed this guide.
http://www.ibm.com/developerworks/library/l-rpm1/
I removed the wget RPM from my system so that there are no clashes with this package which I'd like to create and add.
I create the 5 directory's necessary for rpmbuild as in the instructions above.
I update the spec file to version 1.13 of wget.
Code:
rpmbuild -v -bb --clean SPECS/wget.spec
rpmbuild configure and compiles the source but then barfs at the end part and performs a test which I don't understand. It claims to find files on the system which don't exist (I removed the wget package beforehand).
Where is rpmbuild checking for the existence of these files ? This check appears to be preventing the creation of the RPM file.
I tried following the comments at the bottom of the article, but that did'nt work.
Code:
Checking for unpackaged file(s): /usr/lib/rpm/check-files /build/wget-rpm/wget-1.13-root
error: Installed (but unpackaged) file(s) found:
/usr/local/etc/wgetrc
/usr/local/share/info/dir
/usr/local/share/info/wget.info
/usr/local/share/locale/be/LC_MESSAGES/wget.mo
/usr/local/share/locale/bg/LC_MESSAGES/wget.mo
/usr/local/share/locale/ca/LC_MESSAGES/wget.mo
/usr/local/share/locale/cs/LC_MESSAGES/wget.mo
/usr/local/share/locale/da/LC_MESSAGES/wget.mo
/usr/local/share/locale/de/LC_MESSAGES/wget.mo
/usr/local/share/locale/el/LC_MESSAGES/wget.mo
/usr/local/share/locale/en_GB/LC_MESSAGES/wget.mo
/usr/local/share/locale/eo/LC_MESSAGES/wget.mo
/usr/local/share/locale/es/LC_MESSAGES/wget.mo
/usr/local/share/locale/et/LC_MESSAGES/wget.mo
/usr/local/share/locale/eu/LC_MESSAGES/wget.mo
/usr/local/share/locale/fi/LC_MESSAGES/wget.mo
/usr/local/share/locale/fr/LC_MESSAGES/wget.mo
/usr/local/share/locale/ga/LC_MESSAGES/wget.mo
/usr/local/share/locale/gl/LC_MESSAGES/wget.mo
/usr/local/share/locale/he/LC_MESSAGES/wget.mo
/usr/local/share/locale/hr/LC_MESSAGES/wget.mo
/usr/local/share/locale/hu/LC_MESSAGES/wget.mo
/usr/local/share/locale/id/LC_MESSAGES/wget.mo
/usr/local/share/locale/it/LC_MESSAGES/wget.mo
/usr/local/share/locale/ja/LC_MESSAGES/wget.mo
/usr/local/share/locale/lt/LC_MESSAGES/wget.mo
/usr/local/share/locale/nb/LC_MESSAGES/wget.mo
/usr/local/share/locale/nl/LC_MESSAGES/wget.mo
/usr/local/share/locale/pl/LC_MESSAGES/wget.mo
/usr/local/share/locale/pt/LC_MESSAGES/wget.mo
/usr/local/share/locale/pt_BR/LC_MESSAGES/wget.mo
/usr/local/share/locale/ro/LC_MESSAGES/wget.mo
/usr/local/share/locale/ru/LC_MESSAGES/wget.mo
/usr/local/share/locale/sk/LC_MESSAGES/wget.mo
/usr/local/share/locale/sl/LC_MESSAGES/wget.mo
/usr/local/share/locale/sr/LC_MESSAGES/wget.mo
/usr/local/share/locale/sv/LC_MESSAGES/wget.mo
/usr/local/share/locale/tr/LC_MESSAGES/wget.mo
/usr/local/share/locale/uk/LC_MESSAGES/wget.mo
/usr/local/share/locale/vi/LC_MESSAGES/wget.mo
/usr/local/share/locale/zh_CN/LC_MESSAGES/wget.mo
/usr/local/share/locale/zh_TW/LC_MESSAGES/wget.mo