source: spec/trunk/SPECS/cpio.spec@ 433

Last change on this file since 433 was 336, checked in by Yuri Dario, 13 years ago

spec: cpio remove file name ending \r due to binary stdin. fixes ticket:16.

  • Property svn:eol-style set to native
File size: 2.7 KB
Line 
1
2Summary: A GNU archiving program
3Name: cpio
4Version: 2.11
5Release: 4%{?dist}
6License: GPLv3+
7Group: Applications/Archiving
8URL: http://www.gnu.org/software/cpio/
9Source: ftp://ftp.gnu.org/gnu/cpio/cpio-%{version}.tar.gz
10Source1: cpio.1
11
12Patch1: cpio-os2.diff
13
14#Requires(post): /sbin/install-info
15#Requires(preun): /sbin/install-info
16#BuildRequires: texinfo, autoconf, gettext, rmt
17BuildRequires: gettext
18Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
19Requires: gettext-libs
20
21%description
22GNU cpio copies files into or out of a cpio or tar archive. Archives
23are files which contain a collection of other files plus information
24about them, such as their file name, owner, timestamps, and access
25permissions. The archive can be another file on the disk, a magnetic
26tape, or a pipe. GNU cpio supports the following archive formats: binary,
27old ASCII, new ASCII, crc, HPUX binary, HPUX old ASCII, old tar and POSIX.1
28tar. By default, cpio creates binary format archives, so that they are
29compatible with older cpio programs. When it is extracting files from
30archives, cpio automatically recognizes which kind of archive it is reading
31and can read archives created on machines with a different byte-order.
32
33Install cpio if you need a program to manage file archives.
34
35%prep
36%setup -q
37%patch1 -p1 -b .os2~
38#autoheader
39
40%build
41export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
42export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -pedantic -fno-strict-aliasing -Wall" ; \
43export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \
44export LIBS="-lintl -lurpo" ; \
45%configure --with-rmt="%{_sysconfdir}/rmt" \
46 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
47
48make %{?_smp_mflags}
49
50%install
51rm -rf ${RPM_BUILD_ROOT}
52
53make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
54
55rm -f $RPM_BUILD_ROOT%{_libexecdir}/rmt
56rm -f $RPM_BUILD_ROOT%{_infodir}/dir
57rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1*
58install -c -p -m 0644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_mandir}/man1
59
60rm -f $RPM_BUILD_ROOT%{_usr}/lib/charset.alias
61
62#%find_lang %{name}
63
64%clean
65rm -rf ${RPM_BUILD_ROOT}
66
67#%check
68#rm -f ${RPM_BUILD_ROOT}/test/testsuite
69#make check
70
71
72#%post
73#if [ -f %{_infodir}/cpio.info.gz ]; then
74# /sbin/install-info %{_infodir}/cpio.info.gz %{_infodir}/dir || :
75#fi
76
77#%preun
78#if [ $1 = 0 ]; then
79# if [ -f %{_infodir}/cpio.info.gz ]; then
80# /sbin/install-info --delete %{_infodir}/cpio.info.gz %{_infodir}/dir || :
81# fi
82#fi
83
84%files
85# -f %{name}.lang
86%defattr(-,root,root,0755)
87%doc AUTHORS ChangeLog NEWS README THANKS TODO COPYING
88%{_bindir}/*
89%{_mandir}/man*/*
90%{_infodir}/*.info*
91%{_usr}/share/locale/*
92
93%changelog
94* Mon Dec 03 2012 yd
95- remove file name ending \r due to binary stdin. fixes ticket:16.
Note: See TracBrowser for help on using the repository browser.