exempi/exempi.spec
dillon_chen 79677dc84b add CVE patches
(cherry picked from commit d218650a88f4dd4b9fa8a97bbd93d4be0940cba8)
2024-05-28 14:30:40 +08:00

88 lines
2.4 KiB
RPMSpec

Name: exempi
Version: 2.5.2
Release: 4
Summary: Exempi is an implementation of XMP (Adobe's Extensible Metadata Platform)
License: BSD
URL: https://wiki.freedesktop.org/libopenraw/Exempi/
Source0: http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2
Patch6000: 202107.patch
Patch6001: 202108-1.patch
Patch6002: 202108-2.patch
BuildRequires: gcc-c++ autoconf automake libtool
BuildRequires: boost-devel expat-devel zlib-devel pkgconfig
Provides: bundled(md5-polstra)
%description
Exempi is an implementation of XMP.
Version 2.x is based on Adobe XMP SDK and released under a BSD-style license like Adobe's.
%package devel
Summary: exempi's development files
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
this package provides development files, including headers and libraries.
%package help
Summary: Help information for user
%description help
Help information for user
%prep
%autosetup -n exempi-2.5.2 -p1
%build
libtoolize -vi
./autogen.sh
%configure CPPFLAGS="-I%{_includedir} -fno-strict-aliasing -DBanAllEntityUsage=1"
# 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
%files
%doc AUTHORS ChangeLog COPYING README
%{_libdir}/*.so.*
%{_bindir}/exempi
%files devel
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/exempi-2.0/
%exclude %{_libdir}/*.a
%exclude %{_libdir}/*.la
%files help
%{_mandir}/man1/exempi.1*
%changelog
* Thu Sep 21 2023 dillon chen <dillon.chen@gmail.com> - 2.5.2-4
- CVE-2021-36045, CVE-2021-36046, CVE-2021-36047, CVE-2021-36048,
- CVE-2021-36050, CVE-2021-36051, CVE-2021-36052, CVE-2021-36053,
- CVE-2021-36054, CVE-2021-36055, CVE-2021-36056, CVE-2021-36058,
- CVE-2021-36064, CVE-2021-39847, CVE-2021-40716, CVE-2021-40732,
- CVE-2021-42528, CVE-2021-42529, CVE-2021-42530, CVE-2021-42531,
- CVE-2021-42532
* Mon Apr 18 2022 Wei, Qiang <qiang.wei@suse.com> - 2.5.2-3
- Remove self dependency which is temporary used to resolve compatiable during upgrade.
* Tue Feb 2 2021 wangchen <wangchen137@huawei.com> - 2.5.2-2
- Provide old so files.
* Tue Jan 26 2021 wangchen <wangchen137@huawei.com> - 2.5.2-1
- Update to 2.5.2
* Fri Sep 06 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.4.5-4
- Package init