]> git.pld-linux.org Git - packages/python-line_profiler.git/blobdiff - python-line_profiler.spec
- release 8 (by relup.sh)
[packages/python-line_profiler.git] / python-line_profiler.spec
index b249b3792b4632b4975c0dc60e7237a40bb03774..207bdc427f534fd45007904ef6757f0afb632ed6 100644 (file)
@@ -11,12 +11,13 @@ Summary(pl.UTF-8):  ModuĊ‚ do optymalizacji linia po linii kodu funkcji
 # Name must match the python module/package name (as in 'import' statement)
 Name:          python-%{module}
 Version:       1.0
-Release:       5
+Release:       8
 License:       BSD
 Group:         Libraries/Python
 Source0:       https://pypi.python.org/packages/source/l/%{module}/%{module}-%{version}.tar.gz
 # Source0-md5: 2f8352acfedf83f701a564583db5e14d
 URL:           https://github.com/rkern/line_profiler
+BuildRequires: rpmbuild(macros) >= 1.710
 BuildRequires: rpm-pythonprov
 %if %{with python2}
 BuildRequires: python-Cython
@@ -76,13 +77,13 @@ Dokumentacja API %{module}.
 %if %{with python2}
 CC="%{__cc}" \
 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
-%{__python} setup.py build --build-base build-2 %{?with_tests:test}
+%py_build %{?with_tests:test}
 %endif
 
 %if %{with python3}
 CC="%{__cc}" \
 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
-%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%py3_build %{?with_tests:test}
 %endif
 
 %if %{with doc}
@@ -95,21 +96,13 @@ rm -rf _build/html/_sources
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
-%{__python} setup.py \
-       build --build-base build-2 \
-       install --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py_install
 
 %py_postclean
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-       build --build-base build-3 \
-       install --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py3_install
 %endif
 
 %clean
This page took 0.095526 seconds and 4 git commands to generate.