Resolves: RHEL-45267
This commit is contained in:
Jan Grulich 2024-08-06 09:20:34 +02:00
parent e076481733
commit e8f7d94b04
3 changed files with 79 additions and 54 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@
/exiv2-0.27.5-RC3.tar.gz /exiv2-0.27.5-RC3.tar.gz
/exiv2-0.27.5-Source.tar.gz /exiv2-0.27.5-Source.tar.gz
/exiv2-0.27.6-Source.tar.gz /exiv2-0.27.6-Source.tar.gz
/exiv2-0.28.3.tar.gz

View File

@ -1,34 +1,39 @@
Name: exiv2
Version: 0.28.3
Release: 1%{?dist}
Summary: Exif and Iptc metadata manipulation library
%undefine __cmake_in_source_build # GPL-2.0-or-later: main library
# BSD-3-Clause: xmpsdk/
Summary: Exif and Iptc metadata manipulation library # LicenseRef-Fedora-Public-Domain:
Name: exiv2 # - app/getopt.cpp
Version: 0.27.6 # - src/properties.cpp
%global internal_ver %{version} # - src/tzfile.h
Release: 8%{?dist} # - xmpsdk/include/MD5.h
# - xmpsdk/src/MD5.cpp
License: GPL-2.0-or-later License: GPL-2.0-or-later AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
URL: http://www.exiv2.org/ URL: http://www.exiv2.org/
VCS: https://github.com/Exiv2/exiv2/
%if 0%{?beta:1} %if 0%{?beta:1}
Source0: https://github.com/Exiv2/exiv2/archive/v%{version}-%{beta}/%{name}-%{version}-%{beta}.tar.gz Source: %{vcs}/archive/v%{version}-%{beta}/%{name}-%{version}-%{beta}.tar.gz
%else %else
Source0: http://exiv2.org/builds/%{name}-%{version}-Source.tar.gz Source: %{vcs}/archive/v%{version}/%{name}-%{version}.tar.gz
%endif %endif
## upstream patches BuildRequires: cmake
BuildRequires: gcc-c++
## upstreamable patches BuildRequires: gettext
BuildRequires: pkgconfig
BuildRequires: cmake BuildRequires: pkgconfig(expat)
BuildRequires: expat-devel BuildRequires: pkgconfig(INIReader)
BuildRequires: gcc-c++ BuildRequires: pkgconfig(libbrotlidec)
BuildRequires: gettext BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig
BuildRequires: zlib-devel
# docs # docs
BuildRequires: doxygen graphviz libxslt BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: libxslt
Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: %{name}-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%description %description
A command line utility to access image metadata, allowing one to: A command line utility to access image metadata, allowing one to:
@ -42,87 +47,106 @@ A command line utility to access image metadata, allowing one to:
* extract, insert and delete Exif metadata (including thumbnails), * extract, insert and delete Exif metadata (including thumbnails),
Iptc metadata and Jpeg comments Iptc metadata and Jpeg comments
%package devel
Summary: Header files, libraries and development documentation for %{name} %package devel
Requires: %{name}-libs%{?_isa} = %{version}-%{release} Summary: Header files, libraries and development documentation for %{name}
%description devel Requires: %{name}-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%description devel
%{summary}. %{summary}.
%package libs
Summary: Exif and Iptc metadata manipulation library %package libs
Summary: Exif and Iptc metadata manipulation library
# not strictly required, but convenient and expected # not strictly required, but convenient and expected
%if 0%{?rhel} && 0%{?rhel} <= 7 %if 0%{?rhel} && 0%{?rhel} <= 7
Requires: %{name} = %{version}-%{release} Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%else %else
Recommends: %{name} = %{version}-%{release} Recommends: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%endif %endif
%description libs
%description libs
A C++ library to access image metadata, supporting full read and write access A C++ library to access image metadata, supporting full read and write access
to the Exif and Iptc metadata, Exif MakerNote support, extract and delete to the Exif and Iptc metadata, Exif MakerNote support, extract and delete
methods for Exif thumbnails, classes to access Ifd and so on. methods for Exif thumbnails, classes to access Ifd and so on.
%package doc
Summary: Api documentation for %{name} %package doc
BuildArch: noarch Summary: API documentation for %{name}
%description doc # MIT:
# - clipboard.js
# - cookie.js
# - dynsections.js
# - jquery.js
# - menu.js
# - menudata.js
# - resize.js
# GPL-2.0-only:
# - css and icons from Doxygen
License: MIT AND GPL-2.0-only
BuildArch: noarch
%description doc
%{summary}. %{summary}.
API documentation for %{name}.
%prep %prep
%autosetup -n %{name}-%{version}-%{?beta}%{!?beta:Source} -p1 %autosetup -n %{name}-%{version}%{?beta:-%{beta}} -p1
%build %build
%cmake \ %cmake \
-DCMAKE_INSTALL_DOCDIR="%{_pkgdocdir}" \ -DCMAKE_INSTALL_DOCDIR="%{_pkgdocdir}" \
-DEXIV2_BUILD_DOC:BOOL=ON \ -DEXIV2_BUILD_DOC:BOOL=ON \
-DEXIV2_ENABLE_NLS:BOOL=ON \ -DEXIV2_BUILD_SAMPLES:BOOL=OFF \
-DEXIV2_BUILD_SAMPLES:BOOL=OFF -DEXIV2_ENABLE_NLS:BOOL=ON
%cmake_build %cmake_build
%cmake_build --target doc %cmake_build --target doc
%install %install
%cmake_install %cmake_install
%find_lang exiv2 --with-man %find_lang exiv2 --with-man
%check %check
export PKG_CONFIG_PATH="%{buildroot}%{_libdir}/pkgconfig${PKG_CONFIG_PATH:+:}${PKG_CONFIG_PATH}" export PKG_CONFIG_PATH="%{buildroot}%{_libdir}/pkgconfig${PKG_CONFIG_PATH:+:}${PKG_CONFIG_PATH}"
test "$(pkg-config --modversion exiv2)" = "%{internal_ver}" test "$(pkg-config --modversion exiv2)" = "%{version}"
test "$(pkg-config --variable=libdir exiv2)" = "%{_libdir}" test "$(pkg-config --variable=libdir exiv2)" = "%{_libdir}"
test -x %{buildroot}%{_libdir}/libexiv2.so test -x %{buildroot}%{_libdir}/libexiv2.so
%files -f exiv2.lang %files -f exiv2.lang
%license COPYING %license COPYING doc/COPYING-XMPSDK
%doc doc/ChangeLog %doc doc/ChangeLog exiv2.md SECURITY.md
# README is mostly installation instructions
#doc README.md
%{_bindir}/exiv2 %{_bindir}/exiv2
%{_mandir}/man1/exiv2*.1* %{_mandir}/man1/exiv2*.1*
%ldconfig_scriptlets libs
%files libs %files libs
%{_libdir}/libexiv2.so.27* %{_libdir}/libexiv2.so.28*
%{_libdir}/libexiv2.so.%{internal_ver} %{_libdir}/libexiv2.so.%{version}
%files devel %files devel
%{_includedir}/exiv2/ %{_includedir}/exiv2/
%{_libdir}/cmake/exiv2/
%{_libdir}/libexiv2.so %{_libdir}/libexiv2.so
%{_libdir}/pkgconfig/exiv2.pc %{_libdir}/pkgconfig/exiv2.pc
%{_libdir}/cmake/exiv2/
# todo: -static subpkg? -- rex
%{_libdir}/libexiv2-xmp.a
%files doc %files doc
%{_pkgdocdir}/ %{_pkgdocdir}/
%changelog %changelog
* Tue Aug 06 2024 Jan Grulich <jgrulich@redhat.com> - 0.28.3-1
- 0.28.3
Resolves: RHEL-45267
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.27.6-8 * Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.27.6-8
- Bump release for June 2024 mass rebuild - Bump release for June 2024 mass rebuild

View File

@ -1 +1 @@
SHA512 (exiv2-0.27.6-Source.tar.gz) = 045d7fb391202b53897336094812600680141a292367a9194e9529bccb8ab54465190ea0f0636970114402a38840b33b2fcf2edf7b6c616f3e585fa295a887a4 SHA512 (exiv2-0.28.3.tar.gz) = c8338a118feefa104d73932890c732247c884ab9ce1d170c43a22ab5884517a0e2a7fd1febde7705b8290fbbbc29e64738610404816e4db2b56a70fc444ca049