[packages/gexiv2-0.16] - gexiv2.spec updated to 0.16.0 (new API 0.16, parallel installable with 0.14.x; transition starts w

qboosh qboosh at pld-linux.org
Mon Apr 6 20:35:54 CEST 2026


commit 3f8c1418cb97609b9fee3c8fdb360a01c5f326bc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Apr 6 20:36:22 2026 +0200

    - gexiv2.spec updated to 0.16.0 (new API 0.16, parallel installable with 0.14.x; transition starts with GNOME 49)

 gexiv2.spec => gexiv2-0.16.spec | 115 ++++++++++++++++++++++++----------------
 1 file changed, 70 insertions(+), 45 deletions(-)
---
diff --git a/gexiv2.spec b/gexiv2-0.16.spec
similarity index 62%
rename from gexiv2.spec
rename to gexiv2-0.16.spec
index cfc9f7a..c49249a 100644
--- a/gexiv2.spec
+++ b/gexiv2-0.16.spec
@@ -4,36 +4,47 @@
 # Conditional build:
 %bcond_without	apidocs		# disable gtk-doc
 %bcond_without	static_libs	# static library
+%bcond_with	python		# python GI support (not API-versioned, currently built from gexiv2.spec)
+%bcond_without	python2		# python 2.x support
+%bcond_without	python3		# python 3.x support
 
+%if %{without python}
+%undefine	with_python2
+%undefine	with_python3
+%endif
 Summary:	GObject-based wrapper around the Exiv2 library
 Summary(pl.UTF-8):	Oparte na GObject obudowanie biblioteki Exiv2
-Name:		gexiv2
-Version:	0.14.6
+Name:		gexiv2-0.16
+Version:	0.16.0
 Release:	1
 License:	GPL v2+
 Group:		Libraries
-Source0:	https://download.gnome.org/sources/gexiv2/0.14/%{name}-%{version}.tar.xz
-# Source0-md5:	4139dfeca8e30288969233568c72e06e
-Patch0:		%{name}-python-archdir.patch
+Source0:	https://download.gnome.org/sources/gexiv2/0.16/gexiv2-%{version}.tar.xz
+# Source0-md5:	0cb9fbd499f4aca2f976948395b465ee
+Patch0:		gexiv2-python-archdir.patch
 URL:		https://gnome.pages.gitlab.gnome.org/gexiv2/
-BuildRequires:	exiv2-devel >= 0.27.4
+BuildRequires:	exiv2-devel >= 0.28
 BuildRequires:	glib2-devel >= 1:2.46.0
 BuildRequires:	gobject-introspection-devel >= 0.10
-BuildRequires:	gtk-doc >= 1.14
-BuildRequires:	libstdc++-devel >= 6:4.7
-BuildRequires:	meson >= 0.64
+%{?with_apidocs:BuildRequires:	gi-docgen >= 2021.1}
+BuildRequires:	libstdc++-devel >= 6:7
+BuildRequires:	meson >= 1.4
 BuildRequires:	ninja >= 1.5
 BuildRequires:	pkgconfig >= 1:0.26
+%if %{with python2}
 BuildRequires:	python >= 2
 BuildRequires:	python-pygobject3-devel >= 3
+%endif
 BuildRequires:	python3 >= 1:3.2
+%if %{with pythnon3}
 BuildRequires:	python3-pygobject3-devel >= 3
+%endif
 BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpmbuild(macros) >= 2.042
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	vala
 BuildRequires:	xz
-Requires:	exiv2-libs >= 0.27.4
+Requires:	exiv2-libs >= 0.28
 Requires:	glib2 >= 1:2.46.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -50,44 +61,44 @@ gexiv2 to oparte na GObject obudowanie biblioteki Exiv2. Udostępnia
 podstawowe możliwości Exiv2 aplikacjom GNOME.
 
 %package devel
-Summary:	Header files for gexiv2 library
-Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki gexiv2
+Summary:	Header files for gexiv2 0.16 library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki gexiv2 0.16
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
-Requires:	exiv2-devel >= 0.27.4
+Requires:	exiv2-devel >= 0.28
 Requires:	glib2-devel >= 1:2.46.0
-Requires:	libstdc++-devel
+Requires:	libstdc++-devel >= 6:7
 
 %description devel
-Header files for gexiv2 library.
+Header files for gexiv2 0.16 library.
 
 %description devel -l pl.UTF-8
-Pliki nagłówkowe biblioteki gexiv2.
+Pliki nagłówkowe biblioteki gexiv2 0.16.
 
 %package static
-Summary:	Static gexiv2 library
-Summary(pl.UTF-8):	Statyczna biblioteka gexiv2
+Summary:	Static gexiv2 0.16 library
+Summary(pl.UTF-8):	Statyczna biblioteka gexiv2 0.16
 Group:		Development/Libraries
 Requires:	%{name}-devel = %{version}-%{release}
 
 %description static
-Static gexiv2 library.
+Static gexiv2 0.16 library.
 
 %description static -l pl.UTF-8
-Statyczna biblioteka gexiv2.
+Statyczna biblioteka gexiv2 0.16.
 
 %package apidocs
-Summary:	gexiv2 API documentation
-Summary(pl.UTF-8):	Dokumentacja API gexiv2
+Summary:	gexiv2 0.16 API documentation
+Summary(pl.UTF-8):	Dokumentacja API gexiv2 0.16
 Group:		Documentation
 Requires:	gtk-doc-common
 BuildArch:	noarch
 
 %description apidocs
-gexiv2 API documentation.
+gexiv2 0.16 API documentation.
 
 %description apidocs -l pl.UTF-8
-Dokumentacja API gexiv2.
+Dokumentacja API gexiv2 0.16.
 
 %package -n python-gexiv2
 Summary:	Python 2 binding for gexiv2 library
@@ -115,26 +126,27 @@ Python 3 binding for gexiv2 library.
 %description -n python3-gexiv2 -l pl.UTF-8
 Wiązanie Pythona 3 do biblioteki gexiv2.
 
-%package -n vala-gexiv2
-Summary:	Vala binding for gexiv2 library
-Summary(pl.UTF-8):	Wiązanie języka vala do biblioteki gexiv2
+%package -n vala-gexiv2-0.16
+Summary:	Vala binding for gexiv2 0.16 library
+Summary(pl.UTF-8):	Wiązanie języka vala do biblioteki gexiv2 0.16
 Group:		Development/Languages
 Requires:	%{name}-devel = %{version}-%{release}
 BuildArch:	noarch
 
-%description -n vala-gexiv2
-Vala binding for gexiv2 library.
+%description -n vala-gexiv2-0.16
+Vala binding for gexiv2 0.16 library.
 
-%description -n vala-gexiv2 -l pl.UTF-8
-Wiązanie języka vala do biblioteki gexiv2.
+%description -n vala-gexiv2-0.16 -l pl.UTF-8
+Wiązanie języka vala do biblioteki gexiv2 0.16.
 
 %prep
-%setup -q
+%setup -q -n gexiv2-%{version}
 %patch -P0 -p1
 
 %build
 %meson \
-	%{?with_apidocs:-Dgtk_doc=true}
+	%{?with_apidocs:-Dgtk_doc=true} \
+	%{!?with_python:-Dpython3=false}
 
 %meson_build
 
@@ -143,15 +155,24 @@ rm -rf $RPM_BUILD_ROOT
 
 %meson_install
 
+%if %{with apidocs}
+install -d $RPM_BUILD_ROOT%{_gidocdir}
+%{__mv} $RPM_BUILD_ROOT%{_docdir}/gexiv2-0.16 $RPM_BUILD_ROOT%{_gidocdir}
+%endif
+
+%if %{with python2}
 # no longer installed by meson
 install -d $RPM_BUILD_ROOT%{py_sitedir}/gi/overrides
 cp -p GExiv2.py $RPM_BUILD_ROOT%{py_sitedir}/gi/overrides
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}/gi/overrides
 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/gi/overrides
 %py_postclean
