From 39ba10214121bde5ff2a6b02a24978348b61f399 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 8 Nov 2021 17:18:06 +0100 Subject: new package --- libcgif.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'libcgif.spec') diff --git a/libcgif.spec b/libcgif.spec index 13401c4..4410fff 100644 --- a/libcgif.spec +++ b/libcgif.spec @@ -24,6 +24,9 @@ License: MIT URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz +# Fix version in pkgconfig file +Patch0: %{name}-pc.patch + BuildRequires: gcc BuildRequires: meson @@ -62,6 +65,7 @@ for %{libname}. %prep %setup -q -n %{gh_project}-%{gh_commit} +%patch0 -p1 %build @@ -72,10 +76,6 @@ for %{libname}. %install %meson_install -# https://github.com/dloebl/cgif/issues/24 -grep ^Version %{buildroot}%{_libdir}/pkgconfig/%{gh_project}.pc -sed -e 's/undefined/%{version}/' -i %{buildroot}%{_libdir}/pkgconfig/%{gh_project}.pc - %check %meson_test @@ -96,3 +96,6 @@ sed -e 's/undefined/%{version}/' -i %{buildroot}%{_libdir}/pkgconfig/%{gh_projec %changelog * Mon Nov 8 2021 Remi Collet - 0.0.1-1 - initial package +- add patch to fix missing version in pc file + reported as https://github.com/dloebl/cgif/issues/24 + from https://github.com/dloebl/cgif/pull/26 -- cgit