diff options
author | CoprDistGit <infra@openeuler.org> | 2025-02-04 07:21:09 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-02-04 07:21:09 +0000 |
commit | d7d5cbc76887c9cf6cb3eb0e06f3e2a57c0e2176 (patch) | |
tree | ee11ec91eebe9b2df120323313dceffe67271fd3 | |
parent | 3d00458ec8cec8747e0e41430eb7b076b4517f08 (diff) |
automatic import of pygobject3
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | pygobject-do-not-install-GIMarshallingTests.patch | 10 | ||||
-rw-r--r-- | pygobject3.spec | 149 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 161 insertions, 0 deletions
@@ -0,0 +1 @@ +/pygobject-3.50.0.tar.xz diff --git a/pygobject-do-not-install-GIMarshallingTests.patch b/pygobject-do-not-install-GIMarshallingTests.patch new file mode 100644 index 0000000..698facd --- /dev/null +++ b/pygobject-do-not-install-GIMarshallingTests.patch @@ -0,0 +1,10 @@ +--- pygobject-3.46.0/gi/overrides/meson.build.orig 2024-10-19 11:56:33.161139900 +0800 ++++ pygobject-3.46.0/gi/overrides/meson.build 2024-10-19 11:56:37.632926300 +0800 +@@ -5,7 +5,6 @@ + 'GdkPixbuf.py', + 'GObject.py', + 'Gio.py', +- 'GIMarshallingTests.py', + 'Pango.py', + 'keysyms.py', + '__init__.py'] diff --git a/pygobject3.spec b/pygobject3.spec new file mode 100644 index 0000000..6cc2c99 --- /dev/null +++ b/pygobject3.spec @@ -0,0 +1,149 @@ +%global __requires_exclude typelib\\(%%namespaces\\) +%global __requires_exclude_from ^%{python3_sitelib}/pygtkcompat/.*$ + +Name: pygobject3 +Version: 3.50.0 +Release: 1 +Summary: Provides bindings for GObject based libraries +License: LGPL-2.1-or-later and MIT +URL: https://pygobject.gnome.org/ +Source0: https://download.gnome.org/sources/pygobject/3.50/pygobject-%{version}.tar.xz + +# Drop GIMarshallingTests - It's test suite remainders that should not be installed +Patch0: pygobject-do-not-install-GIMarshallingTests.patch + +BuildRequires: meson >= 0.64.0 +BuildRequires: pkgconfig(cairo) +BuildRequires: pkgconfig(cairo-gobject) +BuildRequires: pkgconfig(gio-2.0) >= 2.64.0 +BuildRequires: pkgconfig(glib-2.0) >= 2.64.0 +BuildRequires: pkgconfig(gmodule-2.0) >= 2.64.0 +BuildRequires: pkgconfig(gobject-2.0) >= 2.64.0 +BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.64.0 +BuildRequires: pkgconfig(libffi) >= 3.0 +BuildRequires: python3-devel >= 3.9 +BuildRequires: python3-cairo-devel >= 1.16.0 +#for test suite +BuildRequires: python3-pytest gtk3 dbus-x11 dejavu-fonts xorg-x11-server-Xvfb + +%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} >= 1.16.0 + +%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} >= 1.64.0 +Provides: python%{python3_version}dist(pygobject) = %{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 %{name} +Requires: python3-gobject%{?_isa} = %{version}-%{release} +Requires: gobject-introspection-devel%{?_isa} >= 1.64.0 + +%description devel +This package contains files required to embed PyGObject + +%prep +%autosetup -n pygobject-%{version} -p1 + +%build +%meson -Dpython=%{__python3} +%meson_build + +%install +%meson_install + +%check +xvfb-run %{__python3} setup.py test + +%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/* +%{python3_sitearch}/PyGObject-*.egg-info +%exclude %{python3_sitearch}/gi/_gi_cairo*.so +%dir %{python3_sitelib}/gi/ +%{python3_sitelib}/gi/* +%{python3_sitelib}/pygtkcompat/ + +%files devel +%{_includedir}/pygobject-3.0/pygobject.h +%doc examples/ +%dir %{_includedir}/pygobject-3.0/ +%{_libdir}/pkgconfig/pygobject-3.0.pc + +%changelog +* Tue Feb 04 2025 Funda Wang <fundawang@yeah.net> - 3.50.0-1 +- update to 3.50.0 + +* Fri Oct 18 2024 Funda Wang <fundawang@yeah.net> - 3.46.0-3 +- filter out wrong requires + +* Mon May 27 2024 fuanan <fuanan3@h-partners.com> - 3.46.0-2 +- python3-gobject-base provide the "%{python3_sitelib}/gi/" directory + +* Fri Dec 15 2023 fuanan <fuanan3@h-partners.com> - 3.46.0-1 +- update version to 3.46.0 + +* Thu Jul 13 2023 niuyaru <niuyaru@kylinos.cn> - 3.44.1-1 +- update version to 3.44.1 + +* Thu Nov 17 2022 fuanan <fuanan3@h-partners.com> - 3.42.2-1 +- update version to 3.42.2 + +* Tue Oct 25 2022 zhuofeng <zhuofeng2@huawei.com> - 3.42.1-3 +- Rebuild for next release + +* Tue Jun 28 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 3.42.1-2 +- Add provides for python3-gobject-base + +* Mon Jun 6 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 3.42.1-1 +- update to 3.42.1 + +* Mon Jan 10 2022 fuanan <fuanan3@huawei.com> - 3.42.0-1 +- update version to 3.42.0 + +* 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 + +* Sat Jun 19 2021 panxiaohe <panxiaohe@huawei.com> - 3.38.0-2 +- enable check test suite + +* Tue Jan 26 2021 yixiangzhike <zhangxingliang3@huawei.com> - 3.38.0-1 +- update to 3.38.0 + +* Thu Oct 29 2020 panxiaohe <panxiaohe@huawei.com> - 3.36.1-2 +- remove python2 subpackages + +* Mon Jul 27 2020 zhangxingliang <zhangxingliang3@huawei.com> - 3.36.1-1 +- Type:update +- ID:NA +- SUG:NA +- DESC:update to 3.36.1 + +* Fri Sep 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.30.1-2 +- Package init @@ -0,0 +1 @@ +8f34e4bc1d7d57faf558180b0051c9ef pygobject-3.50.0.tar.xz |