@matheusbsbs / matheus-bagliano / commits / 1434dbce02
Fork 0

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>

Pavel Roskin committed Jun 30, 2006 at 01:09 UTC 1434dbce02aaa96ae5d0a1f4f000cce5727498fa
1 file changed +2
git.spec.in
+2
@@ -86,6 +86,8 @@ make %{_smp_mflags} DESTDIR=$RPM_BUILD_ROOT WITH_OWN_SUBPROCESS_PY=YesPlease \
86 (find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE "arch|svn|cvs|email|gitk" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files
87 %if %{!?_without_docs:1}0
88 (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
89 +%else
90 +rm -rf $RPM_BUILD_ROOT%{_mandir}
91 %endif
92
93 %clean