[packages/swig] cleanup php lang files if building without it
atler
atler at pld-linux.org
Tue Jul 29 17:49:39 CEST 2025
commit d5613ca6b71ba181fb26d2d3f1bc73afb0ced800
Author: Jan Palus <atler at pld-linux.org>
Date: Tue Jul 29 17:37:43 2025 +0200
cleanup php lang files if building without it
these files are installed unconditionally
swig.spec | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/swig.spec b/swig.spec
index 078fc82..859e943 100644
--- a/swig.spec
+++ b/swig.spec
@@ -196,6 +196,8 @@ install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_examplesdir}/%{name}-%{version}}
cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+%{!?with_php:%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}/php}
+
%clean
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/swig.git/commitdiff/d5613ca6b71ba181fb26d2d3f1bc73afb0ced800
More information about the pld-cvs-commit
mailing list