[packages/gom] - updated to 0.5.6

qboosh qboosh at pld-linux.org
Fri Oct 9 20:58:08 CEST 2026


commit 1fb0731939e4373ec09d3e19bbd6d9804f8e0c0f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Oct 9 20:58:42 2026 +0200

    - updated to 0.5.6

 gom.spec | 51 ++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 34 insertions(+), 17 deletions(-)
---
diff --git a/gom.spec b/gom.spec
index 2e54247..3c07d55 100644
--- a/gom.spec
+++ b/gom.spec
@@ -1,32 +1,39 @@
 #
 # Conditional build:
+%bcond_without	apidocs		# API documentation
 %bcond_without	python		# Python (3) binding
 #
 Summary:	GObject Data Mapper library
 Summary(pl.UTF-8):	Biblioteka GObject Data Mapper
 Name:		gom
-Version:	0.4
-Release:	8
+Version:	0.5.6
+Release:	1
 License:	LGPL v2.1+
 Group:		Libraries
-Source0:	http://ftp.gnome.org/pub/GNOME/sources/gom/0.4/%{name}-%{version}.tar.xz
-# Source0-md5:	0cc4debe208cb4c91b013e5e57a99808
-URL:		https://github.com/GNOME/gom
+Source0:	https://download.gnome.org/sources/gom/0.5/%{name}-%{version}.tar.xz
+# Source0-md5:	acb53d7f119a9c4e97c9710567bdaa03
+URL:		https://gitlab.gnome.org/GNOME/gom
 BuildRequires:	gdk-pixbuf2-devel >= 2.0
-BuildRequires:	glib2-devel >= 1:2.36
+BuildRequires:	glib2-devel >= 1:2.38
 BuildRequires:	gobject-introspection-devel >= 1.30.0
-BuildRequires:	gtk-doc >= 1.14
+%{?with_apidocs:BuildRequires:	gi-docgen}
 BuildRequires:	intltool >= 0.40.0
 BuildRequires:	meson >= 0.48
 BuildRequires:	pkgconfig
 %{?with_python:BuildRequires:	python3-devel >= 1:3.4}
 %{?with_python:BuildRequires:	python3-pygobject3-devel >= 3.16.0}
+BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpmbuild(macros) >= 2.042
 BuildRequires:	sqlite3-devel >= 3.7
-Requires:	glib2 >= 1:2.36
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	xz
+Requires:	glib2 >= 1:2.38
 Requires:	sqlite3 >= 3.7
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# must be in sitedir due to "..overrides" and "..module" imports
+%define		py3_gi_overridesdir	%{py3_sitedir}/gi/overrides
+
 %description
 GOM (GObject Data Mapper) is an attempt to make a DataMapper for
 GObject.
@@ -40,8 +47,8 @@ Summary:	Header files for GOM library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki GOM
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
-Requires:	glib2-devel >= 1:2.36
-Obsoletes:	gom-static
+Requires:	glib2-devel >= 1:2.38
+Obsoletes:	gom-static < 0.3.3
 
 %description devel
 This is the package containing the header files for GOM.
@@ -80,7 +87,8 @@ Wiązanie Pythona 3 do biblioteki GOM.
 
 %build
 %meson \
-	-Denable-gtk-doc=true
+	%{?with_apidocs:-Denable-gtk-doc=true} \
+	-Dpygobject-override-dir=%{py3_gi_overridesdir}
 
 %meson_build
 
@@ -89,8 +97,15 @@ rm -rf $RPM_BUILD_ROOT
 
 %meson_install
 
+%if %{with apidocs}
+install -d $RPM_BUILD_ROOT%{_gidocdir}
+%{__mv} $RPM_BUILD_ROOT%{_docdir}/gom-1.0 $RPM_BUILD_ROOT%{_gidocdir}
+%endif
+
+%if %{with python}
 %py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -101,24 +116,26 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS NEWS README TODO
-%attr(755,root,root) %{_libdir}/libgom-1.0.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgom-1.0.so.0
+%{_libdir}/libgom-1.0.so.*.*.*
+%ghost %{_libdir}/libgom-1.0.so.0
 %{_libdir}/girepository-1.0/Gom-1.0.typelib
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libgom-1.0.so
+%{_libdir}/libgom-1.0.so
 %{_includedir}/gom-1.0
 %{_pkgconfigdir}/gom-1.0.pc
 %{_datadir}/gir-1.0/Gom-1.0.gir
 
+%if %{with apidocs}
 %files apidocs
 %defattr(644,root,root,755)
-%{_gtkdocdir}/gom
+%{_gidocdir}/gom-1.0
+%endif
 
 %if %{with python}
 %files -n python3-gom
 %defattr(644,root,root,755)
-%{py3_sitedir}/gi/overrides/Gom.py
-%{py3_sitedir}/gi/overrides/__pycache__/Gom.cpython-*.py[co]
+%{py3_gi_overridesdir}/Gom.py
+%{py3_gi_overridesdir}/__pycache__/Gom.cpython-*.py[co]
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gom.git/commitdiff/1fb0731939e4373ec09d3e19bbd6d9804f8e0c0f



More information about the pld-cvs-commit mailing list