- clean before make
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 28 Nov 2013 13:37:52 +0000 (14:37 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 28 Nov 2013 13:37:52 +0000 (14:37 +0100)
- don't run make install in install, as we do this by copying preinstalled files

apache-mod_python.spec

index 10b537421d51f64063b68c5b2ada448b1e35017e..62ae5585f8f4096e4abaab136b8d7976e4092f6b 100644 (file)
@@ -233,21 +233,25 @@ prestandan jämfört med den traditionella CGI-metoden.
 %build
 %{__aclocal}
 %{__autoconf}
+
 %if %{with python2}
 %configure \
        --with-apxs=%{apxs} \
        --with-python=%{__python}
+
+%{__make} clean
 %{__make} dso
 install -d apache-mod_python{%{apachelibdir},%{apacheconfdir},%{_bindir}}
 %{__make} install \
        DESTDIR=`pwd`/apache-mod_python
-%{__make} clean
 %endif
 
 %if %{with python3}
 %configure \
        --with-apxs=%{apxs} \
        --with-python=%{__python3}
+
+%{__make} clean
 %{__make} dso
 install -d apache-mod_python3{%{apachelibdir},%{apacheconfdir},%{_bindir}}
 %{__make} install \
@@ -260,9 +264,6 @@ install -d apache-mod_python3{%{apachelibdir},%{apacheconfdir},%{_bindir}}
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{apachelibdir},%{apacheconfdir},%{_bindir}}
 
-%{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT
-
 %if %{with python2}
 cp -a apache-mod_python/* $RPM_BUILD_ROOT
 install %{SOURCE1} $RPM_BUILD_ROOT%{apacheconfdir}/60_mod_python.conf
This page took 0.189432 seconds and 4 git commands to generate.