Name: python3-pygobject
Version: 3.42.2
Release: 4%{?dist}
Summary: Python Bindings for GObject
Group: Development/Languages
License: LGPLv2+
Vendor: VMware, Inc.
Distribution: Photon
URL: https://pypi.org/project/PyGObject
Source0: https://pypi.org/project/PyGObject/#files/PyGObject-%{version}.tar.gz
%define sha512 PyGObject=ba48ba470c78d76f4090460df286d926e15c4063374a1d3afa89dd374230a042aca53d864fc0efaf67efdba5723fe15440d34888a0b45c97d73c5c4cfe17559c
%if 0%{?with_check}
Patch0: pygobject-makecheck-fixes.patch
%endif
Requires: python3
Requires: gobject-introspection
Requires: glib
BuildRequires: python3-setuptools
BuildRequires: glib-devel
BuildRequires: python3-devel
BuildRequires: gobject-introspection-devel
BuildRequires: which
%if 0%{?with_check}
BuildRequires: python3-gobject-introspection
BuildRequires: python3-pytest
BuildRequires: python3-pip
BuildRequires: glib-schemas
BuildRequires: dbus
BuildRequires: curl-devel
BuildRequires: openssl-devel
BuildRequires: python3-xml
%endif
%description
Python bindings for GLib and GObject.
%package devel
Summary: Development files for embedding PyGObject introspection support
Requires: %{name} = %{version}-%{release}
%description devel
Development files for pygobject.
%prep
%autosetup -p1 -n PyGObject-%{version}
%build
export PYGOBJECT_WITHOUT_PYCAIRO='True'
%{py3_build}
%install
export PYGOBJECT_WITHOUT_PYCAIRO='True'
%{py3_install}
%check
pip3 install tomli
python3 setup.py test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{python3_sitelib}/*
%files devel
%defattr(-,root,root,-)
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%changelog
* Wed Feb 07 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 3.42.2-4
- Bump version as a part of dbus upgrade
* Sun Nov 19 2023 Shreenidhi Shedi <sshedi@vmware.com> 3.42.2-3
- Bump version as a part of openssl upgrade
* Fri Dec 02 2022 Prashant S Chauhan <psinghchauha@vmware.com> 3.42.2-2
- Update release to compile with python 3.11
* Sun Aug 21 2022 Gerrit Photon <photon-checkins@vmware.com> 3.42.2-1
- Automatic Version Bump
* Wed May 11 2022 Shreenidhi Shedi <sshedi@vmware.com> 3.38.0-4
- Bump version as a part of libffi upgrade
* Tue Dec 15 2020 Shreenidhi Shedi <sshedi@vmware.com> 3.38.0-3
- Fix build with new rpm
* Tue Sep 29 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 3.38.0-2
- openssl 1.1.1
* Mon Sep 21 2020 Gerrit Photon <photon-checkins@vmware.com> 3.38.0-1
- Automatic Version Bump
* Tue Jun 30 2020 Gerrit Photon <photon-checkins@vmware.com> 3.36.1-1
- Automatic Version Bump
* Sun Jun 21 2020 Tapas Kundu <tkundu@vmware.com> 3.30.1-3
- Mass removal python2
* Thu Dec 06 2018 Tapas Kundu <tkundu@vmware.com> 3.30.1-2
- Fix makecheck
* Thu Sep 27 2018 Tapas Kundu <tkundu@vmware.com> 3.30.1-1
- Updated to release 3.30.1
* Tue Sep 19 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.24.1-3
- Skip some ui make check paths that failed.
* Thu Aug 10 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.24.1-2
- Fix make check
* Fri Apr 14 2017 Xiaolin Li <xiaolinl@vmware.com> 3.24.1-1
- Updated to version 3.24.1 and added python3 package.
* Mon Oct 03 2016 ChangLee <changLee@vmware.com> 3.10.2-3
- Modified %check
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.10.2-2
- GA - Bump release of all rpms
* Sat Jan 24 2015 Touseef Liaqat <tliaqat@vmware.com> 7.19.5.1
- Initial build. First version