From 1434dbce02aaa96ae5d0a1f4f000cce5727498fa Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Fri, 30 Jun 2006 01:09:26 -0400 Subject: [PATCH] Delete manuals if compiling without docs Otherwise, rpm would complain about unpacked files. Signed-off-by: Pavel Roskin Signed-off-by: Junio C Hamano --- git.spec.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git.spec.in b/git.spec.in index 8ccd2564e..b8feda325 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 -- 2.30.2