tar/tar.spec

116 lines
3.0 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:18:06 -04:00
Name: tar
2021-11-13 14:58:03 +08:00
Version: 1.34
Release: 4
2019-09-30 11:18:06 -04:00
Epoch: 2
Summary: An organized and systematic method of controlling a large amount of data
License: GPLv3+
URL: http://www.gnu.org/software/tar/
Source0: https://ftp.gnu.org/gnu/tar/tar-%{version}.tar.xz
Source1: https://ftp.gnu.org/gnu/tar/tar-%{version}.tar.xz.sig
BuildRequires: autoconf automake texinfo gettext libacl-devel attr acl policycoreutils
2021-06-10 17:06:02 +08:00
BuildRequires: gcc
2019-09-30 11:18:06 -04:00
Provides: bundled(gnulib) /bin/tar /bin/gtar
Patch6000: backport-CVE-2022-48303.patch
2019-09-30 11:18:06 -04:00
Patch0001: tar-1.28-loneZeroWarning.patch
Patch0002: tar-1.28-vfatTruncate.patch
Patch0003: tar-1.29-wildcards.patch
Patch0004: tar-1.28-atime-rofs.patch
Patch0005: tar-1.28-document-exclude-mistakes.patch
Patch0006: tar-Add-sw64-architecture.patch
2019-09-30 11:18:06 -04:00
%description
GNU Tar provides the ability to create tar archives, as well as various other
kinds of manipulation. For example, you can use Tar on previously created archives
to extract files, to store additional files, or to update or list files which were
already stored.
%package help
Summary: help document for tar
Requires: %{name} = %{epoch}:%{version}-%{release}
BuildArch: noarch
%description help
Help document for tar.
%prep
%autosetup -n tar-%{version} -p1
autoreconf -v
%build
2020-02-18 16:45:42 +08:00
export FORCE_UNSAFE_CONFIGURE=1
2019-09-30 11:18:06 -04:00
%configure --without-selinux --with-lzma="xz --format=lzma" \
DEFAULT_RMT_DIR=%{_sysconfdir} RSH=/usr/bin/ssh
%make_build
%install
%make_install
ln -s tar %{buildroot}%{_bindir}/gtar
ln -s tar.1.gz %{buildroot}%{_mandir}/man1/gtar.1
rm -f %{buildroot}%{_infodir}/dir
rm -f %{buildroot}%{_sysconfdir}/rmt
rm -f %{buildroot}%{_mandir}/man8/rmt.8*
%find_lang tar
%check
2020-02-18 16:45:42 +08:00
make check
2019-09-30 11:18:06 -04:00
%pre
%preun
%post
%postun
%files -f tar.lang
%doc AUTHORS README THANKS NEWS ChangeLog COPYING
%{_bindir}/*tar
%files help
%{_mandir}/man1/*tar.1*
%{_infodir}/tar.info*
%changelog
* Wed Feb 08 2023 wangjiang <wangjiang37@h-partners.com> 2:1.34-4
- fix CVE-2022-48303
* Fri Nov 11 2022 wuzx<wuzx1226@qq.com> - 2:1.34-3
- Add sw64 architecture
* Thu Oct 27 2022 dongyuzhen <dongyuzhen@h-partners.com> - 2:1.34-2
- Rebuild for next release
* Sat Nov 13 2021 shixuantong <shixuantong> - 2:1.34-1
2021-11-13 14:58:03 +08:00
- update version to 1.34
* Thu Jun 10 2021 shixuantong <shixuantong> - 2:1.32-3
2021-06-10 17:06:02 +08:00
- add gcc to BuildRequires
* Wed Apr 14 2021 shixuantong <shixuantong> - 2:1.32-2
2021-04-14 10:57:57 +08:00
- fix CVE-2021-20193
* Mon Jul 27 2020 shixuantong <shixuantong> - 2:1.32-1
2020-07-27 15:25:15 +08:00
- update to 1.32-1
2020-02-18 16:45:42 +08:00
* Tue Feb 18 2020 openEuler Buildteam <buildteam@openeuler.org> - 2:1.30-11
- Enable check
2020-01-22 19:47:41 +08:00
* Wed Jan 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 2:1.30-10
- set FORCE_UNSAFE_CONFIGURE to 1
2020-01-22 12:19:07 +08:00
* Wed Jan 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 2:1.30-9
- cancel make check
2019-12-25 16:08:38 +08:00
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 2:1.30-8
- Fix CVE-2018-20482
2019-09-30 11:18:06 -04:00
2019-12-25 16:08:38 +08:00
* Tue Sep 10 2019 Huiming Xie <xiehuiming@huawei.com> - 2:1.30-7
- Package init