cvs.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. ##
  2. ## cvs.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2002 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. # the involved versions
  26. %define V_cvs 1.11.1p1
  27. %define V_cvslock 0.2
  28. %define V_cvs2cl 2.38
  29. # optional support for applying the RSE patches
  30. %if "%{?rse_patches:set}" != "set"
  31. %define rse_patches no
  32. %endif
  33. # package information
  34. Name: cvs
  35. Summary: Concurrent Versions Systems (CVS)
  36. URL: http://www.cvshome.org/
  37. Vendor: B. Berliner, D.D. Zuhn, J. Polk
  38. Packager: The OpenPKG Project
  39. Distribution: OpenPKG [REL]
  40. Group: CVS
  41. License: GPL
  42. Version: %{V_cvs}
  43. Release: 20020216
  44. # list of sources
  45. Source0: http://www.cvshome.org/files/19/10/cvs-%{V_cvs}.tar.gz
  46. Source1: ftp://riemann.iam.uni-bonn.de/pub/users/roessler/cvslock/cvslock-%{V_cvslock}.tar.gz
  47. Source2: http://www.red-bean.com/cvs2cl/cvs2cl.pl
  48. Source3: cvs.patches.rse
  49. # build information
  50. Prefix: %{l_prefix}
  51. BuildRoot: %{l_buildroot}
  52. BuildPreReq: OpenPKG, openpkg >= 20020206, perl, patch
  53. PreReq: OpenPKG, openpkg >= 20020206, perl, patch
  54. AutoReq: no
  55. AutoReqProv: no
  56. %description
  57. CVS is a version control system, which allows you to keep old
  58. versions of files (usually source code), keep a log of who,
  59. when, and why changes occurred, etc., like RCS or SCCS. Unlike
  60. the simpler systems, CVS does not just operate on one file at a
  61. time or one directory at a time, but operates on hierarchical
  62. collections of directories consisting of version controlled files.
  63. CVS helps to manage releases and to control the concurrent editing
  64. of source files among multiple authors. CVS allows triggers to
  65. enable/log/control various operations and works well over a wide
  66. area network. CVS keeps a single copy of the master sources. This
  67. copy is called the source repository.
  68. Additionally the following popular CVS tools are included: cvs2cl
  69. (a tool for assembling a GNU ChangeLog file from "cvs log" output)
  70. and cvslock (an administration tool for manually locking a CVS
  71. repository area).
  72. %if "%{rse_patches}" == "yes"
  73. This version of CVS has the large set of patches applied from
  74. Ralf S. Engelschall <rse@engelschall.com> (-DRSE_PATCHES). This
  75. means that (still undocumented) extra functionality is available.
  76. %endif
  77. %prep
  78. %setup0 -q -c
  79. %setup1 -q -T -D -a 1
  80. %if "%{rse_patches}" == "yes"
  81. ( cd cvs-%{V_cvs} && %{l_prefix}/bin/patch -p0 <%{SOURCE cvs.patches.rse} )
  82. %endif
  83. %build
  84. ( cd cvs-%{V_cvs}
  85. CC="%{l_cc}" \
  86. %if "%{rse_patches}" == "yes"
  87. CFLAGS="%{l_cflags -O} -DRSE_PATCHES" \
  88. %else
  89. CFLAGS="%{l_cflags -O}" \
  90. %endif
  91. ./configure \
  92. --prefix=%{l_prefix} \
  93. --with-patch=%{l_prefix}/bin/patch \
  94. --without-krb4 \
  95. --without-gssapi \
  96. --enable-encryption \
  97. --enable-server
  98. %{l_make} %{l_mflags -O}
  99. )
  100. ( cd cvslock-%{V_cvslock}
  101. CC="%{l_cc}" \
  102. CFLAGS="%{l_cflags -O}" \
  103. ./configure \
  104. --prefix=%{l_prefix}
  105. %{l_make} %{l_mflags -O}
  106. )
  107. %install
  108. rm -rf $RPM_BUILD_ROOT
  109. ( cd cvs-%{V_cvs}
  110. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  111. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/rcs2log
  112. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  113. mv $RPM_BUILD_ROOT%{l_prefix}/share/cvs/contrib/* \
  114. $RPM_BUILD_ROOT%{l_prefix}/share/cvs/
  115. rmdir $RPM_BUILD_ROOT%{l_prefix}/share/cvs/contrib
  116. )
  117. ( cd cvslock-%{V_cvslock}
  118. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  119. )
  120. %{l_shtool} install -c -m 755 \
  121. %{SOURCE cvs2cl.pl} $RPM_BUILD_ROOT%{l_prefix}/bin/cvs2cl
  122. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  123. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  124. %files -f files
  125. %clean
  126. rm -rf $RPM_BUILD_ROOT