diff options
-rw-r--r-- | pygtk.spec.in | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/pygtk.spec.in b/pygtk.spec.in index 838ad06f..f0316819 100644 --- a/pygtk.spec.in +++ b/pygtk.spec.in @@ -10,7 +10,8 @@ Source: ftp://ftp.gtk.org/pub/gtk/python/pygtk-%{version}.tar.gz BuildRoot: /var/tmp/pygtk-root Packager: James Henstridge <james@daa.com.au> Requires: gtk+ >= 1.3.9 -Requires: python >= 2.2 +Requires: python2 >= 2.2 +Buildrequires: python2-devel >= 2.2 %description PyGTK is an extension module for python that gives you access to the GTK+ @@ -30,7 +31,7 @@ allows the programmer to keep the UI and program logic separate. %package devel Summary: files needed to build wrappers for GTK+ addon libraries Group: Development/Languages -Requires: pygtk = %{ver} +Requires: pygtk = %{version} %description devel This package contains files required to build wrappers for GTK+ addon @@ -44,7 +45,8 @@ libraries so that they interoperate with pygtk. - changed name to 'pygtk2' to avoid name conflict with pygtk %prep -%setup -n pygtk-%{version} +%setup -q -n pygtk-%{version} +[ -x /usr/bin/python2.2 ] && export PYTHON=/usr/bin/python2.2 ./configure --prefix=%{_prefix} %build @@ -55,10 +57,12 @@ rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install %files +%defattr(644, root, root, 755) %dir %{_prefix}/lib/python?.?/site-packages/gtk %{_prefix}/lib/python?.?/site-packages/gtk/__init__.py* %{_prefix}/lib/python?.?/site-packages/gtk/keysyms.py* +%defattr(755, root, root, 755) %{_prefix}/lib/python?.?/site-packages/gobjectmodule.so %{_prefix}/lib/python?.?/site-packages/pangomodule.so %{_prefix}/lib/python?.?/site-packages/gtk/_gtkmodule.so @@ -66,13 +70,16 @@ make DESTDIR=$RPM_BUILD_ROOT install %doc AUTHORS NEWS README MAPPING ChangeLog description.py %doc examples -%if {buildglade} +%if %{buildglade} %files libglade +%defattr(755, root, root, 755) %{_prefix}/lib/python?.?/site-packages/gtk/glademodule.so %endif %files devel +%defattr(755, root, root, 755) %{_prefix}/bin/pygtk-codegen-2.0 +%defattr(644, root, root, 755) %dir %{_prefix}/include/pygtk %{_prefix}/include/pygtk/*.h %{_prefix}/lib/pkgconfig/pygtk-2.0.pc |