patchutils.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. ##
  2. ## patchutils.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.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 information
  26. Name: patchutils
  27. Summary: Patch Utilities
  28. URL: http://cyberelk.net/tim/patchutils/
  29. Vendor: Tim Waugh
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: BASE
  33. Group: Converter
  34. License: GPL
  35. Version: 0.2.29
  36. Release: 20040405
  37. # list of sources
  38. Source0: http://cyberelk.net/tim/data/patchutils/stable/patchutils-%{version}.tar.bz2
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20040130, make, gcc
  43. PreReq: OpenPKG, openpkg >= 20040130, perl
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. Patchutils is a small collection of programs that operate on
  48. patch files. Interdiff generates an incremental patch from two
  49. patches against a common source. For example, if you have applied
  50. a pre-patch to a source tree, and wish to apply another pre-patch
  51. (which is against the same original source tree), you can use
  52. interdiff to generate the patch that you need to apply. You can also
  53. use this to review changes between two pre-patches. Combinediff
  54. generates a single patch from two incremental patches, allowing you
  55. to merge patches together. The resulting patch file only alters each
  56. file once. Filterdiff will select the portions of a patch file that
  57. apply to files matching (or, alternatively, not matching) a shell
  58. wildcard. Fixcvsdiff is for correcting the output of 'cvs diff'.
  59. Rediff corrects hand-edited patches, by comparing the original patch
  60. with the modified one and adjusting the offsets and counts. Lsdiff
  61. displays a short listing of affected files in a patch file, along
  62. with (optionally) the line numbers of the start of each patch.
  63. Splitdiff separates out patches from a patch file so that each new
  64. patch file only alters any given file once. In this way, a file
  65. containing several incremental patches can be split into individual
  66. incremental patches.
  67. %track
  68. prog patchutils = {
  69. version = %{version}
  70. url = http://cyberelk.net/tim/data/patchutils/stable/
  71. regex = patchutils-(\d+\.\d+\.\d+)\.tar\.bz2
  72. }
  73. %prep
  74. %setup -q
  75. %build
  76. %{l_shtool} subst \
  77. -e 's;/bin/bash;%{l_bash};g' \
  78. editdiff.in espdiff.in
  79. CC="%{l_cc}" \
  80. CFLAGS="%{l_cflags -O}" \
  81. PERL="%{l_prefix}/bin/perl" \
  82. ./configure \
  83. --prefix=%{l_prefix} \
  84. --disable-nls
  85. %{l_make} %{l_mflags -O}
  86. %install
  87. rm -rf $RPM_BUILD_ROOT
  88. %{l_make} %{l_mflags} install \
  89. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  90. exec_prefix=$RPM_BUILD_ROOT%{l_prefix}
  91. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  92. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  93. %files -f files
  94. %clean
  95. rm -rf $RPM_BUILD_ROOT