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

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

spec: added gettext build.

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