rpms/id3-py/devel id3-py.spec,1.5,1.6
Ville Skytta (scop)
fedora-extras-commits at redhat.com
Thu Dec 16 18:13:19 UTC 2004
Author: scop
Update of /cvs/extras/rpms/id3-py/devel
In directory cvs.fedora.redhat.com:/tmp/cvs-serv9769
Modified Files:
id3-py.spec
Log Message:
Sync with Python spec template from fedora-rpmdevtools, should fix x86_64 build, improve description.
Index: id3-py.spec
===================================================================
RCS file: /cvs/extras/rpms/id3-py/devel/id3-py.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- id3-py.spec 10 Dec 2004 22:03:03 -0000 1.5
+++ id3-py.spec 16 Dec 2004 18:13:17 -0000 1.6
@@ -1,9 +1,8 @@
-%define pyver %(python -c 'import sys ; print sys.version[:3]')
-%define pynext %(python -c 'print %{pyver} + 0.1')
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: id3-py
Version: 1.2
-Release: 5
+Release: 6
Epoch: 0
Summary: Python ID3 tag library
@@ -15,14 +14,13 @@
BuildArch: noarch
BuildRequires: python-devel
-Requires: python >= 0:%{pyver}, python < 0:%{pynext}
+Requires: python-abi = %(%{__python} -c "import sys ; print sys.version[:3]")
%description
This is a simple Python module for retrieving and setting so-called
-ID3 tags on MP3 compressed audio files through an object-oriented
-interface. MP3 players generally use this simple information for
-display track title, artist name, and album title while playing the
-sound file.
+ID3 tags on audio files through an object-oriented interface. Players
+generally use this simple information for display track title, artist
+name, and album title while playing the sound file.
%prep
@@ -30,13 +28,12 @@
%build
-python setup.py build
+%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
-python setup.py install --root $RPM_BUILD_ROOT
-touch $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/site-packages/ID3.pyo
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%clean
@@ -46,12 +43,16 @@
%files
%defattr(-,root,root,-)
%doc CHANGES COPYING README
-%{_libdir}/python%{pyver}/site-packages/ID3.py
-%{_libdir}/python%{pyver}/site-packages/ID3.pyc
-%ghost %{_libdir}/python%{pyver}/site-packages/ID3.pyo
+%{python_sitelib}/ID3.py
+%{python_sitelib}/ID3.pyc
+%ghost %{python_sitelib}/ID3.pyo
%changelog
+* Thu Dec 16 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2-6
+- Sync with Python spec template from fedora-rpmdevtools.
+- Improve description.
+
* Wed Oct 15 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2-0.fdr.5
- Fix Python version requirements.
More information about the fedora-extras-commits
mailing list