]> git.pld-linux.org Git - packages/python-slip.git/blobdiff - python-slip.spec
- python 3.6
[packages/python-slip.git] / python-slip.spec
index 22bd29f6d9ca4ee0d5af55cb32c131f58cb8e657..da5d158f36f7e9aad93500605a612b548d730451 100644 (file)
@@ -7,7 +7,7 @@ Summary:        Miscellaneous convenience, extension and workaround code for Python 2
 Summary(pl.UTF-8):     Kod różnych udogodnień, rozszerzeń i obejść dla Pythona 2
 Name:          python-slip
 Version:       0.6.0
-Release:       2
+Release:       7
 License:       GPL v2+
 Group:         Development/Languages/Python
 Source0:       https://fedorahosted.org/released/python-slip/%{name}-%{version}.tar.bz2
@@ -21,7 +21,7 @@ BuildRequires:        python-devel >= 2
 BuildRequires: python3 >= 3.2
 BuildRequires: python3-modules >= 3.2
 %endif
-BuildRequires: rpmbuild(macros) >= 1.612
+BuildRequires: rpmbuild(macros) >= 1.710
 Requires:      python-selinux
 Requires:      python-six
 BuildArch:     noarch
@@ -155,38 +155,24 @@ PolicyKit.
 %{__make} $(pwd)/setup.py
 
 %if %{with python2}
-%{__python} setup.py build \
-       --build-base build-2
+%py_build
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build \
-       --build-base build-3
+%py3_build
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
-%{__python} setup.py \
-       build \
-               --build-base build-2 \
-       install \
-               --optimize=2 \
-               --root=$RPM_BUILD_ROOT \
-               --skip-build
+%py_install
 
 %py_postclean
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-       build \
-               --build-base build-3 \
-       install \
-               --optimize=2 \
-               --root=$RPM_BUILD_ROOT \
-               --skip-build
+%py3_install
 %endif
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}
This page took 0.143108 seconds and 4 git commands to generate.