patchutils.spec 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ##
  2. ## patchutils.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2001 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 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 [REL]
  32. Group: Converter
  33. License: GPL
  34. Version: 0.2.7
  35. Release: 20011220
  36. # list of sources
  37. Source0: http://cyberelk.net/tim/data/patchutils/stable/patchutils-%{version}.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20011227
  42. PreReq: OpenPKG, openpkg >= 20011227
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. Patchutils is a small collection of programs that operate on
  47. patch files. Interdiff generates an incremental patch from two
  48. patches against a common source. For example, if you have applied
  49. a pre-patch to a source tree, and wish to apply another pre-patch
  50. (which is against the same original source tree), you can use
  51. interdiff to generate the patch that you need to apply. You can also
  52. use this to review changes between two pre-patches. Combinediff
  53. generates a single patch from two incremental patches, allowing you
  54. to merge patches together. The resulting patch file only alters each
  55. file once. Filterdiff will select the portions of a patch file that
  56. apply to files matching (or, alternatively, not matching) a shell
  57. wildcard. Fixcvsdiff is for correcting the output of 'cvs diff'.
  58. Rediff corrects hand-edited patches, by comparing the original patch
  59. with the modified one and adjusting the offsets and counts. Lsdiff
  60. displays a short listing of affected files in a patch file, along
  61. with (optionally) the line numbers of the start of each patch.
  62. Splitdiff separates out patches from a patch file so that each new
  63. patch file only alters any given file once. In this way, a file
  64. containing several incremental patches can be split into individual
  65. incremental patches.
  66. %prep
  67. %setup -q
  68. %build
  69. CC="%{l_cc}" \
  70. CFLAGS="%{l_cflags -O}" \
  71. ./configure \
  72. --prefix=%{l_prefix} \
  73. --disable-nls
  74. %{l_make} %{l_mflags -O}
  75. %install
  76. rm -rf $RPM_BUILD_ROOT
  77. %{l_make} %{l_mflags} install \
  78. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  79. exec_prefix=$RPM_BUILD_ROOT%{l_prefix}
  80. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  81. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  82. %files -f files
  83. %clean
  84. rm -rf $RPM_BUILD_ROOT