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

Last change on this file since 1036 was 948, checked in by Silvan Scherrer, 9 years ago

spec: cpio: Release version 2.12-1.

  • Property svn:eol-style set to native
File size: 3.2 KB
Line 
1#define svn_url e:/trees/cpio/trunk
2%define svn_url http://svn.netlabs.org/repos/ports/cpio/trunk
3%define svn_rev 1967
4
5Summary: A GNU archiving program
6Name: cpio
7Version: 2.12
8Release: 1%{?dist}
9License: GPLv3+
10Group: Applications/Archiving
11URL: http://www.gnu.org/software/cpio/
12Vendor: bww bitwise works GmbH
13Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
14
15Requires(post): %{_sbindir}/install-info.exe
16Requires(preun): %{_sbindir}/install-info.exe
17BuildRequires: texinfo, autoconf, gettext
18#BuildRequires: rmt
19Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
20
21Requires: gettext-libs
22
23%description
24GNU cpio copies files into or out of a cpio or tar archive. Archives
25are files which contain a collection of other files plus information
26about them, such as their file name, owner, timestamps, and access
27permissions. The archive can be another file on the disk, a magnetic
28tape, or a pipe. GNU cpio supports the following archive formats: binary,
29old ASCII, new ASCII, crc, HPUX binary, HPUX old ASCII, old tar and POSIX.1
30tar. By default, cpio creates binary format archives, so that they are
31compatible with older cpio programs. When it is extracting files from
32archives, cpio automatically recognizes which kind of archive it is reading
33and can read archives created on machines with a different byte-order.
34
35Install cpio if you need a program to manage file archives.
36
37%debug_package
38
39
40%prep
41%if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
42%setup -q
43%else
44%setup -n "%{name}-%{version}" -Tc
45svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
46rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
47(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
48%endif
49
50autoreconf -fvi
51
52%build
53export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
54export LIBS="-lcx"
55%configure --with-rmt="%{_sysconfdir}/rmt"
56
57make %{?_smp_mflags}
58
59%install
60rm -rf ${RPM_BUILD_ROOT}
61
62make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
63
64rm -f $RPM_BUILD_ROOT%{_libexecdir}/rmt
65rm -f $RPM_BUILD_ROOT%{_infodir}/dir
66
67%find_lang %{name}
68
69%clean
70rm -rf ${RPM_BUILD_ROOT}
71
72#%check
73#rm -f ${RPM_BUILD_ROOT}/test/testsuite
74#make check
75
76
77%post
78if [ -f %{_infodir}/cpio.info.gz ]; then
79 %{_sbindir}/install-info.exe %{_infodir}/cpio.info.gz %{_infodir}/dir || :
80fi
81
82%preun
83if [ $1 = 0 ]; then
84 if [ -f %{_infodir}/cpio.info.gz ]; then
85 %{_sbindir}/install-info.exe --delete %{_infodir}/cpio.info.gz %{_infodir}/dir || :
86 fi
87fi
88
89%files -f %{name}.lang
90%defattr(-,root,root,0755)
91%doc AUTHORS ChangeLog NEWS README THANKS TODO COPYING
92%{_bindir}/*.exe
93%{_mandir}/man*/*
94%{_infodir}/*.info*
95%{_usr}/share/locale/*
96
97%changelog
98* Fri Feb 03 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.12-1
99- update to vendor version 2.12
100- update some gnulib tool to latest gnulib
101
102* Fri Oct 14 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.11-5
103- add debug package
104- adapt to latest toolchain
105- fixed utimes usage
106- rolled back r164 partially
107
108* Mon Dec 03 2012 yd
109- remove file name ending \r due to binary stdin. fixes ticket:16.
Note: See TracBrowser for help on using the repository browser.