Now the second program that I am using it M4, pretty much following the same steps from my previous post on proxykinfe I did the same configuration and steps to start my rpm build. Keeping my spec file for proxykinfe, I rebuilt the setuptree so I have a clean directory to work with. Now issuing these commands as before
- - cp m4-1.4.16.tar.gz ~/rpmbuild/SOURCE
- - cd ~/rpmbuild/SPECS
- - rpmdev-newspec m4
- - rpmbuild -ba m4.spec
error: Installed (but unpackaged) file(s) found:
/usr/bin/m4
/usr/share/info/dir
/usr/share/info/m4.info-1.gz
/usr/share/info/m4.info-2.gz
/usr/share/info/m4.info.gz
/usr/share/man/man1/m4.1.gz
RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/bin/m4
/usr/share/info/dir
/usr/share/info/m4.info-1.gz
/usr/share/info/m4.info-2.gz
/usr/share/info/m4.info.gz
/usr/share/man/man1/m4.1.gz
So after looking it over and doing some research, I found that the error was telling me that I didn't put any files into the RPM! Knowing that I added these lines to the %file section to test and the result...
Wrote: /home/chris/rpmbuild/SRPMS/m4-1.4.16-1.fc16.src.rpm
Wrote: /home/chris/rpmbuild/RPMS/x86_64/m4-1.4.16-1.fc16.x86_64.rpm
Wrote: /home/chris/rpmbuild/RPMS/x86_64/m4-debuginfo-1.4.16-1.fc16.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.GfdUJw
+ umask 022
+ cd /home/chris/rpmbuild/BUILD
+ cd m4-1.4.16
+ /bin/rm -rf /home/chris/rpmbuild/BUILDROOT/m4-1.4.16-1.fc16.x86_64
+ exit 0
Success!! Finally I got an RPM made, but copying all thoes files all the time when you make a RPM can be time consuming, after doing some more research I found easy to use macros to reduce similar lines
%files
%doc
%{_bindir}/*
%{_infodir}/*
%{_mandir}/man1/m4.1.gz
Some rpmlint testing to see if my spec files and rpm has any errors, so far none at the moment
[chris@localhost SPECS]$ rpmlint -i m4.spec
0 packages and 1 specfiles checked; 0 errors, 0 warnings.
[chris@localhost SRPMS]$ rpmlint -i m4-1.4.16-1.fc16.src.rpm
1 packages and 0 specfiles checked; 0 errors, 0 warnings.
[chris@localhost x86_64]$ rpmlint m4-debuginfo-1.4.16-1.fc16.x86_64.rpm
1 packages and 0 specfiles checked; 0 errors, 0 warnings.
Finally I have created an RPM!! This will help me with my next project using Mock and Koji, I am still going to work on my proxykinfe build still but for now I will continue on with my m4 RPM for my Mock and Koji testing.
**RPM, SRPM, and SPEC files here**
https://docs.google.com/open?id=0BxRdD36nj6CTOWMxNDg3NjctMzdlZS00YWQ5LThlMmQtZTk4YTE1YzhkNzUz
