]> git.pld-linux.org Git - packages/python-sqlalchemy.git/commitdiff
automatic change: use py_build/py_install macros
authorJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Nov 2015 17:06:44 +0000 (18:06 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Nov 2015 17:06:44 +0000 (18:06 +0100)
python-sqlalchemy.spec

index 6f86653564f00ad140c81bd94913ff20b56a4e18..657efe488d83530dc5c79b03fd2de954ed601972 100644 (file)
@@ -85,19 +85,18 @@ Wersja dla Pythona 3.x.
 %if %{with python2}
 CC="%{__cc}" \
 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
 %if %{with python2}
 CC="%{__cc}" \
 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
-%{__python} setup.py build -b build-2
+%py_build
 %endif
 %if %{with python3}
 CC="%{__cc}" \
 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
 %endif
 %if %{with python3}
 CC="%{__cc}" \
 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
-%{__python3} setup.py build -b build-3
+%py3_build
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
-%{__python} setup.py build -b build-2 \
-       install \
+%py_install \
        --single-version-externally-managed \
        --optimize=2 \
        --root=$RPM_BUILD_ROOT
        --single-version-externally-managed \
        --optimize=2 \
        --root=$RPM_BUILD_ROOT
@@ -106,10 +105,7 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %if %{with python3}
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build -b build-3 \
-       install \
-       --root=$RPM_BUILD_ROOT \
-       --optimize=2
+%py3_install
 %endif
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 %endif
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
This page took 0.096473 seconds and 4 git commands to generate.