From 621a7f6d4a60738c7dcd33e44d93aceca3803d55 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Fri, 30 Sep 2022 16:16:31 +0800 Subject: [PATCH] add doc package --- lz4.spec | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/lz4.spec b/lz4.spec index d0b900a..6f6c358 100644 --- a/lz4.spec +++ b/lz4.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 # relative to the RPM build directory %global _vpath_srcdir contrib/meson @@ -23,6 +23,14 @@ speed at 400 MB/s per core, scalable with multi-core CPU. It also features an extremely fast decoder, with speed in multiple GB/s per core, typically reaching RAM speed limits on multi-core systems. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %package libs Summary: Libaries for lz4 Obsoletes: %{name} < 1.7.5-3 @@ -32,7 +40,7 @@ This package contains the libaries for lz4. %package devel Summary: Development files for lz4 -Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-libs = %{version}-%{release} %description devel This package contains the header(.h) and library(.so) files required to build @@ -60,7 +68,6 @@ contains static libraries for static linking of applications. %files %license programs/COPYING -%doc NEWS %{_bindir}/lz4 %{_bindir}/lz4c %{_bindir}/lz4cat @@ -70,6 +77,9 @@ contains static libraries for static linking of applications. %{_mandir}/man1/lz4cat.1* %{_mandir}/man1/unlz4.1* +%files doc +%doc NEWS + %files libs %doc lib/LICENSE %{_libdir}/liblz4.so.* @@ -84,6 +94,9 @@ contains static libraries for static linking of applications. %{_libdir}/liblz4.a %changelog +* Fri Sep 30 2022 mgb01105731 - 1.9.3-2 +- add doc package + * Thu Mar 03 2022 Hongwei Qin - 1.9.3-1 - Update to 1.9.3 and switch to Meson - Init for Anolis OS 23 -- Gitee