[PATCH 2/3] Include documentation sources for rpmbuild with '--without docs'
STALE3760d
From: Jakub Narebski <hidden>
Date: 2016-06-15 22:43:13
Subsystem:
the rest · Maintainer:
Linus Torvalds
This includes _all_ documentation sources (and not only manual.txt) in the rpm file build with '--without docs' option. Signed-off-by: Jakub Narebski <redacted> --- Jakub Narebski [off-list ref] wrote Wed, May 30, 2007:
On Tue, 29 May 2007, Jonas Fonseca wrote:quoted
Jakub Narebski [off-list ref] wrote Mon, May 28, 2007:
quoted
I don't know if manual.txt should perhaps be included if HTML and PDF files will not be generated.quoted
+%{!?_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@gmail.com> +- Include documentation sources for --without docs - Remove PDF version of manual from being build and installed * Mon May 28 2007 Jakub Narebski <jnareb@gmail.com>
--
1.5.2