{"thread":{"id":"1253","subject":"[PATCH] Update the spec file so it can build and install the documentation","startedAt":"2005-07-15T01:24:23Z","lastAt":"2005-07-15T01:24:23Z","messageCount":1,"participants":["Eric W. Biederman"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"6165","messageId":"m1k6jsx3nc.fsf@ebiederm.dsl.xmission.com","threadId":"1253","inReplyTo":null,"subject":"[PATCH] Update the spec file so it can build and install the documentation","fromName":"Eric W. Biederman","fromEmail":"ebiederm@xmission.com","sentAt":"2005-07-15T01:24:23Z","receivedAt":"2005-07-15T01:24:23Z","isPatch":true,"sender":{"key":"ebiederm@xmission.com","avatar":"https://avatars.githubusercontent.com/u/7477136?v=4"},"body":"\nIf you don't want the documentation simply build with\nmake RPMBUILD=\"rpmbuild --without docs\"\n\nSigned-off-by: Eric W. Biederman <ebiederm@xmission.com>\n---\n\n git-core.spec.in |   14 ++++++++++----\n 1 files changed, 10 insertions(+), 4 deletions(-)\n\n18d85dbab2fca214bfb625e65733d5fa52502111\ndiff --git a/git-core.spec.in b/git-core.spec.in\n--- a/git-core.spec.in\n+++ b/git-core.spec.in\n@@ -1,3 +1,4 @@\n+# Pass --without docs to rpmbuild if you don't want the documetnation\n Name: \t\tgit-core\n Version: \t@@VERSION@@\n Release: \t1\n@@ -7,7 +8,7 @@ License: \tGPL\n Group: \t\tDevelopment/Tools\n URL: \t\thttp://kernel.org/pub/software/scm/git/\n Source: \thttp://kernel.org/pub/software/scm/git/%{name}-%{version}.tar.gz\n-BuildRequires:\tzlib-devel, openssl-devel, curl-devel\n+BuildRequires:\tzlib-devel, openssl-devel, curl-devel  %{!?_without_docs:, xmlto, asciidoc > 6.0.3}\n BuildRoot:\t%{_tmppath}/%{name}-%{version}-root\n Prereq: \tsh-utils, diffutils, rsync, rcs, mktemp >= 1.5\n \n@@ -23,11 +24,11 @@ similar to other SCM tools (like CVS, Bi\n \n %build\n \n-make\n+make all %{!?_without_docs: doc}\n \n %install\n rm -rf $RPM_BUILD_ROOT\n-make dest=$RPM_BUILD_ROOT prefix=%{_prefix} install\n+make dest=$RPM_BUILD_ROOT prefix=%{_prefix} mandir=%{_mandir} install %{!?_without_docs: install-doc}\n \n %clean\n rm -rf $RPM_BUILD_ROOT\n@@ -35,8 +36,13 @@ rm -rf $RPM_BUILD_ROOT\n %files\n %defattr(-,root,root)\n %{_bindir}/*\n-%doc README COPYING Documentation/*\n+%doc README COPYING Documentation/*.txt\n+%{!?_without_docs: %doc Documentation/*.html }\n+%{!?_without_docs: %{_mandir}/man1/*.1.gz}\n+%{!?_without_docs: %{_mandir}/man7/*.7.gz}\n \n %changelog\n+* Thu Jul 14 2005 Eric Biederman <ebiederm@xmission.com>\n+- Add the man pages, and the --without docs build option\n * Wed Jul 7 2005 Chris Wright <chris@osdl.org>\n - initial git spec file\n"}]}