File python-eyeD3.spec of Package python-eyeD3

#
# spec file for package python-eyeD3
#
# Copyright (c) 2011 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
BuildRequires:  python-devel
Summary:        Python Module for ID3 Tag Manipulation
Version:        0.6.18
Release:        0
Source0:        http://eyed3.nicfit.net/releases/eyeD3-%{version}.tar.gz
License:        GPL-2.0+
Group:          Productivity/Multimedia/Sound/Utilities
Url:            http://eyed3.nicfit.net/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Recommends:     python-magic
BuildRequires:  python-magic
%{py_requires}
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
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}

%build
./configure
export CFLAGS="$RPM_OPT_FLAGS" 
%__python setup.py build

%install
%__python setup.py install --prefix="%{_prefix}" --root="$RPM_BUILD_ROOT" --record-rpm=INSTALLED_FILES
%__install -d -m755 "$RPM_BUILD_ROOT/%{_bindir}"
%__install -m755 bin/eyeD3 "$RPM_BUILD_ROOT/%{_bindir}/"

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc AUTHORS COPYING README ChangeLog NEWS README.html TODO
%{_bindir}/eyeD3

%changelog
openSUSE Build Service is sponsored by