2019-09-30 11:14:23 -04:00
|
|
|
Name: pygobject3
|
2022-06-08 16:04:43 +08:00
|
|
|
Version: 3.42.1
|
2022-01-10 15:34:57 +08:00
|
|
|
Release: 1
|
2019-09-30 11:14:23 -04:00
|
|
|
Summary: Provides bindings for GObject based libraries
|
|
|
|
|
License: LGPLv2+ and MIT
|
|
|
|
|
URL: https://wiki.gnome.org/Projects/PyGObject
|
2022-06-08 16:04:43 +08:00
|
|
|
Source0: https://download.gnome.org/sources/pygobject/3.42/pygobject-%{version}.tar.xz
|
2019-09-30 11:14:23 -04:00
|
|
|
|
2022-01-10 15:34:57 +08:00
|
|
|
BuildRequires: glib2-devel >= 2.56.0 gobject-introspection-devel >= 1.56.0
|
2021-07-22 16:37:57 +08:00
|
|
|
BuildRequires: meson cairo-gobject-devel
|
2022-01-10 15:34:57 +08:00
|
|
|
BuildRequires: python3-devel >= 3.6 python3-cairo-devel >= 1.16.0
|
2021-07-22 16:37:57 +08:00
|
|
|
#for test suite
|
2022-01-10 15:34:57 +08:00
|
|
|
BuildRequires: python3-pytest gtk3 dbus-x11 dejavu-fonts xorg-x11-server-Xvfb
|
2019-09-30 11:14:23 -04:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
PyGObject is a Python package which provides bindings for GObject based libraries such as
|
|
|
|
|
GTK, GStreamer, WebKitGTK, GLib, GIO and many more.
|
|
|
|
|
PyGObject uses glib, gobject, girepository, libffi and other libraries to access the C
|
|
|
|
|
library (libgtk-3.so) in combination with the additional metadata from the accompanying
|
|
|
|
|
typelib file (Gtk-3.0.typelib) and dynamically provides a Python interface based on that information.
|
|
|
|
|
|
|
|
|
|
%package -n python3-gobject
|
|
|
|
|
Summary: GObject library wrapper for python 3
|
|
|
|
|
Requires: python3-gobject-base%{?_isa} = %{version}-%{release}
|
|
|
|
|
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: base package for python3-gobject package
|
|
|
|
|
Requires: gobject-introspection%{?_isa}
|
|
|
|
|
|
|
|
|
|
%description -n python3-gobject-base
|
|
|
|
|
This package provides the non-cairo specific bits of the GObject Introspection
|
|
|
|
|
library.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Requires: python3-gobject%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: gobject-introspection-devel%{?_isa}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains files required to embed PyGObject
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-07-27 18:45:51 +08:00
|
|
|
%autosetup -n pygobject-%{version} -p1
|
2019-09-30 11:14:23 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%meson -Dpython=%{__python3}
|
|
|
|
|
%meson_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%meson_install
|
|
|
|
|
|
2021-06-19 16:19:29 +08:00
|
|
|
%check
|
2021-07-22 16:37:57 +08:00
|
|
|
xvfb-run %{__python3} setup.py test
|
2021-06-19 16:19:29 +08:00
|
|
|
|
2019-09-30 11:14:23 -04:00
|
|
|
%pre
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
|
|
|
|
|
%files -n python3-gobject
|
|
|
|
|
%{python3_sitearch}/gi/_gi_cairo*.so
|
|
|
|
|
|
|
|
|
|
%files -n python3-gobject-base
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc NEWS
|
|
|
|
|
%dir %{python3_sitearch}/gi
|
|
|
|
|
%{python3_sitearch}/gi/*
|
2020-07-27 18:45:51 +08:00
|
|
|
%{python3_sitearch}/PyGObject-*.egg-info
|
2021-07-22 16:37:57 +08:00
|
|
|
%exclude %{python3_sitearch}/gi/_gi_cairo*.so
|
|
|
|
|
%{python3_sitelib}/gi/*
|
|
|
|
|
%{python3_sitelib}/pygtkcompat/
|
2019-09-30 11:14:23 -04:00
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/pygobject-3.0/pygobject.h
|
|
|
|
|
%doc examples/
|
|
|
|
|
%dir %{_includedir}/pygobject-3.0/
|
|
|
|
|
%{_libdir}/pkgconfig/pygobject-3.0.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-06-08 16:04:43 +08:00
|
|
|
* Mon Jun 6 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 3.42.1-1
|
|
|
|
|
- update to 3.42.1
|
|
|
|
|
|
2022-01-10 15:34:57 +08:00
|
|
|
* Mon Jan 10 2022 fuanan <fuanan3@huawei.com> - 3.42.0-1
|
|
|
|
|
- update version to 3.42.0
|
|
|
|
|
|
2021-07-22 16:37:57 +08:00
|
|
|
* Tue Jul 27 2021 panxiaohe <panxiaohe@huawei.com> - 3.38.0-3
|
|
|
|
|
- use python3_sitelib macro for meson upgrade
|
|
|
|
|
- add BuildRequires for testsuite
|
|
|
|
|
- tests: Remove usage of some deprecated unittest methods
|
|
|
|
|
- tests: fix test with glib 2.68 re GLocalFile
|
|
|
|
|
|
2021-06-19 16:19:29 +08:00
|
|
|
* Sat Jun 19 2021 panxiaohe <panxiaohe@huawei.com> - 3.38.0-2
|
|
|
|
|
- enable check test suite
|
|
|
|
|
|
2021-01-26 09:59:36 +08:00
|
|
|
* Tue Jan 26 2021 yixiangzhike <zhangxingliang3@huawei.com> - 3.38.0-1
|
|
|
|
|
- update to 3.38.0
|
|
|
|
|
|
2020-10-29 16:42:35 +08:00
|
|
|
* Thu Oct 29 2020 panxiaohe <panxiaohe@huawei.com> - 3.36.1-2
|
|
|
|
|
- remove python2 subpackages
|
|
|
|
|
|
2020-07-27 18:45:51 +08:00
|
|
|
* Mon Jul 27 2020 zhangxingliang <zhangxingliang3@huawei.com> - 3.36.1-1
|
|
|
|
|
- Type:update
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update to 3.36.1
|
|
|
|
|
|
2019-09-30 11:14:23 -04:00
|
|
|
* Fri Sep 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.30.1-2
|
|
|
|
|
- Package init
|