[packages/graphviz] examples installed only when building with smyrna

atler atler at pld-linux.org
Wed Mar 3 17:03:38 CET 2021


commit abc132a14a7650364609a34fbe78e2947ca5156a
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Mar 3 17:02:58 2021 +0100

    examples installed only when building with smyrna

 graphviz.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/graphviz.spec b/graphviz.spec
index 8d1f4e3..7f5b32f 100644
--- a/graphviz.spec
+++ b/graphviz.spec
@@ -623,7 +623,7 @@ rm -rf doc-html doc-pdf
 %{__mv} $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/html doc-html
 %{__mv} $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/pdf doc-pdf
 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}/doc
-%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}/examples
+%{?with_smyrna:%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}/examples}
 
 cd $RPM_BUILD_ROOT
 patch -p1 --no-backup-if-mismatch < %{PATCH2} || exit 1
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/graphviz.git/commitdiff/abc132a14a7650364609a34fbe78e2947ca5156a



More information about the pld-cvs-commit mailing list