%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} # Last updated for version 2.29.1 # The order here corresponds to that in configure.ac, # for easier comparison. Please do not alphabetize. %define pygtk_version 2.10.3 %define glib_version 2.6.0 %define gtk_version 2.4.0 %define gnome_python_version 2.10.0 # Version not necessary for libgnomeprintui %define gtksourceview_version 1:1.8.5-2 %define libwnck_version 2.19.3 %define libgtop_version 2.13.0 # Version not necessary for libnautilus_burn %define brasero_version 2.29 %define gnome_media_version 2.10.0 %define gconf2_version 2.10.0 %define librsvg2_version 2.13.93 %define gnome_keyring_version 0.5.0 %define gnome_desktop_version 2.10.0 %define totem_version 1.4.0 %define eds_version 1.4.0 %define evince_version 2.29 ### Abstract ### Name: gnome-python2-desktop Version: 2.32.0 Release: 25%{?dist} License: GPLv2+ Group: Development/Languages Summary: The sources for additional PyGNOME Python extension modules #VCS: git://git.gnome.org/gnome-python-desktop Source: http://download.gnome.org/sources/gnome-python-desktop/2.32/gnome-python-desktop-%{version}.tar.bz2 # https://bugzilla.gnome.org/show_bug.cgi?id=616306 Patch0: gnome-python-desktop-2.30.0-wnck-flagsfix.patch # https://bugzilla.gnome.org/show_bug.cgi?id=672016 Patch1: gnome-python-desktop-2.32.0-metacity-build.patch ### Dependencies ### Requires: gnome-python2-canvas >= %{gnome_python_version} ### Build Dependencies ### #BuildRequires: brasero-devel >= %{brasero_version} #BuildRequires: evince-devel >= %{evince_version} BuildRequires: glib2-devel >= %{glib_version} BuildRequires: GConf2-devel >= %{gconf2_version} BuildRequires: gnome-desktop-devel >= %{gnome_desktop_version} BuildRequires: gnome-keyring-devel >= %{gnome_keyring_version} BuildRequires: gnome-python2-bonobo >= %{gnome_python_version} BuildRequires: gnome-python2-canvas >= %{gnome_python_version} BuildRequires: gnome-python2-devel >= %{gnome_python_version} BuildRequires: gnome-python2-gconf >= %{gnome_python_version} BuildRequires: gtk2-devel >= %{gtk_version} BuildRequires: libgnomeui-devel BuildRequires: libgtop2-devel >= %{libgtop_version} BuildRequires: librsvg2-devel >= %{librsvg2_version} BuildRequires: libwnck-devel >= %{libwnck_version} BuildRequires: pygtk2-devel >= %{pygtk_version} BuildRequires: python-devel BuildRequires: totem-pl-parser-devel >= %{totem_version} BuildRequires: autoconf, automake, libtool %ifnarch s390 s390x BuildRequires: gnome-media-devel >= %{gnome_media_version} %endif Obsoletes: gnome-python2-evolution < 2.32.0-12 Obsoletes: gnome-python2-metacity < 2.32.0-20 Obsoletes: gnome-python2-gnomeprint < 2.32.0-22 Obsoletes: gnome-python2-gtksourceview < 2.32.0-22 %description The gnome-python-desktop package contains the source packages for additional Python bindings for GNOME. It should be used together with gnome-python. #package -n gnome-python2-brasero #Summary: Python bindings for interacting with brasero #License: LGPLv2 #Group: Development/Languages #Requires: %{name} = %{version}-%{release} #Requires: brasero-libs >= %{brasero_version} #description -n gnome-python2-brasero #This module contains a wrapper that allows the use of brasero via Python. #package -n gnome-python2-evince #Summary: Python bindings for interacting with evince #License: LGPLv2 #Group: Development/Languages #Requires: %{name} = %{version}-%{release} #Requires: evince-libs >= %{evince_version} #description -n gnome-python2-evince #This module contains a wrapper that allows the use of evince via Python. %package -n gnome-python2-libwnck Summary: Python bindings for interacting with libwnck License: LGPLv2 Group: Development/Languages Requires: libwnck >= %{libwnck_version} %description -n gnome-python2-libwnck This module contains a wrapper that allows the use of libwnck via Python. %package -n gnome-python2-libgtop2 Summary: Python bindings for interacting with libgtop License: GPLv2+ Group: Development/Languages Requires: %{name} = %{version}-%{release} Requires: libgtop2 >= %{libgtop_version} %description -n gnome-python2-libgtop2 This module contains a wrapper that allows the use of libgtop via Python. %package -n gnome-python2-totem Summary: Python bindings for interacting with totem License: LGPLv2 Group: Development/Languages Requires: %{name} = %{version}-%{release} Requires: totem-pl-parser >= %{totem_version} Requires: gnome-python2-gconf %description -n gnome-python2-totem This module contains a wrapper that allows the use of totem via Python. %package -n gnome-python2-rsvg Summary: Python bindings for interacting with librsvg License: LGPLv2 Group: Development/Languages Requires: librsvg2 >= %{librsvg2_version} %description -n gnome-python2-rsvg This module contains a wrapper that allows the use of librsvg via Python. %package -n gnome-python2-gnomedesktop Summary: Python bindings for interacting with gnome-desktop License: LGPLv2 Group: Development/Languages Requires: %{name} = %{version}-%{release} Requires: gnome-desktop >= %{gnome_desktop_version} %description -n gnome-python2-gnomedesktop This module contains a wrapper that allows the use of gnome-desktop via Python. %package -n gnome-python2-gnomekeyring Summary: Python bindings for interacting with gnome-keyring License: LGPLv2 Group: Development/Languages Requires: %{name} = %{version}-%{release} Requires: gnome-keyring >= %{gnome_keyring_version} %description -n gnome-python2-gnomekeyring This module contains a wrapper that allows the use of gnome-keyring via Python. %prep %setup -q -n gnome-python-desktop-%{version} %patch0 -p1 -b .flags %patch1 -p1 -b .metacity-build %build # evince, brasero and mediaprofiles are disabled because these things have # been ported to GTK+3. It's not practical to mix GTK+2 and GTK+3 bindings # in gnome-python2-desktop, so for now we'll just have to disable the GTK+3 # stuff. - AdamW 2010/07 # gnomeprint and gtksourceview are disabled due to removal of C libraries # from F23. - Yaakov 2015/07 %configure --disable-metacity --disable-evince --disable-braseromedia --disable-braseroburn --disable-mediaprofiles --disable-applet --disable-evolution --disable-evolution_ecal --disable-gnomeprint --disable-gtksourceview make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm {} \; rm -rf $RPM_BUILD_ROOT/%{_libdir}/python*/site-packages/gtk-2.0/gksu rm -rf $RPM_BUILD_ROOT/%{_libdir}/python*/site-packages/gtk-2.0/bugbuddy.* %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS NEWS README COPYING COPYING.GPL COPYING.LGPL %{_libdir}/pkgconfig/gnome-python-desktop-2.0.pc %{_datadir}/pygtk #files -n gnome-python2-brasero #defattr(-,root,root,-) #{python_sitearch}/gtk-2.0/braseroburn.so #{python_sitearch}/gtk-2.0/braseromedia.so #files -n gnome-python2-evince #defattr(-,root,root,-) #{python_sitearch}/gtk-2.0/evince.so %files -n gnome-python2-libwnck %defattr(-,root,root,-) %{python_sitearch}/gtk-2.0/wnck.so %files -n gnome-python2-libgtop2 %defattr(-,root,root,-) %{python_sitearch}/gtk-2.0/gtop.so %files -n gnome-python2-totem %defattr(-,root,root,-) %ifnarch s390 s390x #{python_sitearch}/gtk-2.0/mediaprofiles.so %endif %{python_sitearch}/gtk-2.0/totem %files -n gnome-python2-rsvg %defattr(-,root,root,-) %{python_sitearch}/gtk-2.0/rsvg.so %files -n gnome-python2-gnomedesktop %defattr(-,root,root,-) %{python_sitearch}/gtk-2.0/gnomedesktop %files -n gnome-python2-gnomekeyring %defattr(-,root,root,-) %{python_sitearch}/gtk-2.0/gnomekeyring.so %changelog * Fri Feb 10 2017 Fedora Release Engineering - 2.32.0-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jul 19 2016 Fedora Release Engineering - 2.32.0-24 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Wed Feb 03 2016 Fedora Release Engineering - 2.32.0-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jul 07 2015 Yaakov Selkowitz - 2.32.0-22 - Drop gnomeprint, gtksourceview bindings for removal of libgnomeprint * Wed Jun 17 2015 Fedora Release Engineering - 2.32.0-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Oct 16 2014 Kalev Lember - 2.32.0-20 - Drop broken gnome-python2-metacity subpackage * Sat Aug 16 2014 Fedora Release Engineering - 2.32.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 2.32.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu May 01 2014 Kalev Lember - 2.32.0-17 - Rebuilt for libgtop2 soname bump * Thu Sep 19 2013 Kalev Lember - 2.32.0-16 - Rebuilt for totem-pl-parser soname bump * Sat Aug 03 2013 Fedora Release Engineering - 2.32.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Apr 1 2013 Peter Robinson 2.32.0-14 - Drop dead gnome-panel dependency * Thu Feb 14 2013 Fedora Release Engineering - 2.32.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 28 2012 Kalev Lember - 2.32.0-12 - Obsolete the dropped gnome-python2-evolution subpackage * Fri Jul 27 2012 Colin Walters - 2.32.0-11 - Drop evolution bindings; they don't build against the latest EDS * Thu Jul 19 2012 Fedora Release Engineering - 2.32.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Mar 13 2012 Daniel Drake - 2.32.0-9 - Fix build against metacity-2.34.2 * Fri Jan 13 2012 Fedora Release Engineering - 2.32.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Dec 20 2011 Tomas Bzatek - 2.32.0-7 - Rebuilt for new libedataserver * Sun Oct 30 2011 Bruno Wolff III - 2.32.0-6 - Rebuilt for new libedataserver * Tue Aug 30 2011 Tomas Bzatek - 2.32.0-5 - Rebuilt for new libedataserver * Thu May 5 2011 Colin Walters - 2.32.0-4 - Update to 2.32.0 to match f14 * Thu May 5 2011 Colin Walters - 2.31.1-5 - Disable applets * Tue Feb 08 2011 Fedora Release Engineering - 2.31.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Jul 27 2010 Adam Williamson - 2.31.1-3 - gnome-media-profiles support also broken due to gtk3 port, so disable it - drop evince and brasero modules for now as they won't build due to evince and brasero being ported to gtk3 * Wed Jul 21 2010 David Malcolm - 2.31.1-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Fri Jun 11 2010 Matthias Clasen - 2.31.1-1 - Update to 2.31.1 * Thu Jun 10 2010 Matthias Clasen - 2.30.0-8 - Rebuild against new brasero * Fri Jun 04 2010 Colin Walters - 2.30.0-7 - rebuilt * Sat May 29 2010 Matthew Barnes - 2.30.0-6 - Rebuild against latest libedataserver. * Thu May 06 2010 Colin Walters - 2.30.0-5 - Rebuild against latest evolution * Tue Apr 20 2010 Tom "spot" Callaway - 2.30.0-4 - remember to commit patch to cvs * Tue Apr 20 2010 Tom "spot" Callaway - 2.30.0-3 - fix wnck gtypes to be flags, instead of enum * Tue Apr 06 2010 Colin Walters - 2.30.0-2 - Drop bug-buddy package, we use abrt * Wed Mar 31 2010 Matthias Clasen - 2.30.0-1 - Update to 2.30.0 * Mon Mar 29 2010 Matthias Clasen - 2.29.92-1 - Update to 2.29.92 * Thu Mar 04 2010 Colin Walters - 2.29.1-8 - add missing patch * Mon Mar 01 2010 Colin Walters - 2.29.1-7 - Add patch to fix build * Wed Feb 24 2010 Colin Walters - 2.29.1-6 - rebuilt * Wed Jan 27 2010 Matthew Barnes - 2.29.1-5.fc13 - Rebuild against new totem-pl-parser. * Fri Jan 22 2010 Matthew Barnes - 2.29.1-4.fc13 - Rebuild against new gnome-desktop. * Thu Jan 14 2010 Matthew Barnes - 2.29.1-3.fc13 - Fix rpmlint warnings. * Fri Jan 08 2010 Matthew Barnes - 2.29.1-2.fc13 - Provide a complete URI for the Source field. * Mon Jan 04 2010 Matthew Barnes - 2.29.1-1.fc13 - Update to 2.29.1 - Remove patch for GNOME bug #603231 (fixed upstream). * Mon Jan 04 2010 Matthew Barnes - 2.28.0-3.fc13 - Add patch for GNOME bug #603231 (BraseroTrackDataType is now private). * Thu Dec 03 2009 Bastien Nocera 2.28.0-2 - Rebuild for new evince * Mon Sep 21 2009 Matthew Barnes - 2.28.0-1.fc12 - Update to 2.28.0 * Wed Sep 02 2009 Matthew Barnes - 2.27.3-1.fc12 - Update to 2.27.3 * Sun Aug 02 2009 Matthew Barnes - 2.27.2-3.fc12 - Disable nautilus-cd-burner bindings. Package is dead. * Fri Jul 24 2009 Fedora Release Engineering - 2.27.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Jul 14 2009 Matthew Barnes - 2.27.2-1.fc12 - Update to 2.27.2 * Tue Jun 02 2009 Peter Robinson - 2.27.1-2.fc12 - Change gnome-python2-evince to depend on evince-libs * Sun May 03 2009 Matthew Barnes - 2.27.1-1.fc12 - Update to 2.27.1 - New subpackage: gnome-python2-brasero * Fri Apr 24 2009 Denis Leroy - 2.26.0-3 - Removed cd-burner subpackage Require on nautilus-cd-burn * Wed Apr 22 2009 Matthew Barnes - 2.26.0-2.fc11 - Rebuild against newer libnautilus-burn. * Sat Mar 14 2009 Matthew Barnes - 2.26.0-1.fc11 - Update to 2.26.0 * Fri Mar 13 2009 Matthew Barnes - 2.25.91-3.fc11 - Evince subpackage should depend on evince, not evince-devel (RH bug #490112). * Tue Feb 24 2009 Fedora Release Engineering - 2.25.91-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sun Feb 15 2009 Matthew Barnes - 2.25.91-1.fc11 - Update to 2.25.91 * Wed Feb 04 2009 Matthew Barnes - 2.25.90-2.fc11 - New subpackage: gnome-python2-evince * Sun Feb 01 2009 Matthew Barnes - 2.25.90-1.fc11 - Update to 2.25.90 * Mon Jan 19 2009 Matthew Barnes - 2.25.1-1.fc11 - Update to 2.25.1 - Remove patch for GNOME bug #564525 (fixed upstream). * Tue Dec 23 2008 Caolán McNamara - 2.24.1-2.fc11 - make build * Fri Dec 19 2008 Matthew Barnes - 2.24.1-1.fc11 - Update to 2.24.1 - Add patch for GNOME bug #564525 (build failure). * Wed Dec 17 2008 - Bastien Nocera - 2.24.0-6 - Rebuild for new libgnome-desktop * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 2.24.0-5 - Rebuild for Python 2.6 * Fri Nov 14 2008 Matthew Barnes - 2.24.0-4.fc11 - Update subpackage requirements, since gnome-python2 no longer drags in the world. * Thu Nov 13 2008 Matthias Clasen - 2.24.0-3 - Rebuild * Sun Sep 21 2008 Matthew Barnes - 2.24.0-2.fc10 - Change gnome-python2 requirement to gnome-python2-canvas. * Sun Sep 21 2008 Matthew Barnes - 2.24.0-1.fc10 - Update to 2.24.0 * Sun Aug 31 2008 Matthew Barnes - 2.23.1-1.fc10 - Update to 2.23.1 - Update version requirements. * Mon Jun 16 2008 Matthew Barnes - 2.23.0-1.fc10 - Update to 2.23.0 * Wed Jun 11 2008 Matthew Barnes - 2.22.0-6.fc10 - Don't drag in devel packages when installing gnome-python2-evolution (RH bug #450932). * Wed Jun 4 2008 Matthias Clasen - 2.22.0-5 - Rebuild * Tue May 13 2008 Matthew Barnes - 2.22.0-4.fc10 - Rebuild against newer libedataserver and libtotem-plparser. * Tue Apr 29 2008 Matthew Barnes - 2.22.0-3.fc10 - gnome-python2-evolution obsoletes evolution-python (RH bug #444263). * Sat Mar 15 2008 Christopher Aillon - 2.22.0-2 - Bring gnome-python2-nautilus-cd-burner back to ppc and ppc64 * Sun Mar 09 2008 Matthew Barnes - 2.22.0-1.fc9 - Update to 2.22.0 - Exclude gnome-python2-nautilus-cd-burner from ppc and ppc64. * Sat Feb 23 2008 Matthew Barnes - 2.21.3-1.fc9 - Update to 2.21.3 * Sun Feb 17 2008 Matthew Barnes - 2.21.2-2.fc9 - Rebuild with GCC 4.3 * Mon Jan 14 2008 Matthew Barnes - 2.21.2-1.fc9 - Update to 2.21.2 * Sun Dec 16 2007 Matthew Barnes - 2.21.1-1.fc9 - Update to 2.21.1 - New subpackage: gnome-python2-evolution - Change totem-devel BR to totem-pl-parser-devel. * Mon Nov 12 2007 Matthew Barnes - 2.20.0-2.fc9 - Rebuild against newer libtotem-plparser.so. * Sun Sep 16 2007 Matthew Barnes - 2.20.0-1.fc8 - Update to 2.20.0 * Wed Aug 29 2007 Fedora Release Engineering - 2.19.2-4 - Rebuild for selinux ppc32 issue. * Thu Aug 16 2007 Matthew Barnes - 2.19.2-3.fc8 - Rebuild * Tue Aug 7 2007 Matthias Clasen - 2.19.2-2 - Update license fields * Mon Jul 30 2007 Matthew Barnes - 2.19.2-1.fc8 - Update to 2.19.2 * Tue Jul 10 2007 Matthias Clasen - 2.19.1-2 - Rebuild against gtksourceview * Sat Jul 07 2007 Matthew Barnes - 2.19.1-1 - Update to 2.19.1 - Update versions of required packages. - Remove patch for GNOME bug #428697 (fixed upstream). * Tue Jun 5 2007 Matthias Clasen - 2.18.0-4 - Rebuild again * Mon Jun 4 2007 Matthias Clasen - 2.18.0-3 - Rebuild against new libwnck * Sun Jun 03 2007 Matthew Barnes - 2.18.0-2.fc8 - Require metacity-devel, not metacity, for building. - Add patch for GNOME bug #428697 (adapt to API change). * Mon Mar 12 2007 Matthew Barnes - 2.18.0-1.fc7 - Update to 2.18.0 * Wed Feb 28 2007 Matthias Clasen - 2.17.93-1 - Update to 2.17.93 * Sun Feb 25 2007 Matthew Barnes - 2.17.92-1.fc7 - Update to 2.17.92 - Remove patch for GNOME bug #401760 (fixed upstream). * Mon Feb 05 2007 Matthew Barnes - 2.17.3-3.fc7 - Add patch for GNOME bug #401760 (plparser fails to build). * Mon Feb 05 2007 Matthew Barnes - 2.17.3-2.fc7 - Rename spec file to gnome-python2-desktop.spec (RH bug #225832). * Mon Jan 08 2007 Matthew Barnes - 2.17.3-1 - Update to 2.17.3 * Sun Jan 07 2007 Matthew Barnes - 2.17.2-1 - Update to 2.17.2 - New gnome-python2-bugbuddy subpackage. - Update version requirements to match configure.ac. - Use python_sitearch macro for installing libraries. * Thu Dec 7 2006 Jeremy Katz - 2.17.1-2 - rebuild for python 2.5 - BR gnome-python2-devel * Sat Oct 21 2006 Matthias Clasen - 2.17.1-1 - Update to 2.17.1 * Tue Sep 5 2006 Matthias Clasen - 2.16.0-1.fc6 - Update to 2.16.0 * Tue Aug 22 2006 Dan Williams - 2.15.90-2.fc6 - Remove unecessary dependencies on gnome-python2-desktop from -libwnck and -rsvg subpackages (OLPC) * Fri Aug 4 2006 Matthias Clasen - 2.15.90-1.fc6 - Update to 2.15.90 * Thu Jul 20 2006 Matthias Clasen - 2.15.4-2 - Rebuild against dbus * Thu Jul 13 2006 Matthias Clasen - 2.15.4-1 - Update to 2.15.4 * Wed Jul 12 2006 Jesse Keating - 2.15.3-4.1 - rebuild * Thu Jun 15 2006 Jesse Keating - 2.15.3-4 - Create gnomekeyring subpackage - block out the nautilus-cd stuff * Thu Jun 15 2006 Jesse Keating - 2.15.3-2 - Bump for new nautilus-cd-burner * Tue Jun 13 2006 Matthias Clasen - 2.15.3-1 - Update to 2.15.3 * Tue May 30 2006 Matthias Clasen - 2.15.2-1 - Update to 2.15.2 - Add subpackages gnome-python2-rsvg and gnome-python2-gnomedesktop * Wed May 24 2006 John (J5) Palmieri - 2.14.0-2 - Add pygtk2 BR * Mon Mar 13 2006 Ray Strode 2.14.0-1 - Update to 2.14.0 * Tue Feb 28 2006 Karsten Hopp 2.13.3-2 - Buildrequires: python-devel * Fri Feb 10 2006 Jesse Keating - 2.13.3-1.1 - bump again for double-long bug on ppc(64) * Mon Feb 6 2006 John (J5) Palmieri - 2.13.3-1 - Initial build.