Hello community,

here is the log from the commit of package python-line_profiler for 
openSUSE:Factory checked in at 2019-01-03 18:08:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-line_profiler (Old)
 and      /work/SRC/openSUSE:Factory/.python-line_profiler.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-line_profiler"

Thu Jan  3 18:08:38 2019 rev:4 rq:662442 version:2.1.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-line_profiler/python-line_profiler.changes    
    2018-11-10 16:57:49.883867049 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-line_profiler.new.28833/python-line_profiler.changes
     2019-01-03 18:08:42.724029285 +0100
@@ -1,0 +2,5 @@
+Wed Jan  2 12:35:35 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Regenerate cython files to fix build under python 3.7
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-line_profiler.spec ++++++
--- /var/tmp/diff_new_pack.rJPzaB/_old  2019-01-03 18:08:43.132028923 +0100
+++ /var/tmp/diff_new_pack.rJPzaB/_new  2019-01-03 18:08:43.136028919 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-line_profiler
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -20,10 +20,10 @@
 Name:           python-line_profiler
 Version:        2.1.2
 Release:        0
-Url:            https://github.com/rkern/line_profiler
 Summary:        Line-by-line profiler
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
+URL:            https://github.com/rkern/line_profiler
 Source:         
https://files.pythonhosted.org/packages/source/l/line_profiler/line_profiler-%{version}.tar.gz
 BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module devel}
@@ -33,12 +33,11 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildRequires:  python3-devel >= 3.5
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 %ifpython3
 Requires:       python3-base >= 3.5
 %endif
-Requires(post): update-alternatives
-Requires(postun): update-alternatives
-
 %python_subpackages
 
 %description
@@ -54,14 +53,16 @@
 %setup -q -n line_profiler-%{version}
 
 %build
-export CFLAGS="%{optflags}"
+# fix wrongly generated cyx files
+find . -name '*.pyx' -exec cython {} \;
+export CFLAGS="%{optflags} -fno-strict-aliasing"
 %python_build
 
 %install
 %python_install
 %python_clone -a %{buildroot}%{_bindir}/kernprof
 %{python_expand chmod a+x %{buildroot}%{$python_sitearch}/*.py
-sed -i "s|#!/usr/bin/env python|#!%__$python|" 
%{buildroot}%{$python_sitearch}/*.py
+sed -i "s|#!%{_bindir}/env python|#!%__$python|" 
%{buildroot}%{$python_sitearch}/*.py
 $python -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}
 $python -O -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}
 %fdupes %{buildroot}%{$python_sitearch}
@@ -80,7 +81,6 @@
 # }
 
 %files %{python_files}
-%defattr(-,root,root,-)
 %doc README.rst
 %license LICENSE.txt LICENSE_Python.txt
 %python_alternative %{_bindir}/kernprof


Reply via email to