From fc16014f481df412ad8715b1869ecdf3247254ea Mon Sep 17 00:00:00 2001 From: Weisson Date: Fri, 15 Jul 2022 17:35:20 +0800 Subject: [PATCH] spec: add doc sub package Signed-off-by: Weisson --- jasper.spec | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/jasper.spec b/jasper.spec index 5b1b653..d279cd2 100644 --- a/jasper.spec +++ b/jasper.spec @@ -1,4 +1,4 @@ - +%define anolis_release .0.1 # NOTE: packages that can use jasper: # ImageMagick # netpbm @@ -6,7 +6,7 @@ Summary: Implementation of the JPEG-2000 standard, Part 1 Name: jasper Version: 2.0.14 -Release: 5%{?dist} +Release: 5%{anolis_release}%{?dist} License: JasPer URL: http://www.ece.uvic.ca/~frodo/jasper/ @@ -32,6 +32,7 @@ BuildRequires: pkgconfig doxygen BuildRequires: mesa-libGL-devel BuildRequires: gcc +Requires: glibc Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description @@ -61,6 +62,13 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description utils %{summary}, including jiv and tmrdemo. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. %prep %setup -q -n %{name}-%{version} @@ -128,21 +136,25 @@ popd %{_docdir}/JasPer/* %files devel -%doc doc/* %{_includedir}/jasper/ %{_libdir}/libjasper.so %{_libdir}/pkgconfig/jasper.pc %files libs -%doc COPYRIGHT LICENSE README %{_libdir}/libjasper.so* %files utils %{_bindir}/jiv %{_mandir}/man1/jiv.1* +%files doc +%doc doc/* +%doc COPYRIGHT LICENSE README %changelog +* Fri Jul 15 2022 Weisson - 2.0.14-5.0.1 +- Add doc sub package + * Tue Jun 01 2021 Josef Ridky - 2.0.14-5 - Fix CVE-2021-26927 (#1933860) - Fix CVE-2021-26926 (#1922316) -- Gitee