pygobject.spec 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Name: python3-gobject
  2. Version: 3.42.1
  3. Release: 1%{?dist}
  4. Summary: Python bindings for GLib/GObject/GIO/GTK+
  5. License: LGPLv2
  6. URL: https://wiki.gnome.org/Projects/PyGObject
  7. Source0: https://download.gnome.org/sources/pygobject/3.42/pygobject-%{version}.tar.xz
  8. BuildRequires: gobject-introspection-devel cairo-gobject-devel python3-cairo meson
  9. %description
  10. %global pyver 3.9
  11. %global pylibdir /usr/lib/python%{pyver}/site-packages
  12. %global pylib64dir %{_libdir}/python%{pyver}/site-packages
  13. %prep
  14. %setup -q -n pygobject-%{version}
  15. %build
  16. meson setup \
  17. --prefix %{_prefix} \
  18. --buildtype plain \
  19. --auto-features enabled \
  20. --wrap-mode nodownload \
  21. -D b_lto=true \
  22. -D b_pie=true \
  23. build
  24. meson compile -C build
  25. %install
  26. meson install -C build --destdir %{buildroot}
  27. python3 -m compileall -d /usr/lib "%{buildroot}/usr/lib"
  28. python -O -m compileall -d /usr/lib "%{buildroot}/usr/lib"
  29. %files
  30. %{_includedir}/pygobject-3.0/pygobject.h
  31. %{pylibdir}/gi/overrides
  32. %{pylibdir}/gi/repository
  33. %{pylibdir}/pygtkcompat
  34. %{_libdir}/pkgconfig/pygobject-3.0.pc
  35. %{pylib64dir}/PyGObject-3.42.1.egg-info
  36. %{pylib64dir}/gi
  37. %changelog