]> git.pld-linux.org Git - packages/python-line_profiler.git/blobdiff - python-line_profiler.spec
rebuild with separate debuginfo build-ids
[packages/python-line_profiler.git] / python-line_profiler.spec
index a6f2ddf19e28313364941dae3a0c2c806051ba9d..563912b7d8f72340321e1b51355749bc1ca361c6 100644 (file)
@@ -5,17 +5,17 @@
 %bcond_without python2 # CPython 2.x module
 %bcond_without python3 # CPython 3.x module
 
-%define        module  line_profiler
+%define                module  line_profiler
 Summary:       module for doing line-by-line profiling of functions
 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:       6
+Version:       2.1
+Release:       5
 License:       BSD
 Group:         Libraries/Python
-Source0:       https://pypi.python.org/packages/source/l/%{module}/%{module}-%{version}.tar.gz
-# Source0-md5: 2f8352acfedf83f701a564583db5e14d
+Source0:       https://github.com/rkern/line_profiler/archive/%{version}.tar.gz
+# Source0-md5: bd1cb2ba21af02339beab7ddc3a69c66
 URL:           https://github.com/rkern/line_profiler
 BuildRequires: rpmbuild(macros) >= 1.710
 BuildRequires: rpm-pythonprov
@@ -23,11 +23,13 @@ BuildRequires:      rpm-pythonprov
 BuildRequires: python-Cython
 BuildRequires: python-devel
 BuildRequires: python-distribute
+BuildRequires: python-ipython
 %endif
 %if %{with python3}
 BuildRequires: python3-Cython
 BuildRequires: python3-devel
 BuildRequires: python3-distribute
+BuildRequires: python3-ipython
 BuildRequires: python3-modules
 %endif
 Requires:      python-modules
@@ -76,13 +78,13 @@ Dokumentacja API %{module}.
 %build
 %if %{with python2}
 CC="%{__cc}" \
-CFLAGS="%{rpmcppflags} %{rpmcflags}" \
+CFLAGS="%{rpmcppflags} %{rpmcflags} -DHAVE_GETTIMEOFDAY" \
 %py_build %{?with_tests:test}
 %endif
 
 %if %{with python3}
 CC="%{__cc}" \
-CFLAGS="%{rpmcppflags} %{rpmcflags}" \
+CFLAGS="%{rpmcppflags} %{rpmcflags} -DHAVE_GETTIMEOFDAY" \
 %py3_build %{?with_tests:test}
 %endif
 
This page took 0.050186 seconds and 4 git commands to generate.