| 1 |
|
|---|
| 2 | Summary: A GNU archiving program
|
|---|
| 3 | Name: cpio
|
|---|
| 4 | Version: 2.11
|
|---|
| 5 | Release: 1
|
|---|
| 6 | License: GPLv3+
|
|---|
| 7 | Group: Applications/Archiving
|
|---|
| 8 | URL: http://www.gnu.org/software/cpio/
|
|---|
| 9 | Source: ftp://ftp.gnu.org/gnu/cpio/cpio-%{version}.tar.gz
|
|---|
| 10 | Source1: cpio.1
|
|---|
| 11 |
|
|---|
| 12 | Patch1: cpio-2.11-base.diff
|
|---|
| 13 |
|
|---|
| 14 | #Requires(post): /sbin/install-info
|
|---|
| 15 | #Requires(preun): /sbin/install-info
|
|---|
| 16 | #BuildRequires: texinfo, autoconf, gettext, rmt
|
|---|
| 17 | Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|---|
| 18 |
|
|---|
| 19 | %description
|
|---|
| 20 | GNU cpio copies files into or out of a cpio or tar archive. Archives
|
|---|
| 21 | are files which contain a collection of other files plus information
|
|---|
| 22 | about them, such as their file name, owner, timestamps, and access
|
|---|
| 23 | permissions. The archive can be another file on the disk, a magnetic
|
|---|
| 24 | tape, or a pipe. GNU cpio supports the following archive formats: binary,
|
|---|
| 25 | old ASCII, new ASCII, crc, HPUX binary, HPUX old ASCII, old tar and POSIX.1
|
|---|
| 26 | tar. By default, cpio creates binary format archives, so that they are
|
|---|
| 27 | compatible with older cpio programs. When it is extracting files from
|
|---|
| 28 | archives, cpio automatically recognizes which kind of archive it is reading
|
|---|
| 29 | and can read archives created on machines with a different byte-order.
|
|---|
| 30 |
|
|---|
| 31 | Install cpio if you need a program to manage file archives.
|
|---|
| 32 |
|
|---|
| 33 | %prep
|
|---|
| 34 | %setup -q
|
|---|
| 35 | %patch1 -p1 -b .base
|
|---|
| 36 | #autoheader
|
|---|
| 37 |
|
|---|
| 38 | %build
|
|---|
| 39 |
|
|---|
| 40 | CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -pedantic -fno-strict-aliasing -Wall" \
|
|---|
| 41 | %configure --with-rmt="%{_sysconfdir}/rmt" \
|
|---|
| 42 | "--cache-file=%{_topdir}/cache/%{name}.cache"
|
|---|
| 43 |
|
|---|
| 44 | make %{?_smp_mflags}
|
|---|
| 45 |
|
|---|
| 46 | %install
|
|---|
| 47 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 48 |
|
|---|
| 49 | make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
|
|---|
| 50 |
|
|---|
| 51 | rm -f $RPM_BUILD_ROOT%{_libexecdir}/rmt
|
|---|
| 52 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|---|
| 53 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1*
|
|---|
| 54 | install -c -p -m 0644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_mandir}/man1
|
|---|
| 55 |
|
|---|
| 56 | #%find_lang %{name}
|
|---|
| 57 |
|
|---|
| 58 | %clean
|
|---|
| 59 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 60 |
|
|---|
| 61 | #%check
|
|---|
| 62 | #rm -f ${RPM_BUILD_ROOT}/test/testsuite
|
|---|
| 63 | #make check
|
|---|
| 64 |
|
|---|
| 65 |
|
|---|
| 66 | %post
|
|---|
| 67 | if [ -f %{_infodir}/cpio.info.gz ]; then
|
|---|
| 68 | /sbin/install-info %{_infodir}/cpio.info.gz %{_infodir}/dir || :
|
|---|
| 69 | fi
|
|---|
| 70 |
|
|---|
| 71 | %preun
|
|---|
| 72 | if [ $1 = 0 ]; then
|
|---|
| 73 | if [ -f %{_infodir}/cpio.info.gz ]; then
|
|---|
| 74 | /sbin/install-info --delete %{_infodir}/cpio.info.gz %{_infodir}/dir || :
|
|---|
| 75 | fi
|
|---|
| 76 | fi
|
|---|
| 77 |
|
|---|
| 78 | %files
|
|---|
| 79 | # -f %{name}.lang
|
|---|
| 80 | %defattr(-,root,root,0755)
|
|---|
| 81 | %doc AUTHORS ChangeLog NEWS README THANKS TODO COPYING
|
|---|
| 82 | %{_bindir}/*
|
|---|
| 83 | %{_mandir}/man*/*
|
|---|
| 84 | %{_infodir}/*.info*
|
|---|
| 85 | %{_usr}/lib/charset.alias
|
|---|
| 86 | %{_usr}/share/locale/da/LC_MESSAGES/cpio.mo
|
|---|
| 87 | %{_usr}/share/locale/de/LC_MESSAGES/cpio.mo
|
|---|
| 88 | %{_usr}/share/locale/es/LC_MESSAGES/cpio.mo
|
|---|
| 89 | %{_usr}/share/locale/fi/LC_MESSAGES/cpio.mo
|
|---|
| 90 | %{_usr}/share/locale/fr/LC_MESSAGES/cpio.mo
|
|---|
| 91 | %{_usr}/share/locale/ga/LC_MESSAGES/cpio.mo
|
|---|
| 92 | %{_usr}/share/locale/gl/LC_MESSAGES/cpio.mo
|
|---|
| 93 | %{_usr}/share/locale/hu/LC_MESSAGES/cpio.mo
|
|---|
| 94 | %{_usr}/share/locale/id/LC_MESSAGES/cpio.mo
|
|---|
| 95 | %{_usr}/share/locale/ko/LC_MESSAGES/cpio.mo
|
|---|
| 96 | %{_usr}/share/locale/nl/LC_MESSAGES/cpio.mo
|
|---|
| 97 | %{_usr}/share/locale/pl/LC_MESSAGES/cpio.mo
|
|---|
| 98 | %{_usr}/share/locale/pt_BR/LC_MESSAGES/cpio.mo
|
|---|
| 99 | %{_usr}/share/locale/ro/LC_MESSAGES/cpio.mo
|
|---|
| 100 | %{_usr}/share/locale/ru/LC_MESSAGES/cpio.mo
|
|---|
| 101 | %{_usr}/share/locale/sv/LC_MESSAGES/cpio.mo
|
|---|
| 102 | %{_usr}/share/locale/tr/LC_MESSAGES/cpio.mo
|
|---|
| 103 | %{_usr}/share/locale/uk/LC_MESSAGES/cpio.mo
|
|---|
| 104 | %{_usr}/share/locale/vi/LC_MESSAGES/cpio.mo
|
|---|
| 105 | %{_usr}/share/locale/zh_CN/LC_MESSAGES/cpio.mo
|
|---|
| 106 | %{_usr}/share/locale/zh_TW/LC_MESSAGES/cpio.mo
|
|---|
| 107 |
|
|---|
| 108 | %changelog
|
|---|