From c051cfed1786b69638f59f5181584cf1c8f81a32 Mon Sep 17 00:00:00 2001 From: Thorsten Leemhuis Date: Feb 14 2005 15:42:55 +0000 Subject: Change python requires to use python-abi.; Use python_sitelib macros so we will get proper compilation on x86_64. --- diff --git a/straw.spec b/straw.spec index 81334da..b937603 100644 --- a/straw.spec +++ b/straw.spec @@ -1,9 +1,10 @@ %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()")} +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: straw Version: 0.22.1 -Release: 4 +Release: 5 Epoch: 0 Summary: GNOME desktop news aggregator @@ -23,7 +24,7 @@ BuildRequires: gnome-python2, gnome-python2-gconf, gnome-python2-gnomevfs, gnome BuildRequires: python-bsddb >= 0:4.1 Requires: python-bsddb >= 0:4.1 %endif -Requires: python >= 0:%{pyver}, python < 0:%{pynext} +Requires: python-abi = %{pyver} Requires: gnome-python2-gconf, gnome-python2-gnomevfs, gnome-python2-gtkhtml2 # Note: python-adns optional but recommended Requires: python-adns @@ -53,7 +54,7 @@ python setup.py install --root $RPM_BUILD_ROOT \ --prefix %_prefix --sysconfdir %_sysconfdir \ --disable-schemas-install # Produce .pyo files to be %ghost'ed. -python -Oc 'from compileall import *; compile_dir("'$RPM_BUILD_ROOT/%{_libdir}/python%{pyver}/site-packages/%{name}'")' +python -Oc 'from compileall import *; compile_dir("'$RPM_BUILD_ROOT/%{python_sitelib}/%{name}'")' desktop-file-install \ --vendor fedora \ @@ -81,10 +82,10 @@ gconftool-2 --makefile-uninstall-rule \ %doc LICENSE NEWS README TODO %config %{_sysconfdir}/gconf/schemas/*.schemas %{_bindir}/* -%dir %{_libdir}/python%{pyver}/site-packages/%{name} -%{_libdir}/python%{pyver}/site-packages/%{name}/*.py -%{_libdir}/python%{pyver}/site-packages/%{name}/*.pyc -%ghost %{_libdir}/python%{pyver}/site-packages/%{name}/*.pyo +%dir %{python_sitelib}/%{name} +%{python_sitelib}/%{name}/*.py +%{python_sitelib}/%{name}/*.pyc +%ghost %{python_sitelib}/%{name}/*.pyo %{_datadir}/applications/*.desktop %{_datadir}/locale/*/LC_MESSAGES/%{name}.mo %{_datadir}/pixmaps/* @@ -92,6 +93,10 @@ gconftool-2 --makefile-uninstall-rule \ %changelog +* Sat Feb 05 2005 Toshio Kuratomi 0.22.1-5 +- Change python requires to use python-abi. +- Use python_sitelib macros so we will get proper compilation on x86_64. + * Tue May 4 2004 Michael Schwendt 0:0.22.1-0.fdr.4 - Fix python-bsddb requirement.