+%endif
 
+%if %{with python3}
 %py3_comp $RPM_BUILD_ROOT%{py3_sitedir}/gi/overrides
 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}/gi/overrides
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -162,39 +183,43 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS NEWS README.md THANKS
-%{_libdir}/libgexiv2.so.*.*.*
-%ghost %{_libdir}/libgexiv2.so.2
-%{_libdir}/girepository-1.0/GExiv2-0.10.typelib
+%{_libdir}/libgexiv2-0.16.so.*.*.*
+%ghost %{_libdir}/libgexiv2-0.16.so.4
+%{_libdir}/girepository-1.0/GExiv2-0.16.typelib
 
 %files devel
 %defattr(644,root,root,755)
-%{_libdir}/libgexiv2.so
-%{_datadir}/gir-1.0/GExiv2-0.10.gir
-%{_includedir}/gexiv2
-%{_pkgconfigdir}/gexiv2.pc
+%{_libdir}/libgexiv2-0.16.so
+%{_datadir}/gir-1.0/GExiv2-0.16.gir
+%{_includedir}/gexiv2-0.16
+%{_pkgconfigdir}/gexiv2-0.16.pc
 
 %if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/libgexiv2.a
+%{_libdir}/libgexiv2-0.16.a
 %endif
 
 %if %{with apidocs}
 %files apidocs
 %defattr(644,root,root,755)
-%{_gtkdocdir}/gexiv2
+%{_gidocdir}/gexiv2-0.16
 %endif
 
+%if %{with python2}
 %files -n python-gexiv2
 %defattr(644,root,root,755)
 %{py_gi_overridesdir}/GExiv2.py[co]
+%endif
 
+%if %{with python3}
 %files -n python3-gexiv2
 %defattr(644,root,root,755)
 %{py3_gi_overridesdir}/GExiv2.py
 %{py3_gi_overridesdir}/__pycache__/GExiv2.cpython-*.py[co]
+%endif
 
-%files -n vala-gexiv2
+%files -n vala-gexiv2-0.16
 %defattr(644,root,root,755)
-%{_datadir}/vala/vapi/gexiv2.deps
-%{_datadir}/vala/vapi/gexiv2.vapi
+%{_datadir}/vala/vapi/gexiv2-0.16.deps
+%{_datadir}/vala/vapi/gexiv2-0.16.vapi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gexiv2-0.16.git/commitdiff/3f8c1418cb97609b9fee3c8fdb360a01c5f326bc



More information about the pld-cvs-commit mailing list