# Last updated for version 3.18.0 %define glib2_version 2.38.0 %define gobject_introspection_version 1.46.0 %define python2_version 2.7 %define python3_version 3.6 Name: pygobject3 Version: 3.24.0 Release: 1%{?dist} Summary: Python bindings for GObject Introspection License: LGPLv2+ and MIT URL: https://wiki.gnome.org/Projects/PyGObject Source0: https://download.gnome.org/sources/pygobject/3.24/pygobject-%{version}.tar.xz BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version} BuildRequires: python2-devel >= %{python2_version} BuildRequires: python3-devel >= %{python3_version} BuildRequires: python3-cairo-devel BuildRequires: cairo-gobject-devel BuildRequires: pycairo-devel %description The %{name} package provides a convenient wrapper for the GObject library for use in Python programs. %package -n python-gobject Summary: Python 2 bindings for GObject Introspection Requires: python-gobject-base%{?_isa} = %{version}-%{release} # The cairo override module depends on this Requires: pycairo%{?_isa} Obsoletes: %{name} < 3.17.90-2 Provides: %{name} = %{version}-%{release} Provides: %{name}%{?_isa} = %{version}-%{release} Provides: python2-gobject %description -n python-gobject The python-gobject package provides a convenient wrapper for the GObject library and and other libraries that are compatible with GObject Introspection, for use in Python 2 programs. %package -n python-gobject-base Summary: Python 2 bindings for GObject Introspection base package Requires: gobject-introspection%{?_isa} >= %{gobject_introspection_version} Obsoletes: %{name}-base < 3.17.90-2 Provides: %{name}-base = %{version}-%{release} Provides: %{name}-base%{?_isa} = %{version}-%{release} %description -n python-gobject-base This package provides the non-cairo specific bits of the GObject Introspection library. %package -n python3-gobject Summary: Python 3 bindings for GObject Introspection Requires: python3-gobject-base%{?_isa} = %{version}-%{release} # The cairo override module depends on this Requires: python3-cairo%{?_isa} %description -n python3-gobject The python3-gobject package provides a convenient wrapper for the GObject library and and other libraries that are compatible with GObject Introspection, for use in Python 3 programs. %package -n python3-gobject-base Summary: Python 3 bindings for GObject Introspection base package Requires: gobject-introspection%{?_isa} >= %{gobject_introspection_version} %description -n python3-gobject-base This package provides the non-cairo specific bits of the GObject Introspection library. %package devel Summary: Development files for embedding PyGObject introspection support Requires: python-gobject%{?_isa} = %{version}-%{release} Requires: python3-gobject%{?_isa} = %{version}-%{release} Requires: gobject-introspection-devel%{?_isa} %description devel This package contains files required to embed PyGObject %prep %setup -q -n pygobject-%{version} rm -rf %{py3dir} cp -a . %{py3dir} find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|' %build PYTHON=%{__python} export PYTHON %configure make %{?_smp_mflags} V=1 pushd %{py3dir} PYTHON=%{__python3} export PYTHON %configure make %{?_smp_mflags} V=1 popd %install pushd %{py3dir} PYTHON=%{__python3} export PYTHON %make_install popd %make_install find $RPM_BUILD_ROOT -name '*.la' -delete # Don't include makefiles in the installed docs, in order to avoid creating # multilib conflicts rm -rf _docs mkdir _docs cp -a examples _docs rm _docs/examples/Makefile* %files -n python-gobject %{python_sitearch}/gi/_gi_cairo.so %files -n python-gobject-base %license COPYING %doc AUTHORS NEWS README %dir %{python_sitearch}/gi %{python_sitearch}/gi/* %exclude %{python_sitearch}/gi/_gi_cairo.so %{python_sitearch}/pygobject-*.egg-info %{python_sitearch}/pygtkcompat/ %files -n python3-gobject %{python3_sitearch}/gi/_gi_cairo*.so %files -n python3-gobject-base %license COPYING %doc AUTHORS NEWS README %dir %{python3_sitearch}/gi %{python3_sitearch}/gi/* %exclude %{python3_sitearch}/gi/_gi_cairo*.so %{python3_sitearch}/pygobject-*.egg-info %{python3_sitearch}/pygtkcompat/ %files devel %doc _docs/* %dir %{_includedir}/pygobject-3.0/ %{_includedir}/pygobject-3.0/pygobject.h %{_libdir}/pkgconfig/pygobject-3.0.pc %changelog * Tue Mar 21 2017 Kalev Lember - 3.24.0-1 - Update to 3.24.0 * Sat Feb 11 2017 Fedora Release Engineering - 3.22.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 12 2016 Charalampos Stratakis - 3.22.0-2 - Rebuild for Python 3.6 * Mon Sep 19 2016 Kalev Lember - 3.22.0-1 - Update to 3.22.0 * Sun Sep 11 2016 Kalev Lember - 3.21.92-1 - Update to 3.21.92 * Fri Aug 26 2016 Kalev Lember - 3.21.91-1 - Update to 3.21.91 * Tue Aug 23 2016 Kalev Lember - 3.21.1-0.1.git395779e - Update to 3.21.1 git snapshot * Tue Jul 19 2016 Fedora Release Engineering - 3.21.0-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Tue May 03 2016 Kalev Lember - 3.21.0-1 - Update to 3.21.0 * Tue Mar 22 2016 Kalev Lember - 3.20.0-1 - Update to 3.20.0 * Wed Mar 16 2016 Kalev Lember - 3.19.92-1 - Update to 3.19.92 * Wed Mar 02 2016 Richard Hughes - 3.19.91-1 - Update to 3.19.91 * Mon Feb 29 2016 Richard Hughes - 3.19.90-1 - Update to 3.19.90 * Thu Feb 04 2016 Fedora Release Engineering - 3.19.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 03 2015 Robert Kuska - 3.19.2-2 - Rebuilt for Python3.5 rebuild * Sun Nov 01 2015 Kalev Lember - 3.19.2-1 - Update to 3.19.2 * Sat Oct 24 2015 Kalev Lember - 3.18.2-1 - Update to 3.18.2 * Sat Oct 24 2015 Kalev Lember - 3.18.1-1 - Update to 3.18.1 - Update project URL and Source download location * Mon Oct 19 2015 Kalev Lember - 3.18.0-2 - Backport a fix for Gdk.rectangle_intersect/rectangle_union compatibility (#1269901) * Tue Sep 22 2015 Kalev Lember - 3.18.0-1 - Update to 3.18.0 * Sat Aug 22 2015 Kalev Lember - 3.17.90-2 - Rename Python 2 subpackage to python-gobject for consistency with the python3-gobject package * Thu Aug 20 2015 Kalev Lember - 3.17.90-1 - Update to 3.17.90 - Use make_install macro - Use license macro for COPYING * Tue Jun 30 2015 Kalev Lember - 3.17.1-3 - Split non-cairo parts python3-gobject into a subpackage * Thu Jun 18 2015 Fedora Release Engineering - 3.17.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Jun 15 2015 Kalev Lember - 3.17.1-1 - Update to 3.17.1 * Wed Jun 03 2015 Kalev Lember - 3.16.1-2 - Backport a patch for GdkRectangle changes in gtk+ 3.17.2 * Tue Apr 14 2015 Kalev Lember - 3.16.1-1 - Update to 3.16.1 * Tue Mar 24 2015 Kalev Lember - 3.16.0-1 - Update to 3.16.0 * Thu Mar 05 2015 Kalev Lember - 3.15.91-1 - Update to 3.15.91 * Sat Feb 21 2015 Kalev Lember - 3.15.0-1 - Update to 3.15.0 * Mon Sep 22 2014 Kalev Lember - 3.14.0-1 - Update to 3.14.0 * Tue Sep 16 2014 Kalev Lember - 3.13.92-1 - Update to 3.13.92 * Tue Sep 02 2014 Kalev Lember - 3.13.91-1 - Update to 3.13.91 * Thu Aug 21 2014 Kalev Lember - 3.13.90-2 - Backport a fix for virt-manager crash (#1130758) * Tue Aug 19 2014 Kalev Lember - 3.13.90-1 - Update to 3.13.90 * Sun Aug 17 2014 Fedora Release Engineering - 3.13.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Fri Aug 15 2014 Kalev Lember - 3.13.4-1 - Update to 3.13.4 * Tue Jun 24 2014 Richard Hughes - 3.13.3-1 - Update to 3.13.3 * Sat Jun 07 2014 Fedora Release Engineering - 3.13.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon May 26 2014 Kalev Lember - 3.13.2-1 - Update to 3.13.2 - Drop old testsuite patches * Mon May 12 2014 Bohuslav Kabrda - 3.13.1-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Tue Apr 29 2014 Richard Hughes - 3.13.1-1 - Update to 3.13.1 * Tue Apr 15 2014 Kalev Lember - 3.12.1-1 - Update to 3.12.1 * Sat Apr 05 2014 Kalev Lember - 3.12.0-2 - Update dep versions - Tighten deps with %%_isa * Mon Mar 24 2014 Richard Hughes - 3.12.0-1 - Update to 3.12.0 * Tue Mar 18 2014 Richard Hughes - 3.11.92-1 - Update to 3.11.92 * Tue Mar 04 2014 Richard Hughes - 3.11.91-1 - Update to 3.11.91 * Tue Feb 18 2014 Richard Hughes - 3.11.90-1 - Update to 3.11.90 * Wed Feb 05 2014 Richard Hughes - 3.11.5-1 - Update to 3.11.5 * Tue Jan 14 2014 Richard Hughes - 3.11.4-1 - Update to 3.11.4 * Tue Dec 17 2013 Richard Hughes - 3.11.3-1 - Update to 3.11.3 * Mon Nov 18 2013 Richard Hughes - 3.11.2-1 - Update to 3.11.2 * Tue Oct 29 2013 Richard Hughes - 3.11.1-1 - Update to 3.11.1 * Wed Sep 25 2013 Kalev Lember - 3.10.0-1 - Update to 3.10.0 * Wed Sep 18 2013 Kalev Lember - 3.9.92-1 - Update to 3.9.92 * Tue Sep 03 2013 Kalev Lember - 3.9.91-1 - Update to 3.9.91 * Thu Aug 22 2013 Kalev Lember - 3.9.90-1 - Update to 3.9.90 * Fri Aug 9 2013 Daniel Drake - 3.9.5-1 - Update to 3.9.5 * Sun Aug 04 2013 Fedora Release Engineering - 3.9.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sun Jun 02 2013 Kalev Lember - 3.9.2-1 - Update to 3.9.2 * Sun Jun 02 2013 Kalev Lember - 3.9.1-2 - Disable pyflakes tests to avoid failures with too new pyflakes 0.7.2 * Fri May 10 2013 Richard Hughes - 3.9.1-1 - Update to 3.9.1 * Thu Apr 25 2013 Peter Robinson 3.8.1-2 - Add upstream patch to fix Sugar (RHBZ 947538) * Mon Apr 15 2013 Kalev Lember - 3.8.1-1 - Update to 3.8.1 * Tue Apr 2 2013 David Malcolm - 3.8.0-2 - add workarounds for ppc64 (rhbz#924425) * Tue Mar 26 2013 Kalev Lember - 3.8.0-1 - Update to 3.8.0 * Wed Mar 20 2013 Kalev Lember - 3.7.92-1 - Update to 3.7.92 * Thu Mar 7 2013 Matthias Clasen - 3.7.91-1 - Update to 3.7.91 * Thu Feb 21 2013 Kalev Lember - 3.7.90-1 - Update to 3.7.90 * Wed Feb 06 2013 Kalev Lember - 3.7.5.1-1 - Update to 3.7.5.1 - Re-enable tests * Wed Jan 16 2013 Matthias Clasen - 3.7.4-1 - Update to 3.7.4 * Fri Dec 28 2012 Dan HorĂ¡k - 3.7.3-2 - Fix GBytes test (gnome#690837) * Thu Dec 20 2012 Kalev Lember - 3.7.3-1 - Update to 3.7.3 - Drop upstreamed patches; rebase the ignore-more-pep8-errors patch * Thu Dec 13 2012 Ray Strode 3.7.1-3 - Split non-cairo parts into a subpackage * Mon Nov 12 2012 Kalev Lember - 3.7.1-2 - Remove lib64 rpaths (#817701) - Move code examples to the -devel subpackage and fix the multilib conflict (#831434) * Fri Nov 09 2012 Kalev Lember - 3.7.1-1 - Update to 3.7.1 * Tue Nov 6 2012 Daniel Drake - 3.4.1.1-2 - Upstream fix for property lookup; needed for basic Sugar operation. * Wed Oct 17 2012 Kalev Lember - 3.4.1.1-1 - Update to 3.4.1.1 * Thu Sep 13 2012 Daniel Drake - 3.3.91-1 - Latest version; upstreamed patches dropped * Wed Aug 15 2012 David Malcolm - 3.3.4-9 - avoid dragging pyflakes and python-pep8 into RHEL (patch 7) * Fri Aug 10 2012 David Malcolm - 3.3.4-8 - add endianness patch (rhbz#841596; attachment 603634) * Fri Aug 10 2012 David Malcolm - 3.3.4-7 - update endianness patch for rhbz#841596 (to attachment 603367) * Thu Aug 9 2012 David Malcolm - 3.3.4-6 - fix issues on big-endian 64-bit machines (rhbz#841596, rhbz#842880) * Thu Aug 9 2012 David Malcolm - 3.3.4-5 - use xvfb-run in selftests; update known failures * Wed Aug 8 2012 David Malcolm - 3.3.4-4 - add a %%check check; add V=1 to all make invocations * Sat Aug 04 2012 David Malcolm - 3.3.4-3 - rebuild for https://fedoraproject.org/wiki/Features/Python_3.3 * Fri Aug 3 2012 David Malcolm - 3.3.4-2 - remove rhel logic from with_python3 conditional * Tue Jul 17 2012 Richard Hughes - 3.3.4-1 - Update to 3.3.4 * Tue Jun 26 2012 David Malcolm - 3.3.3.1-2 - fix a segfault when dealing with mismatched .so/typelib files * Mon Jun 25 2012 Peter Robinson - 3.3.3.1-1 - Update to 3.3.3.1 * Tue Jun 19 2012 Kalev Lember - 3.3.2-1 - Update to 3.3.2 * Sat May 05 2012 Kalev Lember - 3.3.1-1 - Update to 3.3.1 - Dropped the now unneeded -lm patch * Tue Mar 27 2012 Kalev Lember - 3.2.0-1 - Update to 3.2.0 * Thu Mar 22 2012 Matthias Clasen - 3.1.93-1 - Update to 3.1.93 * Wed Mar 21 2012 Kalev Lember - 3.1.92-1 - Update to 3.1.92 * Sun Feb 26 2012 Matthias Clasen - 3.1.1-1 - Update to 3.1.1 * Tue Feb 7 2012 Matthias Clasen - 3.1.0-1 - Update to 3.1.0 * Sat Jan 14 2012 Fedora Release Engineering - 3.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Dec 20 2011 Ignacio Casal Quinteiro - 3.0.3-1 - udpate to 3.0.3 * Sat Oct 22 2011 Ignacio Casal Quinteiro - 3.0.2-1 - udpate to 3.0.2 * Fri Sep 30 2011 Ignacio Casal Quinteiro - 3.0.1-1 - udpate to 3.0.1 * Tue Sep 20 2011 Matthias Clasen - 3.0.0-1 - Update to 3.0.0 * Thu Sep 15 2011 John (J5) Palmieri - 2.90.4-1 - update to 2.90.4 - get rid of packaging cruft that is taken care of by upstream now * Wed Aug 31 2011 Ignacio Casal Quinteiro - 2.90.3-1 - udpate to 2.90.3 * Mon Aug 22 2011 John (J5) Palmieri - 2.90.2-3 - remove some old requires * Fri Aug 19 2011 John (J5) Palmieri - 2.90.2-2 - fix up issues uncovered during package review - disable docs because they still reference the static bindings and upstream is working on new documentation * Thu Aug 18 2011 John (J5) Palmieri - 2.90.2-1 - Initial package