forked from pool/python-mutagen
Accepting request 294154 from home:aplanas:branches:devel:languages:python
- Updated to 1.28
* Various minor fixes to make mutagen behave the same under Python3 as under Python2.
* Update gpl text [205]
* Documentation: Add example for how to create a new flac.Picture [209]
* ID3:
* Various error handling fixes ([110], [211], ...)
* Don’t hide ID3 loading errors with ID3FileType.
* In case a synch safe marked frame isn’t sync safe, only warn [210]
* Removed PEDANTIC mode
* Tools:
* Add signal handling [170]
* mid3cp: Make it work under Windows.
* mutagen-inspect: Make it work under Windows+Python3 [216]
* Support unicode file paths under Windows+Python2 [214]
* Support file paths with invalid encoding under Unix+Python3.
- Adapt the spec file for SLE11
- Replace names of scripts in setup.py
OBS-URL: https://build.opensuse.org/request/show/294154
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutagen?expand=0&rev=16
This commit is contained in:
committed by
Git OBS Bridge
parent
b593718469
commit
02ee27fd02
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a2ea5b5099ce14ab84c628e9d0a91217df20d2e3459a707f2eba9a354f52da91
|
||||
size 813614
|
||||
3
mutagen-1.28.tar.gz
Normal file
3
mutagen-1.28.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7d45889c060fdb16aea1733cee92d6dcaa04b8c8574802eb7b43a9f465fa3ca9
|
||||
size 877463
|
||||
@@ -1,3 +1,24 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 2 10:06:28 UTC 2015 - aplanas@suse.com
|
||||
|
||||
- Updated to 1.28
|
||||
* Various minor fixes to make mutagen behave the same under Python3 as under Python2.
|
||||
* Update gpl text [205]
|
||||
* Documentation: Add example for how to create a new flac.Picture [209]
|
||||
* ID3:
|
||||
* Various error handling fixes ([110], [211], ...)
|
||||
* Don’t hide ID3 loading errors with ID3FileType.
|
||||
* In case a synch safe marked frame isn’t sync safe, only warn [210]
|
||||
* Removed PEDANTIC mode
|
||||
* Tools:
|
||||
* Add signal handling [170]
|
||||
* mid3cp: Make it work under Windows.
|
||||
* mutagen-inspect: Make it work under Windows+Python3 [216]
|
||||
* Support unicode file paths under Windows+Python2 [214]
|
||||
* Support file paths with invalid encoding under Unix+Python3.
|
||||
- Adapt the spec file for SLE11
|
||||
- Replace names of scripts in setup.py
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 08 20:48:00 UTC 2014 - Led <ledest@gmail.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-mutagen
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,11 +16,8 @@
|
||||
#
|
||||
|
||||
|
||||
%{!?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
|
||||
Version: 1.28
|
||||
Release: 0
|
||||
Summary: Python module to Handle Audio Metadata
|
||||
License: GPL-2.0
|
||||
@@ -32,7 +29,9 @@ BuildRequires: python-setuptools
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} > 1110
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
@@ -48,13 +47,12 @@ Ogg streams on an individual packet/page level.
|
||||
%prep
|
||||
%setup -q -n mutagen-%{version}
|
||||
# remove shebangs from library files
|
||||
find mutagen/ -name "*.py" -exec sed -i -e '/^#!\s\?\/usr\/bin\/\(env\s\)\?python$/d' {} ';'
|
||||
find mutagen/ -name "*.py" -exec sed -i -e '/^#!\s\?\/usr\/bin\/\(env\s\)\?python$/d' {} ';'
|
||||
|
||||
for i in `ls tools` ; do
|
||||
mv tools/${i} tools/${i}-%{py_ver}
|
||||
done
|
||||
for i in `ls man | sed "s/\.1//"` ; do
|
||||
mv man/${i}.1 man/${i}-%{py_ver}.1
|
||||
for i in mid3cp mid3iconv mid3v2 moggsplit mutagen-inspect mutagen-pony; do
|
||||
sed -i "s/\"${i}\"/\"${i}-%{py_ver}\"/g" setup.py
|
||||
mv tools/${i} tools/${i}-%{py_ver}
|
||||
mv man/${i}.1 man/${i}-%{py_ver}.1
|
||||
done
|
||||
|
||||
%build
|
||||
@@ -62,12 +60,14 @@ python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --root=%{buildroot} --prefix="%{_prefix}"
|
||||
ln -sf %{_bindir}/mid3cp-%{py_ver} %{buildroot}%{_bindir}/mid3cp
|
||||
ln -sf %{_bindir}/mid3iconv-%{py_ver} %{buildroot}%{_bindir}/mid3iconv
|
||||
ln -sf %{_bindir}/mid3v2-%{py_ver} %{buildroot}%{_bindir}/mid3v2
|
||||
ln -sf %{_bindir}/moggsplit-%{py_ver} %{buildroot}%{_bindir}/moggsplit
|
||||
ln -sf %{_bindir}/mutagen-inspect-%{py_ver} %{buildroot}%{_bindir}/mutagen-inspect
|
||||
ln -sf %{_bindir}/mutagen-pony-%{py_ver} %{buildroot}%{_bindir}/mutagen-pony
|
||||
|
||||
ln -sf %{_mandir}/man1/mid3cp-%{py_ver}.1.gz %{buildroot}%{_mandir}/man1/mid3cp.1.gz
|
||||
ln -sf %{_mandir}/man1/mid3iconv-%{py_ver}.1.gz %{buildroot}%{_mandir}/man1/mid3iconv.1.gz
|
||||
ln -sf %{_mandir}/man1/mid3v2-%{py_ver}.1.gz %{buildroot}%{_mandir}/man1/mid3v2.1.gz
|
||||
ln -sf %{_mandir}/man1/moggsplit-%{py_ver}.1.gz %{buildroot}%{_mandir}/man1/moggsplit.1.gz
|
||||
@@ -77,11 +77,13 @@ ln -sf %{_mandir}/man1/mutagen-pony-%{py_ver}.1.gz %{buildroot}%{_mandir}/man1/m
|
||||
%pre
|
||||
# Since binaries became ghosted to be used with update-alternatives, we have to get rid
|
||||
# of the old binary resulting from the non-update-alternativies-ified package:
|
||||
[ -h %{_bindir}/mid3cp ] || rm -f %{_bindir}/mid3cp
|
||||
[ -h %{_bindir}/mid3iconv ] || rm -f %{_bindir}/mid3iconv
|
||||
[ -h %{_bindir}/mid3v2 ] || rm -f %{_bindir}/mid3v2
|
||||
[ -h %{_bindir}/moggsplit ] || rm -f %{_bindir}/moggsplit
|
||||
[ -h %{_bindir}/mutagen-inspect ] || rm -f %{_bindir}/mutagen-inspect
|
||||
[ -h %{_bindir}/mutagen-pony ] || rm -f %{_bindir}/mutagen-pony
|
||||
[ -h %{_mandir}/man1/mid3cp.1.gz ] || rm -f %{_mandir}/man1/mid3cp.1.gz
|
||||
[ -h %{_mandir}/man1/mid3iconv.1.gz ] || rm -f %{_mandir}/man1/mid3iconv.1.gz
|
||||
[ -h %{_mandir}/man1/mid3v2.1.gz ] || rm -f %{_mandir}/man1/mid3v2.1.gz
|
||||
[ -h %{_mandir}/man1/moggsplit.1.gz ] || rm -f %{_mandir}/man1/moggsplit.1.gz
|
||||
@@ -90,11 +92,13 @@ ln -sf %{_mandir}/man1/mutagen-pony-%{py_ver}.1.gz %{buildroot}%{_mandir}/man1/m
|
||||
|
||||
%post
|
||||
update-alternatives \
|
||||
--install %{_bindir}/mid3iconv mid3iconv %{_bindir}/mid3iconv-%{py_ver} 30 \
|
||||
--install %{_bindir}/mid3cp mid3cp %{_bindir}/mid3cp-%{py_ver} 30 \
|
||||
--slave %{_bindir}/mid3iconv mid3iconv %{_bindir}/mid3iconv-%{py_ver} \
|
||||
--slave %{_bindir}/mid3v2 mid3v2 %{_bindir}/mid3v2-%{py_ver} \
|
||||
--slave %{_bindir}/moggsplit moggsplit %{_bindir}/moggsplit-%{py_ver} \
|
||||
--slave %{_bindir}/mutagen-inspect mutagen-inspect %{_bindir}/mutagen-inspect-%{py_ver} \
|
||||
--slave %{_bindir}/mutagen-pony mutagen-pony %{_bindir}/mutagen-pony-%{py_ver} \
|
||||
--slave %{_mandir}/man1/mid3cp.1.gz mid3cp.1.gz %{_mandir}/man1/mid3cp-%{py_ver}.1.gz \
|
||||
--slave %{_mandir}/man1/mid3iconv.1.gz mid3iconv.1.gz %{_mandir}/man1/mid3iconv-%{py_ver}.1.gz \
|
||||
--slave %{_mandir}/man1/mid3v2.1.gz mid3v2.1.gz %{_mandir}/man1/mid3v2-%{py_ver}.1.gz \
|
||||
--slave %{_mandir}/man1/moggsplit.1.gz moggsplit.1.gz %{_mandir}/man1/moggsplit-%{py_ver}.1.gz \
|
||||
@@ -103,12 +107,14 @@ update-alternatives \
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ] ; then
|
||||
update-alternatives --remove mid3iconv %{_bindir}/mid3iconv-%{py_ver}
|
||||
update-alternatives --remove mid3cp %{_bindir}/mid3cp-%{py_ver}
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-, root, root, 0755)
|
||||
%doc COPYING NEWS README TODO
|
||||
%doc COPYING NEWS README.rst
|
||||
%ghost %{_bindir}/mid3cp
|
||||
%{_bindir}/mid3cp-%{py_ver}
|
||||
%ghost %{_bindir}/mid3iconv
|
||||
%{_bindir}/mid3iconv-%{py_ver}
|
||||
%ghost %{_bindir}/mid3v2
|
||||
@@ -121,6 +127,8 @@ fi
|
||||
%{_bindir}/mutagen-pony-%{py_ver}
|
||||
%{python_sitelib}/mutagen
|
||||
%{python_sitelib}/mutagen-%{version}-py%{py_ver}.egg-info
|
||||
%ghost %{_mandir}/man1/mid3cp.1.gz
|
||||
%{_mandir}/man1/mid3cp-%{py_ver}.1.gz
|
||||
%ghost %{_mandir}/man1/mid3iconv.1.gz
|
||||
%{_mandir}/man1/mid3iconv-%{py_ver}.1.gz
|
||||
%ghost %{_mandir}/man1/mid3v2.1.gz
|
||||
|
||||
Reference in New Issue
Block a user