summaryrefslogtreecommitdiff
path: root/pygtk.spec.in
diff options
context:
space:
mode:
authorMatt Wilson <msw@src.gnome.org>2001-10-11 17:58:28 +0000
committerMatt Wilson <msw@src.gnome.org>2001-10-11 17:58:28 +0000
commit6b8b9818ec71aca82d9fa900dcd3e611e25cbd87 (patch)
tree9da7ca1e341fc820db1a55c49d3ce074d00974ac /pygtk.spec.in
parent9e946a007c22abb1351131f63f24196522a9c0d4 (diff)
downloadpygtk-6b8b9818ec71aca82d9fa900dcd3e611e25cbd87.tar.gz
spec tweaks
Diffstat (limited to 'pygtk.spec.in')
-rw-r--r--pygtk.spec.in15
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