cpio.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. ##
  2. ## cpio.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.com>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: cpio
  26. Summary: Un-/Packing of CPIO Archive Files
  27. Group: Archiver
  28. URL: http://www.gnu.org/software/cpio/
  29. Vendor: Free Software Foundation
  30. Packager: rse@openpkg.org
  31. Distribution: OpenPKG
  32. License: GPL
  33. Version: 2.4.2
  34. Release: 1
  35. # list of sources
  36. Source0: ftp://ftp.gnu.org/pub/gnu/cpio/cpio-%{version}.tar.gz
  37. Patch0: cpio-%{version}.patch
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 0.9-30
  42. PreReq: OpenPKG, openpkg >= 0.9-30
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. CPIO copies files into or out of a CPIO or TAR archive, which is a
  47. file that contains other files plus information about them, such
  48. as their file name, owner, timestamps, and access permissions. The
  49. archive can be another file on the disk, a magnetic tape, or a pipe.
  50. %prep
  51. %setup -q
  52. %patch -p0
  53. %build
  54. CC="%{l_cc}" \
  55. CFLAGS="%{l_cflags -O}" \
  56. ./configure \
  57. --prefix=%{l_prefix}
  58. %{l_make} %{l_mflags -O} cpio
  59. %install
  60. rm -rf $RPM_BUILD_ROOT
  61. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/bin
  62. %{l_shtool} install -c -s -m 755 cpio $RPM_BUILD_ROOT%{l_prefix}/bin/
  63. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/man/man1
  64. %{l_shtool} install -c -m 644 cpio.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  65. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/info
  66. %{l_shtool} install -c -m 644 cpio.info $RPM_BUILD_ROOT%{l_prefix}/info/
  67. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  68. %files -f files
  69. %clean
  70. rm -rf $RPM_BUILD_ROOT