From b99a9558b68c8cf991d8197b27da9768f60ca67c Mon Sep 17 00:00:00 2001 From: Jan Beran Date: Wed, 7 Aug 2019 09:43:02 +0200 Subject: [PATCH] Add explicit girdir and typelib_dir when building flatpak When using this library in connection with flatpak, girdr and typelib_dir must be explicit in configure section, because of pkg-config, which doesn't recognize the paths correctly. When building library without %{flatpak} macro set, there is no change. --- libgsf.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libgsf.spec b/libgsf.spec index 49dcdb9..e1e4620 100644 --- a/libgsf.spec +++ b/libgsf.spec @@ -1,7 +1,7 @@ Summary: GNOME Structured File library Name: libgsf Version: 1.14.43 -Release: 5%{?dist} +Release: 6%{?dist} License: LGPLv2 Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/1.14/%{name}-%{version}.tar.xz URL: http://www.gnome.org/projects/libgsf/ @@ -36,6 +36,9 @@ libgsf. %build %configure --disable-gtk-doc --disable-static --enable-introspection=yes +%if 0%{?flatpak} +--with-typelib_dir=%{_libdir}/girepository-1.0 --with-gir-dir=%{_datadir}/gir-1.0 +%endif make %{?_smp_mflags} V=1 @@ -75,6 +78,9 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' %{_mandir}/man1/gsf-vba-dump.1* %changelog +* Wed Aug 8 2019 Jan Beran - 1.14.43-6 +- Add explicit path for girdir and typelib_dir when building flatpak + * Thu Jul 25 2019 Fedora Release Engineering - 1.14.43-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild