Hello community,
here is the log from the commit of package python-pytaglib for
openSUSE:Leap:15.2 checked in at 2020-03-02 13:21:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-pytaglib (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-pytaglib.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytaglib"
Mon Mar 2 13:21:21 2020 rev:12 rq:777011 version:1.4.5
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-pytaglib/python-pytaglib.changes
2020-01-15 15:52:13.315555897 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-pytaglib.new.26092/python-pytaglib.changes
2020-03-02 13:21:22.202161281 +0100
@@ -1,0 +2,22 @@
+Mon Oct 14 14:35:29 UTC 2019 - Matej Cepl <[email protected]>
+
+- Replace %fdupes -s with plain %fdupes; hardlinks are better.
+
+-------------------------------------------------------------------
+Thu May 9 15:33:15 UTC 2019 - [email protected]
+
+- version update to 1.4.5
+ * Fix published taglib.cpp
+ * Remove cython dependency from setup.py
+- added patches
+ fix 'LocalPath'object has no attribute 'endswith' for python2
+ + python-pytaglib-python2-localpath.patch
+
+-------------------------------------------------------------------
+Wed Aug 8 23:17:52 UTC 2018 - [email protected]
+
+- Update to 1.4.3
+ * Fix accidental upload of the Windows version to PyPI. Hopefully fixes #42,
#43.
+ * Fix #31: Don't use precompiled taglib.cpp on Windows
+
+-------------------------------------------------------------------
Old:
----
pytaglib-1.4.1.tar.gz
New:
----
python-pytaglib-python2-localpath.patch
v1.4.5.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytaglib.spec ++++++
--- /var/tmp/diff_new_pack.mhDcuF/_old 2020-03-02 13:21:22.674162220 +0100
+++ /var/tmp/diff_new_pack.mhDcuF/_new 2020-03-02 13:21:22.678162227 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pytaglib
#
-# 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,26 +12,29 @@
# 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-pytaglib
-Version: 1.4.1
+Version: 1.4.5
Release: 0
Summary: Metadata "tagging" library based on TagLib
-License: GPL-3.0+
-Group: Development/Libraries/Python
-Url: https://github.com/supermihi/pytaglib
-Source:
https://files.pythonhosted.org/packages/source/p/pytaglib/pytaglib-%{version}.tar.gz
+License: GPL-3.0-only OR MIT
+URL: https://github.com/supermihi/pytaglib
+Source:
https://github.com/supermihi/pytaglib/archive/v%{version}.tar.gz
+# https://github.com/supermihi/pytaglib/issues/63
+# fix 'LocalPath'object has no attribute 'endswith' for python2
+Patch0: python-pytaglib-python2-localpath.patch
+BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel}
+BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libtag-devel
BuildRequires: python-rpm-macros
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
%python_subpackages
%description
@@ -40,26 +43,31 @@
%prep
%setup -q -n "pytaglib-%{version}"
+%patch0 -p1
+# Remove pre-generated source
+rm -vf src/taglib.cpp
sed -i -e "1d" src/pyprinttags.py
%build
-%python_build
+%python_build "--cython"
%install
%python_install
mv %{buildroot}%{_bindir}/pyprinttags3 %{buildroot}/%{_bindir}/pyprinttags
-%python_expand %fdupes -s %{buildroot}%{$python_sitearch}
+%python_expand %fdupes %{buildroot}%{$python_sitearch}
+# https://github.com/supermihi/pytaglib/issues/62
+mkdir -p %{buildroot}%{python3_sitelib}
+install -m 644 src/pyprinttags.py %{buildroot}%{python3_sitelib}
%check
export LANG=en_US.UTF-8
%python_exec setup.py test
%files %{python_files}
-%defattr(-,root,root)
-%doc COPYING README.txt
+%license COPYING
+%doc README.md
%python3_only %{_bindir}/pyprinttags
-%pycache_only %{python_sitearch}/__pycache__
-%{python_sitearch}/pyprinttags.py*
+%python3_only %{python3_sitelib}/pyprinttags.py
%{python_sitearch}/taglib*.so
%{python_sitearch}/pytaglib-%{version}-py%{python_version}.egg-info/
++++++ python-pytaglib-python2-localpath.patch ++++++
Index: pytaglib-1.4.5/tests/__init__.py
===================================================================
--- pytaglib-1.4.5.orig/tests/__init__.py 2019-03-26 21:48:08.000000000
+0100
+++ pytaglib-1.4.5/tests/__init__.py 2019-05-09 15:30:36.799060223 +0200
@@ -12,6 +12,6 @@ import os.path, shutil
def copy_test_file(filename, tmpdir):
"""Make a temporary copy of test data file *name* (without dir) and return
its full path."""
source = os.path.join(os.path.dirname(__file__), 'data', filename)
- target = os.path.join(tmpdir, filename)
+ target = os.path.join(tmpdir.strpath, filename)
shutil.copyfile(source, target)
return target