|
|
|
@ -1,15 +1,14 @@
|
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
%global realname mutagen
|
|
|
|
|
|
|
|
|
|
Name: python-mutagen
|
|
|
|
|
Version: 1.19
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Name: python-%{realname}
|
|
|
|
|
Version: 1.20
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Mutagen is a Python module to handle audio metadata
|
|
|
|
|
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: GPLv2
|
|
|
|
|
URL: http://code.google.com/p/mutagen
|
|
|
|
|
Source0: http://mutagen.googlecode.com/files/mutagen-%{version}.tar.gz
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
Source0: http://mutagen.googlecode.com/files/%{realname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
@ -23,9 +22,9 @@ info blocks, and Ogg Vorbis/FLAC/Theora stream headers. Finally, it
|
|
|
|
|
includes a module to handle generic Ogg bitstreams.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n mutagen-%{version}
|
|
|
|
|
%setup -q -n %{realname}-%{version}
|
|
|
|
|
# Fix non-executable-script error
|
|
|
|
|
sed -i '/^#! \/usr\/bin\/env python/,+1 d' mutagen/__init__.py
|
|
|
|
|
sed -i '/^#! \/usr\/bin\/env python/,+1 d' %{realname}/__init__.py
|
|
|
|
|
# Fix wrong-file-end-of-line-encoding warning
|
|
|
|
|
sed -i 's/\r//' TUTORIAL
|
|
|
|
|
|
|
|
|
@ -33,24 +32,23 @@ sed -i 's/\r//' TUTORIAL
|
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
./setup.py test
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
%{__python} setup.py test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc API-NOTES COPYING NEWS README TODO TUTORIAL
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_mandir}/man*/*gz
|
|
|
|
|
%{python_sitelib}/mutagen
|
|
|
|
|
%{python_sitelib}/mutagen-%{version}-*.egg-info
|
|
|
|
|
%{_bindir}/m*
|
|
|
|
|
%{_mandir}/man1/m*.1*
|
|
|
|
|
%{python_sitelib}/%{realname}
|
|
|
|
|
%{python_sitelib}/%{realname}-%{version}-*.egg-info
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Dec 19 2010 Silas Sewell <silas@sewell.ch> - 1.20-1
|
|
|
|
|
- Update to 1.20
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.19-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
|
|
|
|
|