| 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 |
|
|---|
| 5 | Summary: A GNU archiving program
|
|---|
| 6 | Name: cpio
|
|---|
| 7 | Version: 2.12
|
|---|
| 8 | Release: 1%{?dist}
|
|---|
| 9 | License: GPLv3+
|
|---|
| 10 | Group: Applications/Archiving
|
|---|
| 11 | URL: http://www.gnu.org/software/cpio/
|
|---|
| 12 | Vendor: bww bitwise works GmbH
|
|---|
| 13 | Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
|---|
| 14 |
|
|---|
| 15 | Requires(post): %{_sbindir}/install-info.exe
|
|---|
| 16 | Requires(preun): %{_sbindir}/install-info.exe
|
|---|
| 17 | BuildRequires: texinfo, autoconf, gettext
|
|---|
| 18 | #BuildRequires: rmt
|
|---|
| 19 | Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|---|
| 20 |
|
|---|
| 21 | Requires: gettext-libs
|
|---|
| 22 |
|
|---|
| 23 | %description
|
|---|
| 24 | GNU cpio copies files into or out of a cpio or tar archive. Archives
|
|---|
| 25 | are files which contain a collection of other files plus information
|
|---|
| 26 | about them, such as their file name, owner, timestamps, and access
|
|---|
| 27 | permissions. The archive can be another file on the disk, a magnetic
|
|---|
| 28 | tape, or a pipe. GNU cpio supports the following archive formats: binary,
|
|---|
| 29 | old ASCII, new ASCII, crc, HPUX binary, HPUX old ASCII, old tar and POSIX.1
|
|---|
| 30 | tar. By default, cpio creates binary format archives, so that they are
|
|---|
| 31 | compatible with older cpio programs. When it is extracting files from
|
|---|
| 32 | archives, cpio automatically recognizes which kind of archive it is reading
|
|---|
| 33 | and can read archives created on machines with a different byte-order.
|
|---|
| 34 |
|
|---|
| 35 | Install 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
|
|---|
| 45 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
|---|
| 46 | rm -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 |
|
|---|
| 50 | autoreconf -fvi
|
|---|
| 51 |
|
|---|
| 52 | %build
|
|---|
| 53 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 54 | export LIBS="-lcx"
|
|---|
| 55 | %configure --with-rmt="%{_sysconfdir}/rmt"
|
|---|
| 56 |
|
|---|
| 57 | make %{?_smp_mflags}
|
|---|
| 58 |
|
|---|
| 59 | %install
|
|---|
| 60 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 61 |
|
|---|
| 62 | make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
|
|---|
| 63 |
|
|---|
| 64 | rm -f $RPM_BUILD_ROOT%{_libexecdir}/rmt
|
|---|
| 65 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|---|
| 66 |
|
|---|
| 67 | %find_lang %{name}
|
|---|
| 68 |
|
|---|
| 69 | %clean
|
|---|
| 70 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 71 |
|
|---|
| 72 | #%check
|
|---|
| 73 | #rm -f ${RPM_BUILD_ROOT}/test/testsuite
|
|---|
| 74 | #make check
|
|---|
| 75 |
|
|---|
| 76 |
|
|---|
| 77 | %post
|
|---|
| 78 | if [ -f %{_infodir}/cpio.info.gz ]; then
|
|---|
| 79 | %{_sbindir}/install-info.exe %{_infodir}/cpio.info.gz %{_infodir}/dir || :
|
|---|
| 80 | fi
|
|---|
| 81 |
|
|---|
| 82 | %preun
|
|---|
| 83 | if [ $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
|
|---|
| 87 | fi
|
|---|
| 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.
|
|---|