forked from pool/python-mutagen
Accepting request 203073 from home:MargueriteSu:branches:devel:languages:python
update to 1.22 OBS-URL: https://build.opensuse.org/request/show/203073 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutagen?expand=0&rev=8
This commit is contained in:
committed by
Git OBS Bridge
parent
58054382f0
commit
5e9b918568
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-mutagen
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -15,20 +15,23 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||
%{!?py_ver: %global py_ver %(python -c "import sys; v=sys.version_info[:2]; print '%%d.%%d'%%v" 2>/dev/null || echo PYTHON-NOT-FOUND)}
|
||||
|
||||
|
||||
Name: python-mutagen
|
||||
Version: 1.22
|
||||
Release: 0
|
||||
Summary: Python module to Handle Audio Metadata
|
||||
Version: 1.20
|
||||
Release: 2
|
||||
License: GPL-2.0
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://code.google.com/p/mutagen/
|
||||
Source: http://mutagen.googlecode.com/files/mutagen-%{version}.tar.bz2
|
||||
Url: https://pypi.python.org/pypi/mutagen
|
||||
Source: https://pypi.python.org/packages/source/m/mutagen/mutagen-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-distribute
|
||||
Requires: python = %{py_ver}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: dos2unix python-devel
|
||||
%py_requires
|
||||
%if %suse_version > 1110
|
||||
%if 0%{?suse_version} > 1110
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
@@ -43,7 +46,6 @@ Ogg streams on an individual packet/page level.
|
||||
|
||||
%prep
|
||||
%setup -q -n mutagen-%{version}
|
||||
dos2unix TUTORIAL
|
||||
# remove shebangs from library files
|
||||
find mutagen/ -name "*.py" -exec sed -i -e '/^#!\s\?\/usr\/bin\/\(env\s\)\?python$/d' {} ';'
|
||||
|
||||
@@ -51,16 +53,18 @@ find mutagen/ -name "*.py" -exec sed -i -e '/^#!\s\?\/usr\/bin\/\(env\s\)\?pyth
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --root=$RPM_BUILD_ROOT --prefix="%{_prefix}" \
|
||||
--record-rpm=INSTALLED_FILES
|
||||
python setup.py install --root=%{buildroot} --prefix="%{_prefix}"
|
||||
|
||||
sed -i -e 's/\.1$/.1.gz/g' INSTALLED_FILES
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files -f INSTALLED_FILES
|
||||
%files
|
||||
%defattr(-, root, root, 0755)
|
||||
%doc API-NOTES COPYING NEWS README TODO TUTORIAL
|
||||
%doc COPYING NEWS README TODO
|
||||
%{_bindir}/mid3iconv
|
||||
%{_bindir}/mid3v2
|
||||
%{_bindir}/moggsplit
|
||||
%{_bindir}/mutagen-inspect
|
||||
%{_bindir}/mutagen-pony
|
||||
%{python_sitelib}/mutagen
|
||||
%{python_sitelib}/mutagen-%{version}-py%{py_ver}.egg-info
|
||||
%{_mandir}/man1/*.gz
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user