pax.spec 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. %define V_here 20030422
  26. %define V_init 2003-04-22
  27. %define V_base 2003-04-22
  28. # package information
  29. Name: pax
  30. Summary: X/Open Archiving Tool
  31. URL: http://www.research.att.com/~gsf/
  32. Vendor: AT&T Bell Labs
  33. Packager: The OpenPKG Project
  34. Distribution: OpenPKG [EVAL]
  35. Group: Filesystem
  36. License: AT&T
  37. Version: %{V_here}
  38. Release: 20030424
  39. # list of sources
  40. Source0: http://www.research.att.com/~gsf/download/tgz/ast-base.%{V_base}.tgz
  41. Source1: http://www.research.att.com/~gsf/download/tgz/INIT.%{V_init}.tgz
  42. # build information
  43. Prefix: %{l_prefix}
  44. BuildRoot: %{l_buildroot}
  45. BuildPreReq: OpenPKG, openpkg >= 20020206, gcc
  46. PreReq: OpenPKG, openpkg >= 20020206
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. Pax is a POSIX 1003.2 conformant replacement for tar(1) and cpio(1)
  51. that handles most Unix archive and tape formats. Pax uses the
  52. vdelta algorithm to construct efficient delta archives that contain
  53. bytewise changes from a given base archive. gzip(1) and compress(1)
  54. archives are also handled on input and output.
  55. %prep
  56. %setup0 -q -c -n pax-%{version}
  57. %setup1 -q -T -D -a 1
  58. %build
  59. ./bin/package read || true
  60. ./bin/package make CC="%{l_cc}" LDFLAGS="-static"
  61. %install
  62. rm -rf $RPM_BUILD_ROOT
  63. %{l_shtool} mkdir -f -p -m 755 \
  64. $RPM_BUILD_ROOT%{l_prefix}/bin \
  65. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  66. %{l_shtool} install -c -s -m 755 \
  67. arch/*/bin/pax $RPM_BUILD_ROOT%{l_prefix}/bin/
  68. %{l_shtool} install -c -m 644 \
  69. arch/*/man/man1/pax.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  70. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  71. %files -f files
  72. %clean
  73. rm -rf $RPM_BUILD_ROOT