From fc18536c597b04312947d4ef159abd17ea7bde69195fc2bf3dd203c1910d409b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 1 Mar 2019 09:49:16 +0000 Subject: [PATCH] - Update to 1.0.6: * Various packaging fixes - Switch to github tarball to get all needed files (missing pyx on pypi) - Run tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rencode?expand=0&rev=6 --- python-rencode.changes | 8 ++++++++ python-rencode.spec | 30 ++++++++++++++++++------------ rencode-1.0.5.tar.gz | 3 --- v1.0.6.tar.gz | 3 +++ 4 files changed, 29 insertions(+), 15 deletions(-) delete mode 100644 rencode-1.0.5.tar.gz create mode 100644 v1.0.6.tar.gz diff --git a/python-rencode.changes b/python-rencode.changes index fab762a..fb0b372 100644 --- a/python-rencode.changes +++ b/python-rencode.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Mar 1 09:43:25 UTC 2019 - Tomáš Chvátal + +- Update to 1.0.6: + * Various packaging fixes +- Switch to github tarball to get all needed files (missing pyx on pypi) +- Run tests + ------------------------------------------------------------------- Thu Jul 20 17:26:53 UTC 2017 - aloisio@gmx.com diff --git a/python-rencode.spec b/python-rencode.spec index 6ce5710..4101348 100644 --- a/python-rencode.spec +++ b/python-rencode.spec @@ -1,7 +1,7 @@ # # spec file for package python-rencode # -# Copyright (c) 2017 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,24 +12,26 @@ # 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/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-rencode -Version: 1.0.5 +Version: 1.0.6 Release: 0 Summary: Web safe object pickling/unpickling -License: GPL-3.0+ -Url: https://github.com/aresch/rencode -Source0: https://files.pythonhosted.org/packages/source/r/rencode/rencode-%{version}.tar.gz +License: GPL-3.0-or-later +Group: Development/Languages/Python +URL: https://github.com/aresch/rencode +Source0: https://github.com/aresch/rencode/archive/v%{version}.tar.gz Source1: %{name}.changes BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build %python_subpackages %description @@ -41,20 +43,24 @@ b-encodings. Python2 version of package %prep %setup -q -n rencode-%{version} # to "avoid python-bytecode-inconsistent-mtime" warnings -FAKE_TIMESTAMP=$(LC_ALL=C date -u -r %{SOURCE1} +%y%m%d%H%M) +FAKE_TIMESTAMP=$(LC_ALL=C date -u -r %{SOURCE1} +%%y%%m%%d%%H%%M) find . -name '*.py' -exec touch -mat $FAKE_TIMESTAMP {} \; +# do not use O3 +sed -i -e '/extra_compile_args/d' setup.py %build -export CFLAGS="%{optflags}" -export CXXFLAGS="%{optflags}" +export CFLAGS="%{optflags} -fno-strict-aliasing" %python_build %install %python_install -%python_expand %fdupes -s %{buildroot}%{$python_sitearch}/rencode +%python_expand %fdupes %{buildroot}%{$python_sitearch}/rencode + +%check +%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python tests/test_rencode.py %files %{python_files} -%defattr(-,root,root) +%license COPYING %{python_sitearch}/rencode %{python_sitearch}/rencode-%{version}-py%{python_version}.egg-info diff --git a/rencode-1.0.5.tar.gz b/rencode-1.0.5.tar.gz deleted file mode 100644 index 443f7bd..0000000 --- a/rencode-1.0.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fb66c92d35355d6098956204e663ddadf7f2cc8f64962846f67e1e1d036efc57 -size 8706 diff --git a/v1.0.6.tar.gz b/v1.0.6.tar.gz new file mode 100644 index 0000000..cab213a --- /dev/null +++ b/v1.0.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ed61111f053ea37511da86ca7aed2a3cfda6bdaa1f54a237c4b86eea52f0733 +size 25455