I'm trying to learn how to build packages (.rpm files). Read through the manual on Red Hat's site for generating RPM's. Created a spec file. But the resulting RPM file comes out huge!
The package contains a bash script and a man page. Combined, both files are only a few kilobytes. But the resulting RPM file is 48 megabytes. 'rpm -bb' looks like it includes some libraries. I get this long list of files matching a patter "lib*.so".
Why is the resulting RPM file so large? The full rpm command I used is: "rpm -bb --target noarch dear-diary.spec". I've attached a copy of the spec file.
-- Robert Wohlfarth rjwohlfar@bigfoot.com
"Is not life more important than food, and the body more important than clothes?" -- Matthew 6:25b
You need a buildroot statement in the header. Something like this: BuildRoot: %{_tmppath}/%{name}-%{version}-root And you need to install the package to the buildroot with something like this: %install mkdir -p $RPM_BUILD_ROOT%{prefix}/bin mkdir -p $RPM_BUILD_ROOT%{prefix}/share/man/man1 cp dear-diary $RPM_BUILD_ROOT%{prefix}/bin cp dear-diary.1.gz $RPM_BUILD_ROOT%{prefix}/share/man/man1 The resulting package was huge because rpm included every file in %{prefix}/bin with your package! Remember, buildroots are good. Always use buildroots. Good luck, -jrh