From 2faff50bfc06b2d5aec3ca3e9c70e64c956356de Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Sat, 16 Jul 2022 15:45:35 +0800 Subject: [PATCH] Add doc sub package --- exiv2.spec | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/exiv2.spec b/exiv2.spec index 06966e5..b916694 100644 --- a/exiv2.spec +++ b/exiv2.spec @@ -1,9 +1,9 @@ - +%define anolis_release .0.1 Summary: Exif and Iptc metadata manipulation library Name: exiv2 Version: 0.27.5 %global internal_ver %{version} -Release: 2%{?dist} +Release: 2%{anolis_release}%{?dist} License: GPLv2+ URL: http://www.exiv2.org/ @@ -27,6 +27,9 @@ BuildRequires: doxygen graphviz libxslt Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: glibc +Provides: /usr/bin/exiv2 + %description A command line utility to access image metadata, allowing one to: * print the Exif metadata of Jpeg images as summary info, interpreted values, @@ -39,6 +42,15 @@ A command line utility to access image metadata, allowing one to: * extract, insert and delete Exif metadata (including thumbnails), Iptc metadata and Jpeg comments +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + + +%description doc +Doc pages for %{name}. + %package devel Summary: Header files, libraries and development documentation for %{name} Requires: %{name}-libs%{?_isa} = %{version}-%{release} @@ -93,7 +105,6 @@ test -x %{buildroot}%{_libdir}/libexiv2.so %files -f exiv2.lang %license COPYING -%doc doc/ChangeLog # README is mostly installation instructions #doc README.md %{_bindir}/exiv2 @@ -101,6 +112,9 @@ test -x %{buildroot}%{_libdir}/libexiv2.so %ldconfig_scriptlets libs +%files doc +%doc doc/ChangeLog + %files libs %{_libdir}/libexiv2.so.27* %{_libdir}/libexiv2.so.%{internal_ver} @@ -119,6 +133,9 @@ test -x %{buildroot}%{_libdir}/libexiv2.so %changelog +* Sat Jul 16 2022 mgb01105731 - 0.27.5-2.0.1 +- Add doc sub package + * Mon Nov 15 2021 Jan Grulich - 0.27.5-2 - Remove RPATH Resolves: bz#2018422 -- Gitee