From f0ab6f14443e5ed2861150297d6a5e67d7e77977 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Wed, 2 Nov 2022 13:42:44 +0800 Subject: [PATCH] optimise spec file & add doc package --- zchunk.spec | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/zchunk.spec b/zchunk.spec index 3c87669..edd3f90 100644 --- a/zchunk.spec +++ b/zchunk.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 Name: zchunk Version: 1.2.1 Release: %{anolis_release}%{?dist} @@ -21,6 +21,14 @@ new version of the file, and also makes zchunk files efficient over rsync. zchunk files are protected with strong checksums to verify that the file you downloaded is in fact the file you wanted. +%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: Zchunk library @@ -61,22 +69,30 @@ rm -rf src/lib/hash/sha* mkdir -p %{buildroot}%{_libexecdir} install contrib/gen_xml_dictionary %{buildroot}%{_libexecdir}/zck_gen_xml_dictionary +%generate_compatibility_deps + %check %meson_test %ldconfig_scriptlets libs %files -%doc README.md contrib %{_bindir}/zck* %{_bindir}/unzck +%{abidir}/zck*-option.list +%{abidir}/unzck-option.list %{_libexecdir}/zck_gen_xml_dictionary %{_mandir}/man1/*.gz +%files doc +%doc README.md contrib + %files libs +%dir %{abidir} %license LICENSE %doc README.md %{_libdir}/libzck.so.* +%{abidir}/libzck.dump %files devel %doc zchunk_format.txt @@ -85,5 +101,8 @@ install contrib/gen_xml_dictionary %{buildroot}%{_libexecdir}/zck_gen_xml_dictio %{_includedir}/zck.h %changelog +* Wed Nov 02 2022 mgb01105731 - 1.2.1-2 +- optimise spec file & add doc package + * Mon Apr 18 2022 Chunmei Xu - 1.2.1-1 - init from upstream -- Gitee