cvs.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. ##
  2. ## cvs.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. %define V_cvs 1.11.0.1
  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.0
  39. # list of sources
  40. Source0: ftp://ftp.ossp.org/pkg/ossp-cvs/ossp-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 >= 20011126.0, perl, patch
  47. PreReq: OpenPKG, openpkg >= 20011126.0, 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. This is the OSSP version of CVS, which provides many new features
  63. and adjustments. Additionally the following popular CVS tools are
  64. included: cvsweb (a CGI for browsing a CVS repository), cvs2cl (a
  65. tool for assembling a GNU ChangeLog file from "cvs log" output)
  66. and cvslock (an administration tool for manually locking a CVS
  67. repository area).
  68. %prep
  69. %setup0 -q -c
  70. %setup1 -q -T -D -a 1
  71. %build
  72. ( cd ossp-cvs-%{V_cvs}
  73. %{l_rpmtool} subst \
  74. 's;^\(#define OSSP_PATCH_CVSUSER_CALLER "\)[^"]*\("\);\1cvs\2;' \
  75. -- src/subr.c
  76. CC="%{l_cc}" \
  77. CFLAGS="%{l_cflags -O}" \
  78. ./configure \
  79. --prefix=%{l_prefix} \
  80. --with-patch=%{l_prefix}/bin/patch \
  81. --without-krb4 \
  82. --without-gssapi \
  83. --enable-encryption \
  84. --enable-server
  85. %{l_make} %{l_mflags -O}
  86. )
  87. ( cd cvslock-%{V_cvslock}
  88. CC="%{l_cc}" \
  89. CFLAGS="%{l_cflags -O}" \
  90. ./configure \
  91. --prefix=%{l_prefix}
  92. %{l_make} %{l_mflags -O}
  93. )
  94. %install
  95. rm -rf $RPM_BUILD_ROOT
  96. ( cd ossp-cvs-%{V_cvs}
  97. %{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix}
  98. )
  99. ( cd cvslock-%{V_cvslock}
  100. %{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix}
  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