propozition of specs cleanups

Tomasz Kłoczko kloczek at zie.pg.gda.pl
Fri Feb 3 09:34:17 UTC 2006


IMO it will be good perform some spec files cleanups. Patch with this
cleanups is relative large and it touches many spec files (it will be
hard submiting this using bugzilla) but all can be changed using single
sed line:

[devel]$ sed -i '/^%doc$/d; /^%doc $/d; \
	s/^%doc %{_mandir}/%{_mandir}/; \
	s/\(^%{_mandir}\/.*\)\(\.gz$\)/\1\*/' \
	*/*spec

Above:
- removes empty %doc lines,
- removes %doc from %{_mandir}/* %files entries (all %{_mandir} entries
  are marked by default as %doc),
- replace .gz suffix by * from %{_mandir}/* entries
  This allow choose on build stage generate binary packages with or
  without gzipped man pages.

kloczek




More information about the fedora-devel-list mailing list