f2edba
%global commit e23c21380f467f1f1c9dc397e0a08405fb4afa7a
f2edba
%global shortcommit %%(c=%{commit}; echo ${c:0:7})
f2edba
%global date 20211007
f2edba
f2edba
Summary:	Library for easy parsing of XMP metadata
f2edba
Name:		exempi
f2edba
Version:	2.6.0
f2edba
Release:	0.2.%{date}git%{shortcommit}%{?dist}
f2edba
License:	BSD
f2edba
URL:		http://libopenraw.freedesktop.org/wiki/Exempi
f2edba
Source0:	https://gitlab.freedesktop.org/libopenraw/%{name}/-/archive/%{commit}/%{name}-%{commit}.tar.bz2
f2edba
Patch0:		exempi-e23c213-typeinfos.patch
f2edba
BuildRequires:	gcc-c++
f2edba
BuildRequires:	boost-devel expat-devel zlib-devel pkgconfig
f2edba
# Work around for aarch64 support (https://bugzilla.redhat.com/show_bug.cgi?id=925327)
f2edba
BuildRequires:	autoconf automake libtool
f2edba
BuildRequires: make
f2edba
Provides:	bundled(md5-polstra)
f2edba
f2edba
%description
f2edba
Exempi provides a library for easy parsing of XMP metadata. It is a port of 
f2edba
Adobe XMP SDK to work on UNIX and to be build with GNU automake.
f2edba
It includes XMPCore and XMPFiles.
f2edba
f2edba
%package devel
f2edba
Summary:	Headers for developing programs that will use %{name}
f2edba
Requires:	%{name} = %{version}-%{release}
f2edba
Requires:	pkgconfig
f2edba
f2edba
%description devel
f2edba
This package contains the libraries and header files needed for
f2edba
developing with exempi.
f2edba
f2edba
%prep
f2edba
%autosetup -p1 -n %{name}-%{commit}
f2edba
f2edba
%build
f2edba
libtoolize -vi
f2edba
NOCONFIGURE=1 ./autogen.sh
f2edba
# BanEntityUsage needed for #888765
f2edba
%configure CPPFLAGS="-I%{_includedir} -fno-strict-aliasing -DBanAllEntityUsage=1"
f2edba
f2edba
# Disable rpath
f2edba
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
f2edba
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
f2edba
f2edba
%make_build
f2edba
f2edba
%check
f2edba
%ifarch s390x
f2edba
# testcore test fails on big endian arches since exempi 2.5.2:
f2edba
# https://gitlab.freedesktop.org/libopenraw/exempi/-/issues/23
f2edba
make check || [ "$(grep '^FAIL:' exempi/test-suite.log)" = "FAIL: tests/testcore" ]
f2edba
%else
f2edba
make check
f2edba
%endif
f2edba
f2edba
%install
f2edba
%make_install
f2edba
f2edba
rm -rf %{buildroot}%{_libdir}/*.la
f2edba
rm -rf %{buildroot}%{_libdir}/*.a
f2edba
f2edba
%files
f2edba
%doc AUTHORS ChangeLog COPYING README
f2edba
%{_bindir}/exempi
f2edba
%{_libdir}/libexempi.so.8*
f2edba
%{_mandir}/man1/exempi.1*
f2edba
f2edba
%files devel
f2edba
%{_includedir}/exempi-2.0/
f2edba
%{_libdir}/libexempi.so
f2edba
%{_libdir}/pkgconfig/*.pc
f2edba
f2edba
%changelog
f2edba
* Wed Nov 03 2021 Nikola Forró <nforro@redhat.com> - 2.6.0-0.2.20211007gite23c213
f2edba
- Add modified upstream test suite as a gating test
f2edba
  Related #1989405
f2edba
f2edba
* Wed Oct 20 2021 Nikola Forró <nforro@redhat.com> - 2.6.0-0.1.20211007gite23c213
f2edba
- Update to (unreleased) version 2.6.0 to resolve licensing issues
f2edba
  Resolves #1989405
f2edba
f2edba
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.5.1-8
f2edba
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
f2edba
  Related: rhbz#1991688
f2edba
f2edba
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 2.5.1-7
f2edba
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
f2edba
f2edba
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-6
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f2edba
f2edba
* Tue Jul 28 2020 Jeff Law <law@redhat.com> - 2.5.1-5
f2edba
- Force C++14 as this code is not C++17 ready
f2edba
f2edba
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-4
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f2edba
f2edba
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 2.5.1-3
f2edba
- Use make macros
f2edba
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
f2edba
f2edba
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-2
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f2edba
f2edba
* Fri Aug 30 2019 Nikola Forró <nforro@redhat.com> - 2.5.1-1
f2edba
- Update to version 2.5.1
f2edba
  Resolves #1747391
f2edba
f2edba
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.5-7
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f2edba
f2edba
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.5-6
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f2edba
f2edba
* Tue Oct  9 2018 Owen Taylor <otaylor@redhat.com> - 2.4.5-5
f2edba
- Set NOCONFIGURE when running autogen.sh to avoid running configure twice
f2edba
f2edba
* Wed Sep 26 2018 Nikola Forró <nforro@redhat.com> - 2.4.5-4
f2edba
- Fix CVE-2018-12648
f2edba
  Resolves #1594643
f2edba
f2edba
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.5-3
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f2edba
f2edba
* Thu Jun 28 2018 Nikola Forró <nforro@redhat.com> - 2.4.5-2
f2edba
- Remove ldconfig from scriptlets
f2edba
f2edba
* Tue Mar 13 2018 Nikola Forró <nforro@redhat.com> - 2.4.5-1
f2edba
- Update to version 2.4.5
f2edba
  Resolves #1553140
f2edba
f2edba
* Tue Feb 20 2018 Nikola Forró <nforro@redhat.com> - 2.4.4-2
f2edba
- Add missing gcc-c++ build dependency
f2edba
f2edba
* Tue Feb 06 2018 Nikola Forró <nforro@redhat.com> - 2.4.4-1
f2edba
- Update to version 2.4.4
f2edba
  Resolves #1541818
f2edba
f2edba
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-7
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f2edba
f2edba
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-6
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f2edba
f2edba
* Mon Jul 03 2017 Jonathan Wakely <jwakely@redhat.com> - 2.4.2-5
f2edba
- Rebuilt for Boost 1.64
f2edba
f2edba
* Thu Jun 1 2017 Owen Taylor <otaylor@redhat.com> - 2.4.2-4
f2edba
- Make manpage installation agnostic of compression
f2edba
  https://fedoraproject.org/wiki/Packaging:Guidelines#Manpages
f2edba
f2edba
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.2-3
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
f2edba
f2edba
* Mon Feb 06 2017 Kalev Lember <klember@redhat.com> - 2.4.2-2
f2edba
- Rebuilt for Boost 1.63
f2edba
f2edba
* Mon Jan 30 2017 Nikola Forró <nforro@redhat.com> - 2.4.2-1
f2edba
- Update to version 2.4.2
f2edba
  Resolves #1417497
f2edba
f2edba
* Fri Jan 27 2017 Jonathan Wakely <jwakely@redhat.com> - 2.4.1-3
f2edba
- Rebuilt for Boost 1.63
f2edba
f2edba
* Fri Jan 27 2017 Jonathan Wakely <jwakely@redhat.com> - 2.4.1-2
f2edba
- Rebuilt for Boost 1.63
f2edba
f2edba
* Tue Jan 24 2017 Nikola Forró <nforro@redhat.com> - 2.4.1-1
f2edba
- Update to version 2.4.1
f2edba
  Resolves #1415672
f2edba
f2edba
* Mon Jan 09 2017 Nikola Forró <nforro@redhat.com> - 2.4.0-1
f2edba
- Update to version 2.4.0
f2edba
  Resolves #1411059
f2edba
f2edba
* Thu Mar 17 2016 Nikola Forró <nforro@redhat.com> - 2.3.0-1
f2edba
- Update to version 2.3.0
f2edba
  Resolves #1318279
f2edba
f2edba
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-15
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f2edba
f2edba
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 2.2.1-14
f2edba
- Rebuilt for Boost 1.60
f2edba
f2edba
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 2.2.1-13
f2edba
- Rebuilt for Boost 1.59
f2edba
f2edba
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-12
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
f2edba
f2edba
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 2.2.1-11
f2edba
- rebuild for Boost 1.58
f2edba
f2edba
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-10
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f2edba
f2edba
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.2.1-9
f2edba
- Rebuilt for GCC 5 C++11 ABI change
f2edba
f2edba
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 2.2.1-8
f2edba
- Rebuild for boost 1.57.0
f2edba
f2edba
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-7
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f2edba
f2edba
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-6
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f2edba
f2edba
* Thu May 22 2014 Petr Machata <pmachata@redhat.com> - 2.2.1-5
f2edba
- Rebuild for boost 1.55.0
f2edba
f2edba
* Fri Jan 10 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.1-4
f2edba
- Run libtoolize before autogen.sh
f2edba
- Resolves: rhbz#1051186
f2edba
f2edba
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-3
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f2edba
f2edba
* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 2.2.1-2
f2edba
- Rebuild for boost 1.54.0
f2edba
f2edba
* Mon Jul 22 2013 Deji Akingunola <dakingun@gmail.com> - 2.2.1-1
f2edba
- Update to version 2.2.1
f2edba
f2edba
* Wed Jan 30 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2.0-6
f2edba
- Get rid of unnecessary LDFLAGS definition overwriting RPM flags
f2edba
f2edba
* Wed Jan 02 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2.0-5
f2edba
- Make sure we respect RPM_OPT_FLAGS and simplify configure (#889554)
f2edba
f2edba
* Wed Dec 19 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2.0-4
f2edba
- Add BanAllEntityUsage into macro definitions (#888765)
f2edba
f2edba
* Thu Aug 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.0-3
f2edba
- Add bundled(md5-polstra) provides
f2edba
- Update to current guidelines
f2edba
f2edba
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-2
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f2edba
f2edba
* Wed Feb 22 2012 Deji Akingunola <dakingun@gmail.com> - 2.2.0-1
f2edba
- Update to version 2.2.0
f2edba
f2edba
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-3
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f2edba
f2edba
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f2edba
f2edba
* Mon May  3 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.1.1-1
f2edba
- Update to 2.1.1
f2edba
- Add testsuite execution
f2edba
- Removed build patch for gcc-4.4 (fixed in upstream)
f2edba
f2edba
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-4
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f2edba
f2edba
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-3
f2edba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f2edba
f2edba
* Wed Feb 04 2009 Deji Akingunola <dakingun@gmail.com> - 2.1.0-2
f2edba
- Add patch to build with gcc-4.4
f2edba
f2edba
* Tue Jan 06 2009 Deji Akingunola <dakingun@gmail.com> - 2.1.0-1
f2edba
- Update to 2.1.0
f2edba
    
f2edba
* Sat May 17 2008 Deji Akingunola <dakingun@gmail.com> - 2.0.1-1
f2edba
- Update to 2.0.1
f2edba
f2edba
* Wed Apr 02 2008 Deji Akingunola <dakingun@gmail.com> - 2.0.0-1
f2edba
- Update to 2.0.0
f2edba
f2edba
* Fri Feb 08 2008 Deji Akingunola <dakingun@gmail.com> - 1.99.9-1
f2edba
- Update to 1.99.9
f2edba
f2edba
* Sun Jan 13 2008 Deji Akingunola <dakingun@gmail.com> - 1.99.7-1
f2edba
- Update to 1.99.7
f2edba
f2edba
* Mon Dec 03 2007 Deji Akingunola <dakingun@gmail.com> - 1.99.5-1
f2edba
- Update to 1.99.5
f2edba
f2edba
* Wed Sep 05 2007 Deji Akingunola <dakingun@gmail.com> - 1.99.4-2
f2edba
- Rebuild for expat 2.0
f2edba
f2edba
* Wed Aug 22 2007 Deji Akingunola <dakingun@gmail.com> - 1.99.4-1
f2edba
- Update tp 1.99.4
f2edba
f2edba
* Tue Jul 10 2007 Deji Akingunola <dakingun@gmail.com> - 1.99.3-1
f2edba
- Initial packaging for Fedora