[python-eyed3/el6] Dependencies cleanup.

Christopher Meng cicku at fedoraproject.org
Fri Mar 28 04:52:52 UTC 2014


commit a3455d283a889ec9c317927f3962b9a5ddbf1673
Author: Christopher Meng <i at cicku.me>
Date:   Fri Mar 28 12:51:50 2014 +0800

    Dependencies cleanup.

 python-eyed3.spec |   21 +--------------------
 1 files changed, 1 insertions(+), 20 deletions(-)
---
diff --git a/python-eyed3.spec b/python-eyed3.spec
index 43928da..d135630 100644
--- a/python-eyed3.spec
+++ b/python-eyed3.spec
@@ -6,16 +6,14 @@ License:        GPLv2+
 URL:            http://eyed3.nicfit.net/
 Source0:        http://eyed3.nicfit.net/releases/eyeD3-%{version}.tgz
 BuildArch:      noarch
-BuildRequires:  python2-devel
+BuildRequires:  python-devel
 BuildRequires:  python-nose
 BuildRequires:  python-setuptools
 Requires:       python-magic
-%if 0%{?rhel} < 7
 BuildRequires:  python-argparse
 BuildRequires:  python-ordereddict
 Requires:       python-argparse
 Requires:       python-ordereddict
-%endif
 
 %description
 A Python module and program for processing ID3 tags. Information about
@@ -26,36 +24,19 @@ provided. The formats supported are ID3 v1.0/v1.1 and v2.3/v2.4.
 %setup -qn eyeD3-%{version}
 
 %build
-%if 0%{?rhel} < 7
 %{__python} setup.py build
-%else
-%{__python2} setup.py build
-%endif
 
 %install
-%if 0%{?rhel} < 7
 %{__python} setup.py install -O1 --skip-build --root=%{buildroot}
-%else
-%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
-%endif
 
 %check
-%if 0%{?rhel} < 7
 %{__python} setup.py test
-%else
-%{__python2} setup.py test
-%endif
 
 %files
 %doc AUTHORS ChangeLog COPYING README.rst examples/
 %{_bindir}/eyeD3
-%if 0%{?rhel} < 7
 %{python_sitelib}/eyed3/
 %{python_sitelib}/eyeD3-%{version}-py%{python_version}.egg-info/
-%else
-%{python2_sitelib}/eyed3/
-%{python2_sitelib}/eyeD3-%{version}-py%{python2_version}.egg-info/
-%endif
 
 %changelog
 * Fri Dec 27 2013 Christopher Meng <rpm at cicku.me> - 0.7.4-1


More information about the scm-commits mailing list