diff --git a/exempi-2.6.1.tar.gz b/exempi-2.6.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e1249bf9401d285c7c6728a8aac7e6f3b4aa6ee9 Binary files /dev/null and b/exempi-2.6.1.tar.gz differ diff --git a/exempi.spec b/exempi.spec new file mode 100644 index 0000000000000000000000000000000000000000..cab1fa1888493bd10aad99d2ad10458d64077e8e --- /dev/null +++ b/exempi.spec @@ -0,0 +1,65 @@ +%define anolis_release 1 +Summary: Library for easy parsing of XMP metadata +Name: exempi +Version: 2.6.1 +Release: %{anolis_release}%{?dist} +License: BSD +URL: http://libopenraw.freedesktop.org/wiki/Exempi +Source0: http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.gz +BuildRequires: gcc-c++ +BuildRequires: boost-devel expat-devel zlib-devel pkgconfig +BuildRequires: autoconf automake libtool +BuildRequires: make +Provides: bundled(md5-polstra) + +%description +Exempi provides a library for easy parsing of XMP metadata. It is a port of +Adobe XMP SDK to work on UNIX and to be build with GNU automake. +It includes XMPCore and XMPFiles. + +%package devel +Summary: Headers for developing programs that will use %{name} +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +This package contains the libraries and header files needed for +developing with exempi. + +%prep +%setup -q + +%build +libtoolize -vi +NOCONFIGURE=1 ./autogen.sh +%configure CPPFLAGS="-I%{_includedir} -fno-strict-aliasing -DBanAllEntityUsage=1 -std=c++14" + +# Disable rpath +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + +%make_build + +%check +make check + +%install +%make_install + +rm -rf %{buildroot}%{_libdir}/*.la +rm -rf %{buildroot}%{_libdir}/*.a + +%files +%doc AUTHORS ChangeLog COPYING +%{_bindir}/exempi +%{_libdir}/libexempi.so.8* +%{_mandir}/man1/exempi.1* + +%files devel +%{_includedir}/exempi-2.0/ +%{_libdir}/libexempi.so +%{_libdir}/pkgconfig/*.pc + +%changelog +* Tue Apr 12 2022 Zhongling He 2.6.1-1 +- Init package from upstream v2.6.1