cvs.spec 4.3 KB

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