zip/zip.spec

86 lines
2.6 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 11:20:45 -04:00
Name: zip
Version: 3.0
Release: 32
2019-09-30 11:20:45 -04:00
Summary: A compression and file packaging/archive utility
2019-12-13 16:17:13 +08:00
License: Info-ZIP
2019-09-30 11:20:45 -04:00
URL: http://www.info-zip.org/Zip.html
Source0: http://downloads.sourceforge.net/infozip/zip30.tar.gz
# Patch1 to patch6 get from fedora
Patch1: zip-3.0-exec-shield.patch
Patch2: zip-3.0-currdir.patch
Patch3: zip-3.0-time.patch
Patch4: man.patch
Patch5: zip-3.0-format-security.patch
Patch6: zipnote.patch
Patch7: zip-fix-cc.patch
Patch8: zip-fix-type-conflict.patch
2019-09-30 11:20:45 -04:00
Patch6000: CVE-2018-13410.patch
Patch9000: openEuler-Cleanup-residual-temporary-file.patch
2020-02-14 14:23:17 +08:00
BuildRequires: bzip2-devel gcc
2019-09-30 11:20:45 -04:00
%description
The zip program is a compression and file packaging utility. Zip has one
compression method and can also store files without compression.
Zip automatically chooses the better of the two for each file. Compression
ratios of 2:1 to 3:1 are common for text files.
%package help
Summary: Documents and manuals related to zip
BuildArch: noarch
%description help
This package contains the documents and manuals related to zip.
%prep
%autosetup -n zip30 -p1
%build
%make_build -f unix/Makefile prefix=%{_prefix} "CFLAGS_NOOPT=-I. -DUNIX $RPM_OPT_FLAGS" generic
2019-09-30 11:20:45 -04:00
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
%make_install -f unix/Makefile prefix=%{buildroot}%{_prefix} MANDIR=%{buildroot}%{_mandir}/man1
%files
%defattr(-,root,root)
%doc README CHANGES TODO WHATSNEW WHERE README.CR
%doc proginfo/algorith.txt
%license LICENSE
%{_bindir}/zip*
%files help
%{_mandir}/man1/zip*
%changelog
* Sun Mar 3 2024 lijinzhe <jinzhe.oerv@isrc.iscas.ac.cn> - 3.0-32
- fix clang issue when compile zip, ignore error Wimplicit-function-declaration
* Fri Nov 10 2023 luofeng <luofeng13@huawei.com> - 3.0-31
- support clang build
2022-05-27 15:35:35 +08:00
* Fri May 27 2022 konglidong <konglidong@uniontech.com> - 3.0-30
- modify bad date in %changelog
* Tue Aug 03 2021 shixuantong <shixuantong@huawei.com> - 3.0-29
- remove unnecessary installation dependencies
2021-06-21 10:48:17 +08:00
* Mon Jun 21 2021 shixuantong <shixuantong@huawei.com> - 3.0-28
- revert zip-3.0-crc-builtin.patch
2022-05-27 15:35:35 +08:00
* Sun May 9 2021 hanzhelii <182212254@bjtu.edu.cn> - 3.0-27
- Add zip-3.0-crc-builtin.patch
2022-05-27 15:35:35 +08:00
* Tue Dec 8 2020 wuchaochao <wuchaochao4@huawei.com> - 3.0-26
- Add openEuler-Cleanup-residual-temporary-file.patch
2020-02-14 14:23:17 +08:00
* Fri Feb 14 2020 chengquan <chengquan3@huawei.com> - 3.0-25
- Add gcc BuildRequire
2019-09-30 11:20:45 -04:00
* Tue Sep 3 2019 dongjian <dongjian13@huawei.com> - 3.0-24
- Rebuild and modify the description