Hello community,
here is the log from the commit of package python-cyordereddict for
openSUSE:Factory checked in at 2019-02-25 17:48:42
Comparing /work/SRC/openSUSE:Factory/python-cyordereddict (Old)
and /work/SRC/openSUSE:Factory/.python-cyordereddict.new.28833 (New)
Package is "python-cyordereddict"
Mon Feb 25 17:48:42 2019 rev:2 rq:670325 version:1.0.0
Changes:
---
/work/SRC/openSUSE:Factory/python-cyordereddict/python-cyordereddict.changes
2017-09-04 12:30:49.557882979 +0200
+++
/work/SRC/openSUSE:Factory/.python-cyordereddict.new.28833/python-cyordereddict.changes
2019-02-25 17:48:49.114822212 +0100
@@ -1,0 +2,6 @@
+Thu Jan 31 11:29:44 UTC 2019 - Tomáš Chvátal
+
+- Make sure we build under python 3.7
+- Drop the code for tests as it does not work at all
+
+---
Other differences:
--
++ python-cyordereddict.spec ++
--- /var/tmp/diff_new_pack.nbCyqO/_old 2019-02-25 17:48:51.106821395 +0100
+++ /var/tmp/diff_new_pack.nbCyqO/_new 2019-02-25 17:48:51.106821395 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-cyordereddict
#
-# Copyright (c) 2017 SUSE LINUX Products 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,11 +12,9 @@
# 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/
#
-# Tests don't work consistently
-%bcond_with tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-cyordereddict
@@ -25,13 +23,12 @@
Summary:Faster Cython implementation of Python's OrderedDict
License:MIT
Group: Development/Languages/Python
-Url:https://github.com/shoyer/cyordereddict
+URL:https://github.com/shoyer/cyordereddict
Source:
https://files.pythonhosted.org/packages/source/c/cyordereddict/cyordereddict-%{version}.tar.gz
+BuildRequires: %{python_module Cython}
+BuildRequires: %{python_module devel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-BuildRequires: %{python_module devel}
-BuildRequires: %{python_module Cython}
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
%python_subpackages
%description
@@ -43,6 +40,9 @@
cp -r python2 python_%{python2_bin_suffix}
cp -r python3 python_%{python3_bin_suffix}
+# always regenerate cython files
+sed -i -e "s:use_cython = is_dev or '--cython' in sys.argv or '--with-cython'
in sys.argv:use_cython = True:g" setup.py
+
%build
export CFLAGS="%{optflags}"
%python_build
@@ -51,18 +51,9 @@
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
-%if %{with tests}
-%check
-%{python_expand pushd python_%{$python_bin_suffix}/cyordereddict/test
-export PYTHONPATH=%{buildroot}%{$python_sitearch}
-nosetests-%{$python_bin_suffix}
-popd
-}
-%endif
-
%files %{python_files}
-%defattr(-,root,root,-)
-%doc LICENSE.txt README.rst
+%license LICENSE.txt
+%doc README.rst
%{python_sitearch}/*
%changelog