fix python packaging

This commit is contained in:
Matthias Clasen 2006-11-07 15:29:32 +00:00
parent 42b6fcf92b
commit 4fa35738f1

View File

@ -1,7 +1,7 @@
%define po_package gnome-menus
%define enable_debugging 0
%define pyver %(%{__python} -c "import sys; print sys.version[:3]")
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Summary: A menu system for the GNOME project
Name: gnome-menus
@ -13,7 +13,6 @@ URL: http://www.gnome.org/
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: redhat-menus >= 6.5.4
Requires: python-abi = %{pyver}
BuildRequires: glib2-devel >= 2.6.0
BuildRequires: python2-devel >= 2.3.0
BuildRequires: gamin-devel
@ -83,8 +82,8 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-)
%doc
%{_libdir}/libgnome-menu.so.*
%{_libdir}/python*/site-packages/gmenu.so
%{_libdir}/python*/site-packages/GMenuSimpleEditor/*
%{python_sitelib}/gmenu.so
%{python_sitelib}/GMenuSimpleEditor/*
%{_datadir}/gnome-menus/glade/gmenu-simple-editor.glade
%{_datadir}/applications/gmenu-simple-editor.desktop
%{_datadir}/desktop-directories
@ -100,6 +99,7 @@ rm -rf $RPM_BUILD_ROOT
* Mon Nov 6 2006 Matthias Clasen <mclasen@redhat.com> - 2.17.2-1
- Update to 2.17.2
- Don't ship static libraries
- Fix python packaging
* Sat Oct 21 2006 Matthias Clasen <mclasen@redhat.com> - 2.16.1-1
- Update to 2.16.1