blob: 7bde4f4ef3d327cbf72d0a17119abb8f19766056 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.22
#
Name: tar
Summary: A GNU file archiving program
Version: 1.17
Release: 4
Epoch: 1
Group: Applications/Archiving
License: GPLv2+
URL: http://www.gnu.org/software/tar/
Source0: ftp://ftp.gnu.org/pub/gnu/tar/tar-%{version}.tar.gz
Source1: tar.1
Source1001: %{name}.manifest
Patch0: tar-1.14-loneZeroWarning.patch
Patch1: tar-1.15.1-vfatTruncate.patch
Patch2: tar-1.17-testsuite.patch
Patch3: tar-1.17-xattrs.patch
Patch4: tar-1.17-wildcards.patch
Patch5: tar-1.17-dot_dot_vuln.patch
Patch6: gcc43.patch
Patch7: tar-1.17-gcc4.patch
Patch8: BMC6647-CVE-2010-0624.patch
Patch9: BMC6661-CVE-2007-4476.patch
BuildRequires: libacl-devel
%description
The GNU tar program saves many files together in one archive and can
restore individual files (or all of the files) from that archive. Tar
can also be used to add supplemental files to an archive and to update
or list files in the archive. Tar includes multivolume support,
automatic archive compression/decompression, the ability to perform
remote archives, and the ability to perform incremental and full
backups.
If you want to use tar for remote backups, you also need to install
the rmt package.
%prep
%setup -q -n %{name}-%{version}
# tar-1.14-loneZeroWarning.patch
%patch0 -p1
# tar-1.15.1-vfatTruncate.patch
%patch1 -p1
# tar-1.17-testsuite.patch
%patch2 -p1
# tar-1.17-xattrs.patch
%patch3 -p1
# tar-1.17-wildcards.patch
%patch4 -p1
# tar-1.17-dot_dot_vuln.patch
%patch5 -p1
# gcc43.patch
%patch6 -p1
# tar-1.17-gcc4.patch
%patch7 -p1
# BMC6647-CVE-2010-0624.patch
%patch8 -p1
# BMC6661-CVE-2007-4476.patch
%patch9 -p1
%build
cp %{SOURCE1001} .
%configure --disable-static \
--bindir=/bin \
--disable-nls
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}%{_mandir}/man1
cp -a %{SOURCE1} %{buildroot}%{_mandir}/man1
rm -rf %{buildroot}%{_prefix}/libexec/rmt
mkdir -p $RPM_BUILD_ROOT%{_datadir}/license
for keyword in LICENSE COPYING COPYRIGHT;
do
for file in `find %{_builddir} -name $keyword`;
do
cat $file >> $RPM_BUILD_ROOT%{_datadir}/license/%{name};
echo "";
done;
done
# license
mkdir -p %{buildroot}/usr/share/license
cp COPYING %{buildroot}/usr/share/license/%{name}
%docs_package
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_datadir}/license/%{name}
/bin/tar
/usr/share/license/%{name}
|