File python-eyeD3.spec of Package python-eyeD3

#
# spec file for package python-eyeD3
#
# Copyright (c) 2014 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           python-eyeD3
Summary:        Python Module for ID3 Tag Manipulation
License:        GPL-2.0+
Group:          Productivity/Multimedia/Sound/Utilities
Version:        0.7.4
Release:        0
Source0:        http://eyed3.nicfit.net/releases/eyeD3-%{version}.tgz
# CVE-2014-1934: insecure use of `mktemp` when rewriting tags
Patch0:         CVE-2014-1934-mktemp.patch
Url:            http://eyed3.nicfit.net/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Recommends:     python-magic
BuildRequires:  python-devel
BuildRequires:  python-magic
BuildRequires:  python-setuptools
%{py_requires}
%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

%description
A Python module for the the manipulation of ID3 tags. It supports the
versions 1.0, 1.1, 2.3, and 2.4 of the ID3 standard. It can also
retrieve information, such as length and bit rate, from an MP3 file.

%prep
%setup -n eyeD3-%{version}
%patch0 -p1

%build
%__python setup.py build

%install
%__python setup.py install --prefix="%{_prefix}" --root=%{buildroot}
%__install -d -m755 "%{buildroot}/%{_bindir}"
%__install -m755 bin/eyeD3 "%{buildroot}/%{_bindir}/"

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README.rst
%{_bindir}/eyeD3
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by