169 lines
4.0 KiB
RPMSpec
169 lines
4.0 KiB
RPMSpec
Name: gzip
|
|
Version: 1.12
|
|
Release: 3
|
|
Summary: A data compression utility
|
|
|
|
License: GPLv3
|
|
URL: https://www.gnu.org/software/gzip
|
|
Source0: https://ftp.gnu.org/gnu/gzip/gzip-%{version}.tar.xz
|
|
Source1: colorzgrep.csh
|
|
Source2: colorzgrep.sh
|
|
|
|
Patch6000: backport-gzip-detect-invalid-input.patch
|
|
Patch6001: backport-gzip-test-invalid-input-bug.patch
|
|
|
|
Patch9000: fix-verbose-disable.patch
|
|
Patch9001: performance-neoncrc32-and-prfm.patch
|
|
|
|
BuildRequires: gcc texinfo less autoconf automake
|
|
Requires: coreutils
|
|
Conflicts: filesystem < 3
|
|
Provides: /bin/gunzip
|
|
Provides: /bin/gzip
|
|
Provides: /bin/zcat
|
|
Provides: bundled(gnulib)
|
|
|
|
%description
|
|
gzip is a single-file/stream lossless data compression
|
|
utility, where the resulting compressed file generally
|
|
has the suffix .gz.
|
|
|
|
%package_help
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
%build
|
|
%ifarch aarch64
|
|
export CFLAGS="${CFLAGS:-%optflags} -march=armv8-a+crc"
|
|
%endif
|
|
autoreconf
|
|
%configure
|
|
%make_build
|
|
|
|
%install
|
|
rm -rf %RPM_BUILD_ROOT
|
|
%make_install
|
|
# ncompress provides uncompress, may cause conflict.
|
|
rm -f %{buildroot}%{_bindir}/uncompress
|
|
|
|
# config color alias for z*grep
|
|
%global profiledir %{_sysconfdir}/profile.d
|
|
mkdir -p %{buildroot}%{profiledir}
|
|
install -p -m 644 %{SOURCE1} %{buildroot}%{profiledir}
|
|
install -p -m 644 %{SOURCE2} %{buildroot}%{profiledir}
|
|
|
|
%check
|
|
make check
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS ChangeLog README
|
|
%license COPYING
|
|
%{_bindir}/*
|
|
%{profiledir}/*
|
|
%exclude %{_infodir}/dir
|
|
|
|
%files help
|
|
%doc NEWS TODO THANKS
|
|
%{_infodir}/*info*
|
|
%{_mandir}/man1/*
|
|
|
|
%changelog
|
|
* Tue Sep 20 2022 renhongxun <renhongxun@h-partners.com> - 1.12-3
|
|
- config color alias for z*grep
|
|
|
|
* Thu Jul 28 2022 Lv Ying <lvying6@huawei.com> - 1.12-2
|
|
- backport bugfix patch: detect invalid input
|
|
|
|
* Sat Jun 11 2022 YukariChiba <i@0x7f.cc> - 1.12-1
|
|
- Upgrade version.
|
|
|
|
* Tue May 24 2022 loong_C <loong_c@yeah.net> - 1.11-4
|
|
- fix changelog date
|
|
|
|
* Wed Apr 20 2022 shixuantong <shixuantong@h-partners.com> - 1.11-3
|
|
- fix CVE-2022-1271
|
|
|
|
* Fri Apr 01 2022 tianwei<tianwei12@h-partners.com> - 1.11-2
|
|
- backport bugfix patches from upstream and fix build failure in OBS
|
|
|
|
* Tue Dec 28 2021 shangyibin<shangyibin1@huawei.com> - 1.11-1
|
|
- upgrade to version 1.11
|
|
|
|
* Tue Nov 09 2021 tianwei<tianwei12@huawei.com> - 1.10-2
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC: fix testsuite fail
|
|
|
|
* Fri Apr 24 2020 BruceGW <gyl93216@163.com> - 1.10-1
|
|
- update upstream to 1.10
|
|
|
|
* Fri Jan 17 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.9-18
|
|
- Type:performance improve
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:delete useless scripts for grep
|
|
|
|
* Mon Nov 11 2019 liqiang<liqiang64@huawei.com> - 1.9-17
|
|
- Type:performance improve
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:use neon crc32 api and PRFM instruction to improve performance.
|
|
|
|
* Mon Sep 30 2019 shenyangyang<shenyangyang4@huawei.com> - 1.9-16
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:fix the conflict of infodir/dir with libtasn1
|
|
|
|
* Tue Sep 24 2019 shenyangyang<shenyangyang4@huawei.com> - 1.9-15
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:revise help package
|
|
|
|
* Fri Aug 16 2019 openEuler Builteam <buildteam@openeuler.org> - 1.9-14
|
|
- Rewrite spec file
|
|
|
|
* Fri Aug 09 2019 fangyufa<fangyufa1@huawei.com> - 1.9-13
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC: modify info of patch
|
|
|
|
* Thu Aug 08 2019 fangyufa<fangyufa1@huawei.com> - 1.9-12
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC: modify of patch
|
|
|
|
* Wed Jul 31 2019 zhuguodong<zhuguodong7@huawei.com> - 1.9-11
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC: openEuler Debranding
|
|
|
|
* Fri Jun 14 2019 cangyi<cangyi@huawei.com> - 1.9-10
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:fix gzexe unable to (auto)decompress
|
|
|
|
* Fri Mar 15 2019 zhangyujing <zhangyujing1@huawei.com> - 1.9-9
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:gzip fix use of uninitialized memory
|
|
|
|
* Fri Jan 25 2019 Yeqing Peng<pengyeqing@huawei.com> - 1.9-8
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:restart
|
|
- DESC:fix verbose disable
|
|
|
|
* Thu Jul 26 2018 zhuguodong<zhuguodong7@huawei.com> - 1.9-7
|
|
- package init
|
|
|