From 1c0980f25e05a85439c8435023fe4c3f587b663c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Bentkowski?= Date: Sat, 22 Jul 2006 14:39:08 +0000 Subject: [PATCH] auto-import python-mutagen-1.5.1-5 on branch devel from python-mutagen-1.5.1-5.src.rpm --- .cvsignore | 1 + python-mutagen.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 71 insertions(+) create mode 100644 python-mutagen.spec diff --git a/.cvsignore b/.cvsignore index e69de29..fab3aa7 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +mutagen-1.5.1.tar.gz diff --git a/python-mutagen.spec b/python-mutagen.spec new file mode 100644 index 0000000..9462db0 --- /dev/null +++ b/python-mutagen.spec @@ -0,0 +1,69 @@ +%{!?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)")} + +Name: python-mutagen +Version: 1.5.1 +Release: 5%{?dist} +Summary: Mutagen is a Python module to handle audio metadata +Group: Development/Languages +License: GPL +URL: http://www.sacredchao.net/quodlibet/wiki/Development/Mutagen +Source0: http://www.sacredchao.net/~piman/software/mutagen-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: python-devel +BuildArch: noarch + +%description +Mutagen is a Python module to handle audio metadata. It supports +reading ID3 (all versions), APEv2, FLAC, and Ogg Vorbis/FLAC/Theora. +It can write ID3v1.1, ID3v2.4, APEv2, FLAC, and Ogg Vorbis/FLAC/Theora +comments. It can also read MPEG audio and Xing headers, FLAC stream +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} +sed -e 1d -e 2d -i mutagen/__init__.py + +%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 +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc COPYING NEWS README TUTORIAL +%{_bindir}/* +%{_mandir}/man*/*gz +%dir %{python_sitelib}/mutagen +%{python_sitelib}/mutagen/*.py +%{python_sitelib}/mutagen/*.pyc +%ghost %{python_sitelib}/mutagen/*.pyo + +%changelog +* Fri Jul 21 2006 Michał Bentkowski - 1.5.1-5 +- Some fixes in preable. +- Change name from mutagen to python-mutagen. +- Delete CFLAGS declaration. + +* Thu Jul 20 2006 Michał Bentkowski - 1.5.1-4 +- Add BuildArch: noarch to preamble. + +* Sat Jul 15 2006 Michał Bentkowski - 1.5.1-3 +- Remove python-abi dependency. +- Prep section deletes first two lines in __init__.py file due to rpmlint error. + +* Sat Jul 15 2006 Michał Bentkowski - 1.5.1-2 +- Clean at files section. +- Fix charset in TUTORIAL file. + +* Fri Jul 14 2006 Michał Bentkowski - 1.5.1-1 +- First build. diff --git a/sources b/sources index e69de29..30b4ba3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9ce5d5f14e02f2eabd919d6bdaebadbc mutagen-1.5.1.tar.gz