|
|
|
@ -1,17 +1,18 @@
|
|
|
|
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
|
|
|
|
|
Name: python-mutagen
|
|
|
|
|
Version: 1.13
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: 1.15
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Mutagen is a Python module to handle audio metadata
|
|
|
|
|
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: GPLv2
|
|
|
|
|
URL: http://www.sacredchao.net/quodlibet/wiki/Development/Mutagen
|
|
|
|
|
Source0: http://www.sacredchao.net/~piman/software/mutagen-%{version}.tar.gz
|
|
|
|
|
URL: http://code.google.com/p/quodlibet/wiki/Mutagen
|
|
|
|
|
Source0: http://quodlibet.googlecode.com/files/mutagen-%{version}.tar.gz
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Mutagen is a Python module to handle audio metadata. It supports
|
|
|
|
@ -23,13 +24,11 @@ includes a module to handle generic Ogg bitstreams.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n mutagen-%{version}
|
|
|
|
|
sed -e 1d -e 2d -i mutagen/__init__.py
|
|
|
|
|
sed -e 1d -e 2d -i mutagen/__init__.py
|
|
|
|
|
sed -i 's/\r//' TUTORIAL
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
mv TUTORIAL TUTORIAL.old
|
|
|
|
|
cat TUTORIAL.old | tr -d "\r" > TUTORIAL
|
|
|
|
|
rm -rf TUTORIAL.old
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
@ -40,21 +39,14 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc COPYING NEWS README TUTORIAL
|
|
|
|
|
%doc API-NOTES COPYING NEWS README TODO TUTORIAL
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_mandir}/man*/*gz
|
|
|
|
|
%{python_sitelib}/*egg*
|
|
|
|
|
%dir %{python_sitelib}/mutagen
|
|
|
|
|
%{python_sitelib}/mutagen/*.py
|
|
|
|
|
%{python_sitelib}/mutagen/*.pyc
|
|
|
|
|
%{python_sitelib}/mutagen/*.pyo
|
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.13-3
|
|
|
|
|
- Rebuild for Python 2.6
|
|
|
|
|
* Sun Mar 29 2009 Silas Sewell <silas at sewell ch> - 1.15-1
|
|
|
|
|
- Update to 1.15
|
|
|
|
|
|
|
|
|
|
* Mon Dec 31 2007 Michał Bentkowski <mr.ecik at gmail.com> - 1.13-2
|
|
|
|
|
- Add egg-info to package
|
|
|
|
|