summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-02-04 07:34:38 +0000
committerCoprDistGit <infra@openeuler.org>2025-02-04 07:34:38 +0000
commit3a7a09f7003ba642a940564a1969ef342aafbca3 (patch)
treefdc23c280adc5bee711a97ff31dbed6e131ec1cc
parent45596f0e6b752738511bbdba3c48d8644ff3e362 (diff)
automatic import of pygobject3
-rw-r--r--pygobject3.spec22
1 files changed, 11 insertions, 11 deletions
diff --git a/pygobject3.spec b/pygobject3.spec
index 66e7ac6..d426ac4 100644
--- a/pygobject3.spec
+++ b/pygobject3.spec
@@ -24,7 +24,7 @@ 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
+BuildRequires: python3-pytest gtk3 xorg-x11-server-Xvfb
%description
PyGObject is a Python package which provides bindings for GObject based libraries such as
@@ -71,7 +71,8 @@ This package contains files required to embed PyGObject
%meson_install
%check
-%meson_test
+export TEST_GTK_VERSION=3.0
+%{shrink:xvfb-run %meson_test}
%files -n python3-gobject
%{python3_sitearch}/gi/_gi_cairo*.so
@@ -79,18 +80,17 @@ This package contains files required to embed PyGObject
%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/
+%dir %{python3_sitearch}/gi/
+%{python3_sitearch}/gi/overrides/
+%{python3_sitearch}/gi/repository/
+%pycached %{python3_sitearch}/gi/*.py
+%{python3_sitearch}/gi/_gi.*.so
+%{python3_sitearch}/PyGObject-*.dist-info/
+%{python3_sitearch}/pygtkcompat/
%files devel
+%dir %{_includedir}/pygobject-3.0
%{_includedir}/pygobject-3.0/pygobject.h
-%doc examples/
-%dir %{_includedir}/pygobject-3.0/
%{_libdir}/pkgconfig/pygobject-3.0.pc
%changelog