This includes _all_ documentation sources (and not only manual.txt) in the rpm file build with '--without docs' option. Signed-off-by: Jakub Narebski <jnareb@xxxxxxxxx> --- Jakub Narebski <jnareb@xxxxxxxxx> wrote Wed, May 30, 2007: > On Tue, 29 May 2007, Jonas Fonseca wrote: >> Jakub Narebski <jnareb@xxxxxxxxx> wrote Mon, May 28, 2007: >> I don't know if manual.txt should perhaps be included if >> HTML and PDF files will not be generated. >> >>> +%{!?_without_docs: %{_mandir}/man1/*.1*} >>> +%{!?_without_docs: %{_mandir}/man5/*.5*} >>> +%{!?_without_docs: %doc *.html *.pdf} > > O.K. It would be as easy as %{?_without_docs: %doc *.txt} Actually it does add more than manual.txt, it adds sources for all tig documentation (including manpages). This patch textually depends on earlier patch, but in fact thic change is independent on previous one. tig.spec.in | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/tig.spec.in b/tig.spec.in index b7753fd..2385fb8 100644 --- a/tig.spec.in +++ b/tig.spec.in @@ -1,5 +1,5 @@ # -*- mode: rpm-spec-mode; encoding: utf-8; -*- -# Pass '--without docs' to rpmbuild if you don't want the documentation +# Pass '--without docs' to rpmbuild if you don't want the documentation to be build Summary: Tig: text-mode interface for git Name: tig @@ -50,9 +50,11 @@ CFLAGS="$RPM_OPT_FLAGS -DVERSION=tig-%{version}-%{release}" %{!?_without_docs: %{_mandir}/man1/*.1*} %{!?_without_docs: %{_mandir}/man5/*.5*} %{!?_without_docs: %doc *.html} +%{?_without_docs: %doc *.txt} %changelog * Fri Jun 1 2007 Jakub Narebski <jnareb@xxxxxxxxx> +- Include documentation sources for --without docs - Remove PDF version of manual from being build and installed * Mon May 28 2007 Jakub Narebski <jnareb@xxxxxxxxx> -- 1.5.2 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html