Hello community,

here is the log from the commit of package python-gtk for openSUSE:Factory 
checked in at 2017-07-30 11:20:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-gtk (Old)
 and      /work/SRC/openSUSE:Factory/.python-gtk.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-gtk"

Sun Jul 30 11:20:51 2017 rev:38 rq:509984 version:2.24.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-gtk/python-gtk.changes    2013-04-14 
10:37:51.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-gtk.new/python-gtk.changes       
2017-07-30 11:20:52.400474935 +0200
@@ -1,0 +2,6 @@
+Tue Jul 11 14:46:35 UTC 2017 - [email protected]
+
+- Fix rpmlint errors
+- Spec file cleanups
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-gtk.spec ++++++
--- /var/tmp/diff_new_pack.diOCCS/_old  2017-07-30 11:20:53.272352010 +0200
+++ /var/tmp/diff_new_pack.diOCCS/_new  2017-07-30 11:20:53.276351446 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-gtk
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,39 +16,32 @@
 #
 
 
+%define lparen (
+%define rparen )
+%define python_gtk_req %(zgrep -a _required_version %{SOURCE0} | sed -n 
's/_required_version,[[:space:]]*/ >= /;s/%{rparen}$//;s/1.0.2%{rparen} dnl or 
1.1.7/1.1.7/;s/\\%{lparen}glib\\|gtk\\|libglade\\|gobject\\%{rparen}/&2/;s/py\\%{lparen}.*\\%{rparen}
 /python-\\1 /;/gtk2unixprint/d;s/^m4_define%{lparen}//p' | tr '\\n' ' ')
 Name:           python-gtk
-%define _name pygtk
+Version:        2.24.0
+Release:        0
+Summary:        Python bindings for the GTK+ widget set
+License:        LGPL-2.1+
+Group:          Development/Libraries/Python
+Url:            http://www.pygtk.org/
+Source:         
http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.24/pygtk-%{version}.tar.bz2
+# PATCH-FIX-UPSTREAM pygtk-2.22.0-capsule.patch bgo#623965 bnc#669802 
[email protected] -- Conditionally use the new Capsule API instead of 
PyCObject
+Patch0:         pygtk-2.22.0-capsule.patch
 BuildRequires:  fdupes
+# Only for directory ownership:
+BuildRequires:  gtk-doc
 BuildRequires:  libglade2-devel
 BuildRequires:  python-cairo-devel
 BuildRequires:  python-devel
 BuildRequires:  python-gobject2-devel
-%if %suse_version <= 1130
-BuildRequires:  python-gobject2-doc
-%endif
 BuildRequires:  python-numpy-devel
+Requires:       %{python_gtk_req}
 Requires:       python-numpy
-# Only for directory ownership:
-BuildRequires:  gtk-doc
-Url:            http://www.pygtk.org/
-Summary:        Python bindings for the GTK+ widget set
-License:        LGPL-2.1+
-Group:          Development/Libraries/Python
-Version:        2.24.0
-Release:        0
-Source:         
http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.24/%{_name}-%{version}.tar.bz2
-# PATCH-FIX-UPSTREAM pygtk-2.22.0-capsule.patch bgo#623965 bnc#669802 
[email protected] -- Conditionally use the new Capsule API instead of 
PyCObject
-Patch0:         pygtk-2.22.0-capsule.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-
 # for cross-distro compatibility:
 Provides:       pygtk2 = %{version}
-
-%define lparen (
-%define rparen )
-%define python_gtk_req %(zgrep -a _required_version %{S:0} | sed -n 
's/_required_version,[[:space:]]*/ >= /;s/%{rparen}$//;s/1.0.2%{rparen} dnl or 
1.1.7/1.1.7/;s/\\%{lparen}glib\\|gtk\\|libglade\\|gobject\\%{rparen}/&2/;s/py\\%{lparen}.*\\%{rparen}
 /python-\\1 /;/gtk2unixprint/d;s/^m4_define%{lparen}//p' | tr '\\n' ' ')
-Requires:       %python_gtk_req
-%{py_requires}
+Provides:       python2-gtk = %{version}
 
 %description
 PyGTK is an extension module for python that gives you access to the
@@ -62,6 +55,7 @@
 Requires:       %{name} = %{version}
 Requires:       python-cairo-devel
 Requires:       python-gobject2-devel
+Provides:       python2-gtk-devel = %{version}
 
 %description devel
 This package contains files required to build wrappers for GTK+ addon
@@ -71,9 +65,7 @@
 Summary:        Python bindings for the GTK+ widget set
 Group:          Development/Libraries/Python
 Requires:       %{name} = %{version}
-%if 0%{?suse_version} >= 1120
 BuildArch:      noarch
-%endif
 
 %description doc
 PyGTK is an extension module for python that gives you access to the
@@ -82,62 +74,61 @@
 python's benefits.
 
 %prep
-%setup -q -n %{_name}-%{version}
+%setup -q -n pygtk-%{version}
 %patch0 -p1
 
+find examples -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env 
python|#!/usr/bin/python2|" {} \;
+find examples -type f -name "*.py" -exec sed -i "s|#! /usr/bin/env 
python|#!/usr/bin/python2|" {} \;
+
 %build
 %configure
-make %{?jobs:-j%jobs}
+make %{?_smp_mflags}
 
 %install
-%makeinstall
-find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -v
+%make_install
+find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -v
 
 # move the docs to FHS-correct directory
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc
-mv $RPM_BUILD_ROOT%{_datadir}/gtk-doc $RPM_BUILD_ROOT%{_datadir}/doc/gtk
+mkdir -p %{buildroot}%{_docdir}
+mv %{buildroot}%{_datadir}/gtk-doc %{buildroot}%{_docdir}/%{name}
+
+sed -i "s|#!/usr/bin/python|#!/usr/bin/python2|" 
%{buildroot}%{_bindir}/pygtk-demo
 
 rm examples/Makefile*
 # demo is already in devel package
 rm -rf examples/pygtk-demo
-chmod +x $RPM_BUILD_ROOT%{_libdir}/pygtk/2.0/{,*/}*.py
-%fdupes $RPM_BUILD_ROOT%{_libdir}
-%fdupes $RPM_BUILD_ROOT%{_datadir}
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+chmod +x %{buildroot}%{_libdir}/pygtk/2.0/{,*/}*.py
+%fdupes %{buildroot}%{_libdir}
+%fdupes %{buildroot}%{_datadir}
 
 %files
 %defattr(-,root,root)
-%doc AUTHORS NEWS README MAPPING ChangeLog THREADS COPYING examples
-%{py_sitedir}/gtk-2.0/gtk/
-%{py_sitedir}/gtk-2.0/atk.so
-%{py_sitedir}/gtk-2.0/gtkunixprint.so
-%{py_sitedir}/gtk-2.0/pango*.so
+%doc AUTHORS NEWS README MAPPING ChangeLog THREADS COPYING
+%exclude %{_docdir}/%{name}/html/
+%{python_sitearch}/gtk-2.0/gtk/
+%{python_sitearch}/gtk-2.0/atk.so
+%{python_sitearch}/gtk-2.0/gtkunixprint.so
+%{python_sitearch}/gtk-2.0/pango*.so
 
 %files devel
 %defattr(-,root,root)
-%{_includedir}/%{_name}-2.0/%{_name}/
+%{_bindir}/pygtk-codegen-2.0
+%{_bindir}/pygtk-demo
+%{_includedir}/pygtk-2.0/pygtk/
 %{_libdir}/pkgconfig/*.pc
-## codegen
-%{_bindir}/%{_name}-codegen-2.0
-# we explicitly list the directories here to be sure we don't include something
-# that should live in the main package
-%dir %{_datadir}/%{_name}
-%dir %{_datadir}/%{_name}/2.0
-%{_datadir}/%{_name}/2.0/defs/
-## demo
-%{_bindir}/%{_name}-demo
 # we explicitly list the directories here to be sure we don't include something
 # that should live in the main package
-%dir %{_libdir}/%{_name}
-%dir %{_libdir}/%{_name}/2.0
-%{_libdir}/%{_name}/2.0/demos/
-%{_libdir}/%{_name}/2.0/pygtk-demo.py*
+%dir %{_datadir}/pygtk
+%dir %{_libdir}/pygtk
+%dir %{_datadir}/pygtk/2.0
+%dir %{_libdir}/pygtk/2.0
+%{_datadir}/pygtk/2.0/defs/
+%{_libdir}/pygtk/2.0/pygtk-demo.py*
+%{_libdir}/pygtk/2.0/demos/
 
 %files doc
 %defattr(-,root,root)
-%dir %{_datadir}/doc
-%{_datadir}/doc/gtk
+%doc examples/
+%{_docdir}/%{name}/html/
 
 %changelog


Reply via email to