-Summary: Python -> GTK interface
-Name: python-pygtk
-Version: 0.5.9
-Release: 1
-Copyright: distributable
-Packager: Oliver Andrich <oli@andrich.net>
-Group: Development/Languages/Python
-Source0: pygtk-0.5.9.tar.gz
-Source1: PyGTK.pth
-Icon: linux-python-paint-icon.gif
-BuildRoot: /tmp/%{name}-%{version}-root
-Requires: python >= 1.5, gtk+ >= 1.1.9, imlib >= 1.8
+Summary: Interfejs GTK+ dla jêzyka Python
+Summary(pl): GTK+ interface for Python language
+Name: python-pygtk
+Version: 0.6.1
+Release: 1
+Copyright: distributable
+Group: Development/Languages/Python
+Source: pygtk-%{version}.tar.gz
+#Icon: linux-python-paint-icon.gif
+BuildRoot: /tmp/%{name}-%{version}-root
+Requires: python >= 1.5, gtk+ >= 1.2.1, imlib >= 1.8
%description
-This archive contains modules that allow you to use gtk in Python
+This archive contains modules that allow you to use gtk+ in Python
programs. At present, it is a fairly complete set of bindings.
Despite the low version number, this peice of software is quite
useful, and is usable to write moderately complex programs. (see the
examples directory for some examples of the simpler programs you could
write).
+%description -l pl
+#
+
%prep
-%setup -n pygtk-0.5.9
+%setup -n pygtk-%{version}
%build
./configure %{_target_platform}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python1.5/site-packages/PyGTK
-install -m 644 $RPM_SOURCE_DIR/PyGTK.pth $RPM_BUILD_ROOT%{_libdir}/python1.5/site-packages
+echo %{_libdir}/python1.5/site-packages/PyGTK \
+ > $RPM_BUILD_ROOT%{_libdir}/python1.5/site-packages/PyGTK.pth
make pyexecdir=$RPM_BUILD_ROOT%{_libdir}/python1.5/site-packages/PyGTK \
pythondir=$RPM_BUILD_ROOT%{_libdir}/python1.5/site-packages/PyGTK install
+
+
+gzip -9nf COPYING ChangeLog README
+tar czf examples.tar.gz examples
%clean
rm -rf $RPM_BUILD_ROOT
%files
-%doc COPYING Changelog README examples
+%doc {COPYING,ChangeLog,README,examples.tar}.gz
%{_libdir}/python1.5/site-packages/PyGTK.pth
%{_libdir}/python1.5/site-packages/PyGTK