diff --git a/zchunk.spec b/zchunk.spec index 3c876698be8e310ff42909f6022737235c96ad5b..edd3f9025a3643f6504f129b0f3260992b4bcd9a 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