star.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. ##
  2. ## star.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://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 version
  25. %define V_major 1.5
  26. %define V_minor a69
  27. # package information
  28. Name: star
  29. Summary: Fast Tape Archiver (TAR)
  30. URL: http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/star.html
  31. Vendor: Jörg Schilling
  32. Packager: OpenPKG
  33. Distribution: OpenPKG
  34. Class: EVAL
  35. Group: Archiver
  36. License: GPL
  37. Version: %{V_major}%{V_minor}
  38. Release: 20051102
  39. # list of sources
  40. Source0: ftp://ftp.berlios.de/pub/star/alpha/star-%{version}.tar.bz2
  41. Patch0: star.patch
  42. # build information
  43. Prefix: %{l_prefix}
  44. BuildRoot: %{l_buildroot}
  45. BuildPreReq: OpenPKG, openpkg >= 20040130, make
  46. PreReq: OpenPKG, openpkg >= 20040130
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. Star is a very fast, POSIX-compliant Tar archiver. It reads and
  51. writes POSIX compliant Tar archives as well as non-POSIX GNU
  52. Tar archives. Star is the first free POSIX.1-2001 compliant Tar
  53. implementation. It saves many files together into a single tape or
  54. disk archive, and can restore individual files from the archive. It
  55. includes a FIFO for speed, a pattern matcher, multi-volume support,
  56. the ability to archive sparse files and ACLs, the ability to archive
  57. extended file flags, automatic archive format detection, automatic
  58. byte order recognition, automatic archive compression/decompression,
  59. remote archives, and special features that allow star to be used for
  60. full and incremental backups.
  61. %track
  62. prog star = {
  63. version = %{version}
  64. url = ftp://ftp.berlios.de/pub/star/alpha/
  65. regex = star-(\d+\.\d+(\.\d+)*([ab]\d+)?)\.tar\.bz2
  66. }
  67. %prep
  68. %setup -q -n star-%{V_major}
  69. %patch -p0
  70. %build
  71. %{l_make} %{l_mflags -O} \
  72. CC="%{l_cc}" \
  73. CFLAGS="%{l_cflags}"
  74. %install
  75. rm -rf $RPM_BUILD_ROOT
  76. %{l_shtool} mkdir -f -p -m 755 \
  77. $RPM_BUILD_ROOT%{l_prefix}/bin \
  78. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  79. %{l_shtool} install -c -s -m 755 \
  80. star/OBJ/*/star_fat \
  81. $RPM_BUILD_ROOT%{l_prefix}/bin/star
  82. %{l_shtool} install -c -s -m 755 \
  83. rmt/OBJ/*/rmt \
  84. $RPM_BUILD_ROOT%{l_prefix}/bin/
  85. %{l_shtool} install -c -m 644 \
  86. star/star.1 rmt/rmt.1 \
  87. $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  88. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  89. %files -f files
  90. %clean
  91. rm -rf $RPM_BUILD_ROOT