$ git diff --patch-with-stat --summary b3df1d797251be909e1c195f8c7fea4a0ce8bd8f..02517f2275dcb74cf89799c9ae20dfd19eebf97d
.abf.yml | 2 +-
exiv2-no-static-xmp.patch | 15 +++++++++++++++
exiv2.spec | 16 +++++++++-------
3 files changed, 25 insertions(+), 8 deletions(-)
create mode 100644 exiv2-no-static-xmp.patch
diff --git a/.abf.yml b/.abf.yml
index 5a2b124..3c10f96 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,2 +1,2 @@
sources:
- exiv2-0.27.1-Source.tar.gz: e80a4d879a1831a855fc6ef980d3212b1ca8e945
+ exiv2-0.27.2-Source.tar.gz: 1a72065c95e721b1c21df4f2ee64d8338c6acf94
diff --git a/exiv2-no-static-xmp.patch b/exiv2-no-static-xmp.patch
new file mode 100644
index 0000000..e938365
--- /dev/null
+++ b/exiv2-no-static-xmp.patch
@@ -0,0 +1,15 @@
+diff -up exiv2-0.27.2-Source/xmpsdk/CMakeLists.txt.omv~ exiv2-0.27.2-Source/xmpsdk/CMakeLists.txt
+--- exiv2-0.27.2-Source/xmpsdk/CMakeLists.txt.omv~ 2019-11-17 20:30:17.250470280 +0100
++++ exiv2-0.27.2-Source/xmpsdk/CMakeLists.txt 2019-11-17 20:31:11.457617655 +0100
+@@ -56,7 +56,7 @@ if (BUILD_SHARED_LIBS)
+ endif()
+
+ # 1119 Install libxmp.a for use by third party applications (Thanks, Emmanuel)
+-install(TARGETS exiv2-xmp EXPORT exiv2Config
+- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+-)
++#install(TARGETS exiv2-xmp EXPORT exiv2Config
++# LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++# ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
++#)
diff --git a/exiv2.spec b/exiv2.spec
index deae96c..ee7359a 100644
--- a/exiv2.spec
+++ b/exiv2.spec
@@ -4,12 +4,13 @@
Summary: Command line tool to access EXIF data in image files
Name: exiv2
-Version: 0.27.1
-Release: 1
+Version: 0.27.2
+Release: 2
License: GPLv2+
Group: Graphics
Url: http://www.exiv2.org/
Source0: http://www.exiv2.org/builds/%{name}-%{version}-Source.tar.gz
+Patch0: exiv2-no-static-xmp.patch
BuildRequires: doxygen
BuildRequires: graphviz
@@ -18,7 +19,6 @@ BuildRequires: xsltproc
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(libcurl)
-BuildRequires: pkgconfig(libssh)
BuildRequires: gettext-devel
BuildRequires: cmake ninja
@@ -90,11 +90,12 @@ Exiv2 library documentation.
%autosetup -p1 -n %{name}-%{version}-Source
%build
+# EXIV2_ENABLE_SSH is deprecated and requires the old unsave libssh v1
%cmake \
-DEXIV2_BUILD_DOC:BOOL=ON \
-DEXIV2_BUILD_PO:BOOL=ON \
-DEXIV2_ENABLE_CURL:BOOL=ON \
- -DEXIV2_ENABLE_SSH:BOOL=ON \
+ -DEXIV2_ENABLE_SSH:BOOL=OFF \
-DEXIV2_ENABLE_VIDEO:BOOL=ON \
-DEXIV2_ENABLE_WEBREADY:BOOL=ON \
-DEXIV2_ENABLE_XMP:BOOL=ON \
@@ -118,9 +119,10 @@ rm -f \
rm -f \
%{buildroot}%{_libdir}/libexiv2-xmp.a
-%find_lang %{name}
+#find_lang %{name}
-%files -f %{name}.lang
+%files
+# -f %{name}.lang
%{_bindir}/exiv2
%{_bindir}/addmoddel
%{_bindir}/exifcomment
@@ -151,7 +153,7 @@ rm -f \
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/*
%{_includedir}/*
-%{_libdir}/exiv2/cmake
+%{_libdir}/cmake/exiv2
%files doc
%doc %{_docdir}/exiv2