summaryrefslogtreecommitdiffstats
path: root/libcgif.spec
diff options
context:
space:
mode:
Diffstat (limited to 'libcgif.spec')
-rw-r--r--libcgif.spec11
1 files changed, 7 insertions, 4 deletions
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 <remi@remirepo.net> - 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