]> git.pld-linux.org Git - packages/rpm.git/commitdiff
Fix build without python
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Wed, 30 Jan 2013 19:09:17 +0000 (20:09 +0100)
committerMarcin Banasiak <marcin.banasiak@gmail.com>
Wed, 30 Jan 2013 19:09:17 +0000 (20:09 +0100)
rpm.spec

index de06bcd8a36b702ab94af859709915ae3e3c2499..a7129c2508e0e4e784241ef57ce09ee9f146e4f7 100644 (file)
--- a/rpm.spec
+++ b/rpm.spec
@@ -1173,10 +1173,12 @@ done
 # Bourne shell script vs ELF executable linked with rpm,rpmdb,rpmio
 mv $RPM_BUILD_ROOT{%{_rpmlibdir},%{_bindir}}/rpm2cpio
 
+%if %{with python}
 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
 
 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py}
+%endif
 
 # wrong location, not used anyway
 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd}
This page took 0.159518 seconds and 4 git commands to generate.