Blame python-pytaglib.spec

f94e15d
%global srcname pytaglib
d9915f8
f94e15d
Name:           python-%{srcname}
f94e15d
Version:        1.4.5
f94e15d
Release:        1%{?dist}
d9915f8
Summary:        Python audio metadata ("tagging") library based on TagLib
d9915f8
d9915f8
License:        GPLv3+
d9915f8
URL:            https://github.com/supermihi/pytaglib
f94e15d
Source:         %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
f94e15d
f94e15d
Patch0001:      0001-Remove-unnecessary-py_modules-line-in-setup.py.patch
f94e15d
Patch0002:      0002-Fix-62-add-pyprinttags-to-py_modules.patch
d9915f8
d9915f8
BuildRequires:  gcc-c++
d9915f8
BuildRequires:  taglib-devel
d9915f8
d9915f8
%global _description \
d9915f8
pytaglib is a full-featured, easy-to-use, cross-platform audio metadata\
d9915f8
(“tag”) library for Python (all versions supported). It uses the popular,\
d9915f8
fast and rock-solid TagLib C++ library internally.\
d9915f8
\
d9915f8
pytaglib is a very thin wrapper about TagLib (<150 lines of code), meaning\
d9915f8
that you immediately profit from the underlying library’s speed and stability.
d9915f8
d9915f8
%description %{_description}
d9915f8
f94e15d
%package -n python3-%{srcname}
d9915f8
Summary:        %{summary}
f94e15d
%{?python_provide:%python_provide python3-%{srcname}}
d9915f8
BuildRequires:  python3-devel
d9915f8
BuildRequires:  python3-setuptools
d9915f8
BuildRequires:  python3-Cython
f94e15d
BuildRequires:  python3-pytest
f94e15d
BuildRequires:  python3-pytest-runner
d9915f8
f94e15d
%description -n python3-%{srcname} %{_description}
d9915f8
d9915f8
Python 3 version.
d9915f8
d9915f8
%prep
f94e15d
%autosetup -n %{srcname}-%{version} -p1
d9915f8
# Remove pre-generated source
d9915f8
rm -vf src/taglib.cpp
d9915f8
# remove useless shebang
d9915f8
sed -i -e '1{\@^#!/usr/bin/env python@d}' src/pyprinttags.py
d9915f8
d9915f8
%build
f94e15d
%py3_build -- --cython
d9915f8
d9915f8
%install
d9915f8
%py3_install
d9915f8
# Not interested in having 2 binaries doing same thing
d9915f8
mv -f %{buildroot}%{_bindir}/pyprinttags{3,}
d9915f8
d9915f8
%check
f94e15d
%{__python3} setup.py ptr
d9915f8
f94e15d
%files -n python3-%{srcname}
d9915f8
%license COPYING
227767b
%doc README.md CHANGELOG.md
d9915f8
%{_bindir}/pyprinttags
f94e15d
%{python3_sitearch}/%{srcname}-*.egg-info/
d9915f8
%{python3_sitearch}/taglib.*.so
d9915f8
%{python3_sitearch}/pyprinttags.py
d9915f8
%{python3_sitearch}/__pycache__/pyprinttags.*
d9915f8
d9915f8
%changelog
f94e15d
* Sun Aug 04 14:51:47 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.4.5-1
f94e15d
- Update to 1.4.5
f94e15d
231e264
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-6
231e264
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
231e264
0066f7d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-5
0066f7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0066f7d
bfcab16
* Sun Oct 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.4.3-4
bfcab16
- Drop python2 subpackage
bfcab16
6b47d10
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-3
6b47d10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6b47d10
2de7c2c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.3-2
2de7c2c
- Rebuilt for Python 3.7
2de7c2c
f67a807
* Sun Mar 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.4.3-1
f67a807
- Update to 1.4.3
f67a807
691295b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-2
691295b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
691295b
227767b
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.4.2-1
227767b
- Update to 1.4.2
227767b
0356cab
* Sat Sep 30 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.4.1-1
0356cab
- Update to 1.4.1
0356cab
615720b
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-4
615720b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
615720b
bf70227
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
bf70227
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bf70227
b7ca65b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
b7ca65b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b7ca65b
d9915f8
* Sat Dec 31 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.4.0-1
d9915f8
- Initial package