pull in upstream fix for pkgconfig exiv2.pc
This commit is contained in:
parent
865d9e7106
commit
85c5dfb4bb
@ -0,0 +1,27 @@
|
||||
From ae9eb90108c0f6a3f2030cf4e4ae907a8b203b6a Mon Sep 17 00:00:00 2001
|
||||
From: Luis Diaz Mas <piponazo@gmail.com>
|
||||
Date: Sat, 12 Jan 2019 13:39:12 +0100
|
||||
Subject: [PATCH 79/98] Fixes in .pc file for being compatible with more
|
||||
distributions
|
||||
|
||||
---
|
||||
cmake/exiv2.pc.in | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/cmake/exiv2.pc.in b/cmake/exiv2.pc.in
|
||||
index e477696d..9018472b 100644
|
||||
--- a/cmake/exiv2.pc.in
|
||||
+++ b/cmake/exiv2.pc.in
|
||||
@@ -1,7 +1,7 @@
|
||||
prefix=@CMAKE_INSTALL_PREFIX@
|
||||
exec_prefix=${prefix}
|
||||
-libdir=${prefix}/lib
|
||||
-includedir=${prefix}/include
|
||||
+libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
|
||||
+includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
|
||||
|
||||
Name: exiv2
|
||||
Description: @PROJECT_DESCRIPTION@
|
||||
--
|
||||
2.17.2
|
||||
|
11
exiv2.spec
11
exiv2.spec
@ -2,7 +2,7 @@
|
||||
Summary: Exif and Iptc metadata manipulation library
|
||||
Name: exiv2
|
||||
Version: 0.27.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
|
||||
License: GPLv2+
|
||||
URL: http://www.exiv2.org/
|
||||
@ -18,6 +18,7 @@ Patch66: 0066-cmake-Use-correct-installation-dir-for-generated-doc.patch
|
||||
Patch67: 0067-cmake-Use-correct-installation-dir-for-cmake-config-.patch
|
||||
Patch68: 0068-xmpsdk-Build-with-DBanAllEntityUsage-1.patch
|
||||
Patch69: 0069-xmpsdk-Fix-compile-warnings-in-ExpatAdapter.cpp.patch
|
||||
Patch79: 0079-Fixes-in-.pc-file-for-being-compatible-with-more-dis.patch
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: expat-devel
|
||||
@ -73,9 +74,6 @@ BuildArch: noarch
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version}-Source -p1
|
||||
|
||||
# FIX exiv2.pc libdir definiton to not hardcode prefix/lib
|
||||
# FIXME upstream! -- rex
|
||||
sed -i -e "s|^libdir=\${prefix}/lib$|libdir=\${prefix}/%{_lib}|g" cmake/exiv2.pc.in
|
||||
|
||||
%build
|
||||
|
||||
@ -100,7 +98,7 @@ rm -fv %{buildroot}%{_libdir}/libexiv2.la
|
||||
|
||||
|
||||
%check
|
||||
export PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig
|
||||
export PKG_CONFIG_PATH="%{buildroot}%{_libdir}/pkgconfig${PKG_CONFIG_PATH:+:}${PKG_CONFIG_PATH}"
|
||||
test "$(pkg-config --modversion exiv2)" = "%{version}"
|
||||
test "$(pkg-config --variable=libdir exiv2)" = "%{_libdir}"
|
||||
test -x %{buildroot}%{_libdir}/libexiv2.so
|
||||
@ -133,6 +131,9 @@ test -x %{buildroot}%{_libdir}/libexiv2.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jan 30 2019 Rex Dieter <rdieter@fedoraproject.org> - 0.27.0-2
|
||||
- pull in upstream fix for pkgconfig exiv2.pc
|
||||
|
||||
* Thu Jan 10 2019 Rex Dieter <rdieter@fedoraproject.org> - 0.27.0-1
|
||||
- exiv2-0.27.0 (#1665246)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user