New upstream and fixes

- New upstream release
- Only use macro style for buildroot
- Fixed homepage and source URL
- Set python2-devel as BR
- Fix documentation building and shipping
- Fix spelling errors in description
epel9
Michele Baldessari 10 years ago
parent ddd7c07c86
commit b5c8faa8be

1
.gitignore vendored

@ -1,2 +1,3 @@
mutagen-1.19.tar.gz
/mutagen-1.20.tar.gz
/mutagen-1.27.tar.gz

@ -1,51 +1,59 @@
%global realname mutagen
Name: python-%{realname}
Version: 1.20
Release: 7%{?dist}
Summary: Mutagen is a Python module to handle audio metadata
Version: 1.27
Release: 1%{?dist}
Summary: Mutagen is a Python module to handle audio meta-data
Group: Development/Languages
License: GPLv2
URL: http://code.google.com/p/mutagen
Source0: http://mutagen.googlecode.com/files/%{realname}-%{version}.tar.gz
URL: https://bitbucket.org/lazka/mutagen/overview
Source0: https://bitbucket.org/lazka/mutagen/downloads/mutagen-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python2-devel
%description
Mutagen is a Python module to handle audio metadata. It supports
Mutagen is a Python module to handle audio meta-data. 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.
includes a module to handle generic Ogg bit-streams.
%prep
%setup -q -n %{realname}-%{version}
# Fix non-executable-script error
sed -i '/^#! \/usr\/bin\/env python/,+1 d' %{realname}/__init__.py
# Fix wrong-file-end-of-line-encoding warning
sed -i 's/\r//' TUTORIAL
%build
%{__python} setup.py build
%install
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
%{__install} -d %{buildroot}%{_mandir}/man1
%{__install} -p -m 0644 man/*.1 %{buildroot}%{_mandir}/man1
%check
%{__python} setup.py test
%files
%defattr(-,root,root,-)
%doc API-NOTES COPYING NEWS README TODO TUTORIAL
%doc COPYING NEWS README.rst docs/tutorial.rst docs/api_notes.rst docs/bugs.rst
%{_bindir}/m*
%{_mandir}/man1/m*.1*
%{_mandir}/*/*
%{python_sitelib}/%{realname}
%{python_sitelib}/%{realname}-%{version}-*.egg-info
%changelog
* Mon Dec 15 2014 Michele Baldessari <michele@acksyn.org> - 1.27-1
- New upstream release
- Only use macro style for buildroot
* Sun Nov 23 2014 Michele Baldessari <michele@acksyn.org> - 1.26-1
- Fixed homepage and source URL
- Set python2-devel as BR
- Fix documentation building and shipping
- Fix spelling errors in description
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

@ -1,2 +1 @@
68132949f3cd68491b87ff880ded4680 mutagen-1.19.tar.gz
adb16d9f6056bc864a5c86c6f885af79 mutagen-1.20.tar.gz
6a9bb5cc33214add35348f1bb3448340 mutagen-1.27.tar.gz

Loading…
Cancel
Save