forked from pool/python-pytaglib
- 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 OBS-URL: https://build.opensuse.org/request/show/628448 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytaglib?expand=0&rev=5
70 lines
2.1 KiB
RPMSpec
70 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-pytaglib
|
|
#
|
|
# Copyright (c) 2018 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
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-pytaglib
|
|
Version: 1.4.3
|
|
Release: 0
|
|
Summary: Metadata "tagging" library based on TagLib
|
|
License: GPL-3.0-or-later
|
|
Group: Development/Libraries/Python
|
|
URL: https://github.com/supermihi/pytaglib
|
|
Source: https://files.pythonhosted.org/packages/source/p/pytaglib/pytaglib-%{version}.tar.gz
|
|
BuildRequires: %{python_module Cython}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libtag-devel
|
|
BuildRequires: python-rpm-macros
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
pytaglib is an audio metadata (“tag”) library for Python.
|
|
It relies on the TagLib C++ library.
|
|
|
|
%prep
|
|
%setup -q -n "pytaglib-%{version}"
|
|
# Remove pre-generated source
|
|
rm -vf src/taglib.cpp
|
|
sed -i -e "1d" src/pyprinttags.py
|
|
|
|
%build
|
|
%python_build "--cython"
|
|
|
|
%install
|
|
%python_install
|
|
mv %{buildroot}%{_bindir}/pyprinttags3 %{buildroot}/%{_bindir}/pyprinttags
|
|
%python_expand %fdupes -s %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
export LANG=en_US.UTF-8
|
|
%python_exec setup.py test
|
|
|
|
%files %{python_files}
|
|
%license COPYING
|
|
%doc README.txt
|
|
%python3_only %{_bindir}/pyprinttags
|
|
%pycache_only %{python_sitearch}/__pycache__
|
|
%{python_sitearch}/pyprinttags.py*
|
|
%{python_sitearch}/taglib*.so
|
|
%{python_sitearch}/pytaglib-%{version}-py%{python_version}.egg-info/
|
|
|
|
%changelog
|