summaryrefslogtreecommitdiff
path: root/git.spec.in
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2006-06-30 05:09:26 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-07-03 00:14:44 (GMT)
commit1434dbce02aaa96ae5d0a1f4f000cce5727498fa (patch)
treea32e6ceb59b44ed2c6b9e9e13787270b72679fb2 /git.spec.in
parent1d8c9dc47de0cbf3955ccc9408564cccbda8e348 (diff)
downloadgit-1434dbce02aaa96ae5d0a1f4f000cce5727498fa.zip
git-1434dbce02aaa96ae5d0a1f4f000cce5727498fa.tar.gz
git-1434dbce02aaa96ae5d0a1f4f000cce5727498fa.tar.bz2
Delete manuals if compiling without docs
Otherwise, rpm would complain about unpacked files. Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git.spec.in')
-rw-r--r--git.spec.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/git.spec.in b/git.spec.in
index 8ccd256..b8feda3 100644
--- a/git.spec.in
+++ b/git.spec.in
@@ -86,6 +86,8 @@ make %{_smp_mflags} DESTDIR=$RPM_BUILD_ROOT WITH_OWN_SUBPROCESS_PY=YesPlease \
(find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE "arch|svn|cvs|email|gitk" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files
%if %{!?_without_docs:1}0
(find $RPM_BUILD_ROOT%{_mandir} $RPM_BUILD_ROOT/Documentation -type f | grep -vE "arch|svn|git-cvs|email|gitk" | sed -e s@^$RPM_BUILD_ROOT@@ -e 's/$/*/' ) >> bin-man-doc-files
+%else
+rm -rf $RPM_BUILD_ROOT%{_mandir}
%endif
%clean