Re: Last set of changes for 1.1.3
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 22 Aug 2006 16:38:00 +1000 Sandworm <sandworm@mepd.hush.com> wrote:
A better fix would be to rename the files that should be copied into the RPM (or into an installation on any other distro) to have a standard prefix (say "doc-" for want of anything better) from the doc directory. In that case, having the line "%doc doc/doc* todo/ COPYRIGHT INSTALL" in the spec file in the %files section will install everything required.
Further to what I just posted - Or what has been done in the Suse SPEC file can be done for the Redhat SPEC file - remove whatever is not required from the doc/ directory (such as doc/00-OLD), and then "%doc doc/* todo/ COPYRIGHT INSTALL" will do the trick. SW -----BEGIN PGP SIGNATURE----- Note: This signature can be verified at https://www.hushtools.com/verify Version: Hush 2.5 wkYEARECAAYFAkTqqhMACgkQmw4BJyaatJ16egCfUzcQ9xACHRxg2Slq6NvcrOAS0hMA n3wLtdtZvaDg0sWnE8FUxdbDJxdw =LBC1 -----END PGP SIGNATURE-----
Sandworm wrote:
On Tue, 22 Aug 2006 16:38:00 +1000 Sandworm <sandworm@mepd.hush.com> wrote:
A better fix would be to rename the files that should be copied into the RPM (or into an installation on any other distro) to have a standard prefix (say "doc-" for want of anything better) from the doc directory. In that case, having the line "%doc doc/doc* todo/ COPYRIGHT INSTALL" in the spec file in the %files section will install everything required.
Further to what I just posted - Or what has been done in the Suse SPEC file can be done for the Redhat SPEC file - remove whatever is not required from the doc/ directory (such as doc/00-OLD), and then "%doc doc/* todo/ COPYRIGHT INSTALL" will do the trick.
This would install *everything*, including the Makefile... I don't really know how rpmbuild works, but it should be possible to make it package the files in the doc directory. Please try to add this line in the %files section: Index: redhat/freeradius.spec =================================================================== RCS file: /source/radiusd/redhat/freeradius.spec,v retrieving revision 1.19.2.5.2.7 diff -u -r1.19.2.5.2.7 freeradius.spec --- redhat/freeradius.spec 15 Jul 2006 17:22:58 -0000 1.19.2.5.2.7 +++ redhat/freeradius.spec 22 Aug 2006 13:50:49 -0000 @@ -105,6 +105,7 @@ %config (noreplace) /etc/raddb/* %{_bindir}/* %{_datadir}/%{name} +%{_datadir}/doc/%{name}-%{version}/*/* %{_libdir}/* %{_mandir}/*/* %{_sbindir}/* -- Nicolas Baradakis
participants (2)
-
Nicolas Baradakis -
Sandworm