source: spec/trunk/SPECS/tar.spec@ 41

Last change on this file since 41 was 37, checked in by Yuri Dario, 15 years ago

spec: added tar build.

File size: 2.2 KB
Line 
1Summary: A GNU file archiving program
2Name: tar
3Epoch: 2
4Version: 1.23
5Release: 1
6License: GPLv3+
7Group: Applications/Archiving
8URL: http://www.gnu.org/software/tar/
9Source0: ftp://ftp.gnu.org/pub/gnu/tar/tar-%{version}.tar.bz2
10
11Patch1: tar-os2.diff
12
13#Requires: info
14#BuildRequires: autoconf automake gzip texinfo gettext libacl-devel gawk rsh
15Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
16#Requires(post): /sbin/install-info
17#Requires(preun): /sbin/install-info
18
19%description
20The GNU tar program saves many files together in one archive and can
21restore individual files (or all of the files) from that archive. Tar
22can also be used to add supplemental files to an archive and to update
23or list files in the archive. Tar includes multivolume support,
24automatic archive compression/decompression, the ability to perform
25remote archives, and the ability to perform incremental and full
26backups.
27
28If you want to use tar for remote backups, you also need to install
29the rmt package.
30
31%prep
32%setup -q
33%patch1 -p1 -b .os2~
34
35#autoreconf
36
37%build
38export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
39export LIBS="-lurpo"
40%configure \
41 "--cache-file=%{_topdir}/cache/%{name}.cache"
42make %{?_smp_mflags}
43
44%install
45rm -rf $RPM_BUILD_ROOT
46make DESTDIR=$RPM_BUILD_ROOT install
47
48ln -s tar.exe ${RPM_BUILD_ROOT}%{_bindir}/gtar.exe
49rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
50mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
51#install -c -p -m 0644 %{SOURCE2} ${RPM_BUILD_ROOT}%{_mandir}/man1
52ln -s tar.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/gtar.1
53
54# XXX Nuke unpackaged files.
55rm -f ${RPM_BUILD_ROOT}/sbin/rmt
56rm -f ${RPM_BUILD_ROOT}%{_libdir}/charset.alias
57
58#%find_lang %name
59
60#%check
61#rm -f ${RPM_BUILD_ROOT}/test/testsuite
62#make check
63
64%clean
65rm -rf ${RPM_BUILD_ROOT}
66
67#%post
68#if [ -f %{_infodir}/tar.info.gz ]; then
69# /sbin/install-info %{_infodir}/tar.info.gz %{_infodir}/dir || :
70#fi
71
72#%preun
73#if [ $1 = 0 ]; then
74# if [ -f %{_infodir}/tar.info.gz ]; then
75# /sbin/install-info --delete %{_infodir}/tar.info.gz %{_infodir}/dir || :
76# fi
77#fi
78
79%files
80# -f %{name}.lang
81%defattr(-,root,root)
82%doc AUTHORS ChangeLog ChangeLog.1 COPYING NEWS README THANKS TODO
83%{_bindir}/*
84%{_mandir}/man*/*
85%{_infodir}/tar.info*
86%{_usr}/share/locale/*
87
88%changelog
Note: See TracBrowser for help on using the repository browser.