[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

propozition of specs cleanups



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]