pax.spec 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. ##
  2. ## pax.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package versions
  26. %define V_here 20030621
  27. %define V_init 2003-06-21
  28. %define V_base 2003-06-21
  29. # package information
  30. Name: pax
  31. Summary: X/Open Archiving Tool
  32. URL: http://www.research.att.com/~gsf/
  33. Vendor: AT&T Bell Labs
  34. Packager: The OpenPKG Project
  35. Distribution: OpenPKG [EVAL]
  36. Group: Filesystem
  37. License: AT&T
  38. Version: %{V_here}
  39. Release: 20030628
  40. # list of sources
  41. Source0: http://www.research.att.com/~gsf/download/tgz/ast-base.%{V_base}.tgz
  42. Source1: http://www.research.att.com/~gsf/download/tgz/INIT.%{V_init}.tgz
  43. # build information
  44. Prefix: %{l_prefix}
  45. BuildRoot: %{l_buildroot}
  46. BuildPreReq: OpenPKG, openpkg >= 20020206, gcc
  47. PreReq: OpenPKG, openpkg >= 20020206
  48. AutoReq: no
  49. AutoReqProv: no
  50. %description
  51. Pax is a POSIX 1003.2 conformant replacement for tar(1) and cpio(1)
  52. that handles most Unix archive and tape formats. Pax uses the
  53. vdelta algorithm to construct efficient delta archives that contain
  54. bytewise changes from a given base archive. gzip(1) and compress(1)
  55. archives are also handled on input and output.
  56. %prep
  57. %setup0 -q -c -n pax-%{version}
  58. %setup1 -q -T -D -a 1
  59. %build
  60. ./bin/package "read" || true
  61. ./bin/package "make" CC="%{l_cc}" LDFLAGS="-static"
  62. %install
  63. rm -rf $RPM_BUILD_ROOT
  64. %{l_shtool} mkdir -f -p -m 755 \
  65. $RPM_BUILD_ROOT%{l_prefix}/bin \
  66. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  67. %{l_shtool} install -c -s -m 755 \
  68. arch/*/bin/pax $RPM_BUILD_ROOT%{l_prefix}/bin/
  69. %{l_shtool} install -c -m 644 \
  70. arch/*/man/man1/pax.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  71. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  72. %files -f files
  73. %clean
  74. rm -rf $RPM_BUILD_ROOT