Hello community,
here is the log from the commit of package python-cdecimal for openSUSE:Factory
checked in at 2018-06-29 22:25:23
Comparing /work/SRC/openSUSE:Factory/python-cdecimal (Old)
and /work/SRC/openSUSE:Factory/.python-cdecimal.new (New)
Package is "python-cdecimal"
Fri Jun 29 22:25:23 2018 rev:2 rq:616281 version:2.3
Changes:
--- /work/SRC/openSUSE:Factory/python-cdecimal/python-cdecimal.changes
2016-07-14 09:44:09.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-cdecimal.new/python-cdecimal.changes
2018-06-29 22:25:26.206527207 +0200
@@ -1,0 +2,17 @@
+Tue Jun 12 09:39:27 UTC 2018 - h...@urpla.net
+
+- supply python_module definition, if missing
+
+---
+Sun Jun 10 23:06:58 UTC 2018 - jeng...@inai.de
+
+- Adjust grammar in description.
+
+---
+Fri Jun 8 14:15:48 UTC 2018 - mc...@suse.com
+
+- Clean up SPEC to the proper singlespec form (py2k only)
+- Unfortunately, most of the tests do not have a redistribution
+ license, so the test suite is not available.
+
+---
Other differences:
--
++ python-cdecimal.spec ++
--- /var/tmp/diff_new_pack.mtjMXK/_old 2018-06-29 22:25:27.086526544 +0200
+++ /var/tmp/diff_new_pack.mtjMXK/_new 2018-06-29 22:25:27.090526540 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-cdecimal
#
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2014 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
@@ -17,22 +17,24 @@
#
-Name: python-cdecimal
+# This package doesn't support py3k correctly
+%define skip_python3 1
+%define modname cdecimal
+
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+Name: python-%{modname}
Version:2.3
Release:0
-Summary:Fast drop-in replacement for decimal
+Summary:Faster drop-in replacement for Python's "decimal" module
License:BSD-2-Clause
Group: Development/Languages/Python
-Url:http://www.bytereef.org/mpdecimal/index.html
-Source:
http://www.bytereef.org/software/mpdecimal/releases/cdecimal-%{version}.tar.gz
-BuildRequires: python-devel
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitearch: %global python_sitearch %(python -c "from
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-%endif
+URL:http://www.bytereef.org/mpdecimal/index.html
+Source:
http://www.bytereef.org/software/mpdecimal/releases/%{modname}-2.3.tar.gz
+BuildRequires: %{python_module devel}
+%python_subpackages
%description
-The python-cdecimal package is a fast drop-in replacement for the decimal
+The python-cdecimal package is a faster drop-in replacement for the decimal
module in Python's standard library for Python version above 2.4 and below 3.3.
It provides a complete implementation of Mike Cowlishaw/IBM's General Decimal
@@ -48,19 +50,21 @@
the pure Python version. If you need maximum decimal performance, you should
use that Python version.
-
%prep
-%setup -q -n cdecimal-%{version}
+%setup -q -n %{modname}-%{version}
%build
-# setup.py install rebuilds it again anyway
+%python_build
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+
+# Most of the tests do not have a redistribution license, so
+# they are not included in mpdecimal.
-%files
-%defattr(-,root,root,-)
-%doc CHANGELOG.txt LICENSE.txt README.txt
+%files %python_files
+%license LICENSE.txt
+%doc CHANGELOG.txt README.txt
%{python_sitearch}/*
%changelog