|
|
|
@ -1,31 +1,45 @@
|
|
|
|
|
%define glib2_version 2.56.0
|
|
|
|
|
%define gobject_introspection_version 1.56.0
|
|
|
|
|
%define pycairo_version 1.16.0
|
|
|
|
|
%define python2_version 2.7
|
|
|
|
|
# Last updated for version 3.27.5
|
|
|
|
|
%define glib2_version 2.38.0
|
|
|
|
|
%define gobject_introspection_version 1.46.0
|
|
|
|
|
%define pycairo_version 1.11.1
|
|
|
|
|
|
|
|
|
|
%global with_python3 1
|
|
|
|
|
%define python3_version 3.4
|
|
|
|
|
|
|
|
|
|
%global with_check 0
|
|
|
|
|
|
|
|
|
|
Name: pygobject3
|
|
|
|
|
Version: 3.40.1
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Version: 3.28.3
|
|
|
|
|
Release: 2%{?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.40/pygobject-%{version}.tar.xz
|
|
|
|
|
Source0: https://download.gnome.org/sources/pygobject/3.28/pygobject-%{version}.tar.xz
|
|
|
|
|
|
|
|
|
|
BuildRequires: cairo-gobject-devel
|
|
|
|
|
BuildRequires: glib2-devel >= %{glib2_version}
|
|
|
|
|
BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version}
|
|
|
|
|
BuildRequires: meson
|
|
|
|
|
BuildRequires: python3-devel >= %{python3_version}
|
|
|
|
|
BuildRequires: python3-cairo-devel >= %{pycairo_version}
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
|
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_Appendix/#_byte_compilation_reproducibility
|
|
|
|
|
%global py_reproducible_pyc_path %{buildroot}%{python3_sitelib}
|
|
|
|
|
BuildRequires: /usr/bin/marshalparser
|
|
|
|
|
BuildRequires: cairo-gobject-devel
|
|
|
|
|
|
|
|
|
|
Patch10001: 0001-IntrospectionModule-handle-two-threads-loading-type-.patch
|
|
|
|
|
# Required by the upstream selftest suite:
|
|
|
|
|
%if %{with_check}
|
|
|
|
|
BuildRequires: python3-pyflakes
|
|
|
|
|
BuildRequires: python3-pep8
|
|
|
|
|
## for the Gdk and Gtk typelibs, used during the test suite:
|
|
|
|
|
BuildRequires: gtk3
|
|
|
|
|
## for xvfb-run:
|
|
|
|
|
BuildRequires: xorg-x11-server-Xvfb
|
|
|
|
|
BuildRequires: dejavu-sans-fonts
|
|
|
|
|
BuildRequires: dejavu-sans-mono-fonts
|
|
|
|
|
BuildRequires: dejavu-serif-fonts
|
|
|
|
|
## for dbus-launch, used by test_gdbus:
|
|
|
|
|
BuildRequires: dbus-x11
|
|
|
|
|
%endif # with_check
|
|
|
|
|
|
|
|
|
|
Patch0: 0001-IntrospectionModule-handle-two-threads-loading-type-.patch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The %{name} package provides a convenient wrapper for the GObject library
|
|
|
|
@ -45,201 +59,91 @@ 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}
|
|
|
|
|
Requires: python3-gobject-base-noarch = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n python3-gobject-base
|
|
|
|
|
This package provides the non-cairo specific bits of the GObject Introspection
|
|
|
|
|
library that are architecture specific.
|
|
|
|
|
|
|
|
|
|
%package -n python3-gobject-base-noarch
|
|
|
|
|
Summary: Python 3 bindings for GObject Introspection base (not architecture dependent)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Requires: python3-gobject-base = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n python3-gobject-base-noarch
|
|
|
|
|
This package provides the non-cairo specific bits of the GObject Introspection
|
|
|
|
|
library that are not architecture specific.
|
|
|
|
|
library.
|
|
|
|
|
|
|
|
|
|
%package -n python3-gobject-devel
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for embedding PyGObject introspection support
|
|
|
|
|
Requires: python3-gobject%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: gobject-introspection-devel%{?_isa}
|
|
|
|
|
# Renamed in F31
|
|
|
|
|
Obsoletes: pygobject3-devel < 3.34.0-2
|
|
|
|
|
Provides: pygobject3-devel = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n python3-gobject-devel
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains files required to embed PyGObject
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n pygobject-%{version} -p1
|
|
|
|
|
%setup -q -n pygobject-%{version}
|
|
|
|
|
%patch0 -p1 -b .lockablock
|
|
|
|
|
|
|
|
|
|
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%meson -Dpython=%{__python3}
|
|
|
|
|
%meson_build
|
|
|
|
|
PYTHON=%{__python3}
|
|
|
|
|
export PYTHON
|
|
|
|
|
%configure
|
|
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%meson_install
|
|
|
|
|
PYTHON=%{__python3}
|
|
|
|
|
export PYTHON
|
|
|
|
|
%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*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if %{with_check}
|
|
|
|
|
# Run the selftests under a temporary xvfb X server (so that they can
|
|
|
|
|
# initialize Gdk etc):
|
|
|
|
|
|
|
|
|
|
PYTHON=%{__python3}
|
|
|
|
|
export PYTHON
|
|
|
|
|
xvfb-run make DESTDIR=$RPM_BUILD_ROOT check V=1
|
|
|
|
|
|
|
|
|
|
xvfb-run make DESTDIR=$RPM_BUILD_ROOT check V=1
|
|
|
|
|
|
|
|
|
|
%endif # with_check
|
|
|
|
|
%files -n python3-gobject
|
|
|
|
|
%{python3_sitearch}/gi/_gi_cairo*.so
|
|
|
|
|
|
|
|
|
|
%files -n python3-gobject-base
|
|
|
|
|
%dir %{python3_sitearch}/gi/
|
|
|
|
|
%pycached %{python3_sitearch}/gi/*.py
|
|
|
|
|
%{python3_sitearch}/gi/_gi.*.so
|
|
|
|
|
%{python3_sitearch}/PyGObject-*.egg-info
|
|
|
|
|
|
|
|
|
|
%files -n python3-gobject-base-noarch
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc NEWS
|
|
|
|
|
%dir %{python3_sitelib}/gi/
|
|
|
|
|
%{python3_sitelib}/gi/overrides/
|
|
|
|
|
%{python3_sitelib}/gi/repository/
|
|
|
|
|
%{python3_sitelib}/pygtkcompat/
|
|
|
|
|
|
|
|
|
|
%files -n python3-gobject-devel
|
|
|
|
|
%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 Jun 14 2022 Tomas Popela <tpopela@redhat.com> - 3.40.1-6
|
|
|
|
|
- Fix the multilib problems by backporting fixes done by mhroncok from Fedora:
|
|
|
|
|
- Move pure Python modules to a noarch subpackage
|
|
|
|
|
- Ensure Python bytecode installed in multilib packages is bit-to-bit identical
|
|
|
|
|
Resolves: rhbz#1915764
|
|
|
|
|
|
|
|
|
|
* Thu Aug 19 2021 DJ Delorie <dj@redhat.com> - 3.40.1-5
|
|
|
|
|
- Rebuilt for libffi 3.4.2 SONAME transition.
|
|
|
|
|
Related: rhbz#1891914
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 3.40.1-4
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Wed May 05 2021 Ray Strode <rstrode@redhat.com> - 3.40.1-3
|
|
|
|
|
- Add concurrency fix
|
|
|
|
|
Related: #1957130
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.40.1-2
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Tue Mar 30 2021 Kalev Lember <klember@redhat.com> - 3.40.1-1
|
|
|
|
|
- Update to 3.40.1
|
|
|
|
|
|
|
|
|
|
* Mon Mar 22 2021 Kalev Lember <klember@redhat.com> - 3.40.0-1
|
|
|
|
|
- Update to 3.40.0
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.38.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Oct 05 2020 Kalev Lember <klember@redhat.com> - 3.38.0-2
|
|
|
|
|
- Explicity BuildRequire python3-setuptools
|
|
|
|
|
|
|
|
|
|
* Sat Sep 12 2020 Kalev Lember <klember@redhat.com> - 3.38.0-1
|
|
|
|
|
- Update to 3.38.0
|
|
|
|
|
|
|
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.36.1-4
|
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.36.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 3.36.1-2
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
* Thu May 07 2020 Kalev Lember <klember@redhat.com> - 3.36.1-1
|
|
|
|
|
- Update to 3.36.1
|
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 3.28.3-2
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
* Sun Mar 08 2020 Kalev Lember <klember@redhat.com> - 3.36.0-2
|
|
|
|
|
- Drop pkgconfig provides filtering as we no longer ship the Python 2 package
|
|
|
|
|
* Thu Jun 11 2020 Ray Strode <rstrode@redhat.com> - 3.28.3-2
|
|
|
|
|
- Add lock to avoid two type object wrappers getting generated at
|
|
|
|
|
the same time in multi-threaded programs.
|
|
|
|
|
Resolves: #1844578
|
|
|
|
|
|
|
|
|
|
* Sun Mar 08 2020 Kalev Lember <klember@redhat.com> - 3.36.0-1
|
|
|
|
|
- Update to 3.36.0
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.34.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 16 2020 Miro Hrončok <mhroncok@redhat.com> - 3.34.0-4
|
|
|
|
|
- Subpackages python2-gobject, python2-gobject-base, python2-gobject-devel have been removed
|
|
|
|
|
See https://fedoraproject.org/wiki/Changes/RetirePython2
|
|
|
|
|
|
|
|
|
|
* Wed Sep 25 2019 Kalev Lember <klember@redhat.com> - 3.34.0-3
|
|
|
|
|
- Don't add pkgconfig provides to python2-gobject-devel
|
|
|
|
|
|
|
|
|
|
* Sat Sep 21 2019 Kalev Lember <klember@redhat.com> - 3.34.0-2
|
|
|
|
|
- Drop Python 3 conditionals
|
|
|
|
|
- Split pygobject3-devel into python2-gobject-devel and python3-gobject-devel
|
|
|
|
|
(#1749589)
|
|
|
|
|
|
|
|
|
|
* Mon Sep 09 2019 Kalev Lember <klember@redhat.com> - 3.34.0-1
|
|
|
|
|
- Update to 3.34.0
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Kalev Lember <klember@redhat.com> - 3.33.1-1
|
|
|
|
|
- Update to 3.33.1
|
|
|
|
|
|
|
|
|
|
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 3.32.2-3
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.32.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2019 Kalev Lember <klember@redhat.com> - 3.32.2-1
|
|
|
|
|
- Update to 3.32.2
|
|
|
|
|
|
|
|
|
|
* Tue Jun 18 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.32.1-2
|
|
|
|
|
- Fix build under python3.8 (#1717655)
|
|
|
|
|
|
|
|
|
|
* Mon May 06 2019 Kalev Lember <klember@redhat.com> - 3.32.1-1
|
|
|
|
|
- Update to 3.32.1
|
|
|
|
|
|
|
|
|
|
* Mon Mar 11 2019 Kalev Lember <klember@redhat.com> - 3.32.0-1
|
|
|
|
|
- Update to 3.32.0
|
|
|
|
|
|
|
|
|
|
* Thu Mar 07 2019 Kalev Lember <klember@redhat.com> - 3.31.4-1
|
|
|
|
|
- Update to 3.31.4
|
|
|
|
|
|
|
|
|
|
* Mon Feb 04 2019 Kalev Lember <klember@redhat.com> - 3.31.3-1
|
|
|
|
|
- Update to 3.31.3
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.31.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 23 2019 Kalev Lember <klember@redhat.com> - 3.31.2-1
|
|
|
|
|
- Update to 3.31.2
|
|
|
|
|
|
|
|
|
|
* Sat Dec 01 2018 Kalev Lember <klember@redhat.com> - 3.30.4-1
|
|
|
|
|
- Update to 3.30.4
|
|
|
|
|
|
|
|
|
|
* Tue Nov 27 2018 Kalev Lember <klember@redhat.com> - 3.30.3-1
|
|
|
|
|
- Update to 3.30.3
|
|
|
|
|
|
|
|
|
|
* Mon Nov 12 2018 Kalev Lember <klember@redhat.com> - 3.30.2-1
|
|
|
|
|
- Update to 3.30.2
|
|
|
|
|
|
|
|
|
|
* Fri Sep 14 2018 Kalev Lember <klember@redhat.com> - 3.30.1-1
|
|
|
|
|
- Update to 3.30.1
|
|
|
|
|
|
|
|
|
|
* Fri Sep 14 2018 Dan Horák <dan[at]danny.cz> - 3.30.0-2
|
|
|
|
|
- Include temporary big endian fix (#1623547)
|
|
|
|
|
|
|
|
|
|
* Thu Sep 06 2018 Kalev Lember <klember@redhat.com> - 3.30.0-1
|
|
|
|
|
- Update to 3.30.0
|
|
|
|
|
|
|
|
|
|
* Mon Aug 13 2018 Kalev Lember <klember@redhat.com> - 3.29.2-1
|
|
|
|
|
- Update to 3.29.2
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.28.3-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 3.28.3-2
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
* Fri Jun 01 2018 Kalev Lember <klember@redhat.com> - 3.28.3-1
|
|
|
|
|
* Fri Aug 10 2018 Kalev Lember <klember@redhat.com> - 3.28.3-1
|
|
|
|
|
- Update to 3.28.3
|
|
|
|
|
|
|
|
|
|
* Tue Aug 07 2018 Petr Viktorin <pviktori@redhat.com> - 3.28.2-2
|
|
|
|
|
- Remove the python2 subpackages
|
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1590819
|
|
|
|
|
|
|
|
|
|
* Wed Mar 28 2018 Kalev Lember <klember@redhat.com> - 3.28.2-1
|
|
|
|
|
- Update to 3.28.2
|
|
|
|
|
|
|
|
|
|