|
|
|
@ -2,14 +2,8 @@
|
|
|
|
|
# Share doc between python2- and python3-
|
|
|
|
|
%global _docdir_fmt %{name}
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
|
%bcond_with python3
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: python-%{modname}
|
|
|
|
|
Version: 1.37
|
|
|
|
|
Version: 1.38
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Mutagen is a Python module to handle audio meta-data
|
|
|
|
|
|
|
|
|
@ -39,7 +33,6 @@ BuildRequires: python2-pytest
|
|
|
|
|
|
|
|
|
|
Python 2 version.
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%package -n python3-%{modname}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python3-%{modname}}
|
|
|
|
@ -49,7 +42,6 @@ BuildRequires: python3-pytest
|
|
|
|
|
%description -n python3-%{modname} %{_description}
|
|
|
|
|
|
|
|
|
|
Python 3 version.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for python-mutagen
|
|
|
|
@ -63,9 +55,7 @@ Contains the html documentation for python mutagen.
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py2_build
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%py3_build
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
sphinx-build -b html -n docs docs/_build
|
|
|
|
|
|
|
|
|
@ -85,9 +75,7 @@ rm -rf docs/_build/{.buildinfo,.doctrees}
|
|
|
|
|
# RuntimeError: This test suite needs a unicode locale encoding. Try setting LANG=C.UTF-8
|
|
|
|
|
export LANG=C.UTF-8
|
|
|
|
|
%{__python2} setup.py test
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n python2-%{modname}
|
|
|
|
|
%license COPYING
|
|
|
|
@ -95,13 +83,11 @@ export LANG=C.UTF-8
|
|
|
|
|
%{python2_sitelib}/%{modname}-*.egg-info
|
|
|
|
|
%{python2_sitelib}/%{modname}/
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%files -n python3-%{modname}
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc NEWS README.rst
|
|
|
|
|
%{python3_sitelib}/%{modname}-*.egg-info
|
|
|
|
|
%{python3_sitelib}/%{modname}/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_mandir}/man1/*.1*
|
|
|
|
@ -110,6 +96,9 @@ export LANG=C.UTF-8
|
|
|
|
|
%doc docs/_build/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Jun 08 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.38-1
|
|
|
|
|
- Update to 1.38
|
|
|
|
|
|
|
|
|
|
* Mon Mar 13 2017 Michele Baldessari <michele@acksyn.org> - 1.37-1
|
|
|
|
|
- New upstream
|
|
|
|
|
|
|
|
|
|