diff --git a/zip.spec b/zip.spec index 922903e2f6870c3f1c8eeef77a9e0349fe984fed..adb741e6b21a490e6750938573d3bd43971c80b1 100644 --- a/zip.spec +++ b/zip.spec @@ -1,4 +1,5 @@ -%define anolis_release 1 +%define anolis_release 2 +%define abidir %{_prefix}/lib/compatibility/%{name} Name: zip Version: 3.0 Release: %{anolis_release}%{?dist} @@ -11,6 +12,7 @@ Patch1: 0001-zip-3.0-format-security.patch BuildRequires: make BuildRequires: bzip2-devel, gcc +BuildRequires: abi-dumper Requires: unzip %description @@ -22,6 +24,14 @@ MS-DOS systems). Install the zip package if you need to compress files using the zip program. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %prep %setup -q -n zip30 %patch1 -p1 -b .format-security @@ -36,19 +46,39 @@ mkdir -p $RPM_BULD_ROOT%{_mandir}/man1 %{make_install} -f unix/Makefile prefix=$RPM_BUILD_ROOT%{_prefix} \ MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}/%{_libdir} +mkdir -p %{buildroot}/%{abidir} +pushd %{buildroot}/%{abidir} +for dir in %{_sbindir} %{_bindir} ; do + for f in $(ls %{buildroot}/$dir) ; do + full_name=%{buildroot}/$dir/$f + (file $full_name | grep executable > /dev/null 2>&1 && $full_name --help > $f-option.list > /dev/null 2>&1) || echo "ok" + done +done + %files %license LICENSE -%doc README CHANGES TODO WHATSNEW WHERE README.CR %doc proginfo/algorith.txt +%dir %{abidir} %{_bindir}/zipnote %{_bindir}/zipsplit %{_bindir}/zip %{_bindir}/zipcloak +%{abidir}/zipnote-option.list +%{abidir}/zipsplit-option.list +%{abidir}/zip-option.list +%{abidir}/zipcloak-option.list %{_mandir}/man1/zip.1* %{_mandir}/man1/zipcloak.1* %{_mandir}/man1/zipnote.1* %{_mandir}/man1/zipsplit.1* +%files doc +%doc README CHANGES TODO WHATSNEW WHERE README.CR + %changelog +* Wed Oct 12 2022 mgb01105731 - 3.0-2 +- add api & add doc package + * Thu Apr 21 2022 yuanhui - 3.0-1 - Init zip for anolis os 23