cvs.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. ##
  2. ## cvs.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.com>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. %define V_cvs 1.11.0.1
  25. %define V_cvslock 0.2
  26. %define V_cvs2cl 2.38
  27. %define V_cvsweb 1.105.1.65
  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 [EXP]
  35. Group: CVS
  36. License: GPL
  37. Version: %{V_cvs}
  38. Release: %{l_branch}.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://people.FreeBSD.org/~knu/distfiles/cvsweb-%{V_cvsweb}.tar.gz
  43. Source3: http://www.red-bean.com/cvs2cl/cvs2cl.pl
  44. # build information
  45. Prefix: %{l_prefix}
  46. BuildRoot: %{l_buildroot}
  47. BuildPreReq: OpenPKG, openpkg >= 20011023.0, perl, patch
  48. PreReq: OpenPKG, openpkg >= 20011023.0, perl, patch
  49. AutoReq: no
  50. AutoReqProv: no
  51. %description
  52. CVS is a version control system, which allows you to keep old
  53. versions of files (usually source code), keep a log of who,
  54. when, and why changes occurred, etc., like RCS or SCCS. Unlike
  55. the simpler systems, CVS does not just operate on one file at a
  56. time or one directory at a time, but operates on hierarchical
  57. collections of directories consisting of version controlled files.
  58. CVS helps to manage releases and to control the concurrent editing
  59. of source files among multiple authors. CVS allows triggers to
  60. enable/log/control various operations and works well over a wide
  61. area network. CVS keeps a single copy of the master sources. This
  62. copy is called the source repository.
  63. This is the OSSP version of CVS, which provides many new features
  64. and adjustments. Additionally the following popular CVS tools are
  65. included: cvsweb (a CGI for browsing a CVS repository), cvs2cl (a
  66. tool for assembling a GNU ChangeLog file from "cvs log" output)
  67. and cvslock (an administration tool for manually locking a CVS
  68. repository area).
  69. %prep
  70. %setup0 -q -c
  71. %setup1 -q -T -D -a 1
  72. %setup2 -q -T -D -a 2
  73. %build
  74. ( cd ossp-cvs-%{V_cvs}
  75. %{l_rpmtool} subst \
  76. 's;^\(#define OSSP_PATCH_CVSUSER_CALLER "\)[^"]*\("\);\1cvs\2;' \
  77. -- src/subr.c
  78. CC="%{l_cc}" \
  79. CFLAGS="%{l_cflags -O}" \
  80. ./configure \
  81. --prefix=%{l_prefix} \
  82. --with-patch=%{l_prefix}/bin/patch \
  83. --without-krb4 \
  84. --without-gssapi \
  85. --enable-encryption \
  86. --enable-server
  87. %{l_make} %{l_mflags -O}
  88. )
  89. ( cd cvslock-%{V_cvslock}
  90. CC="%{l_cc}" \
  91. CFLAGS="%{l_cflags -O}" \
  92. ./configure \
  93. --prefix=%{l_prefix}
  94. %{l_make} %{l_mflags -O}
  95. )
  96. %install
  97. rm -rf $RPM_BUILD_ROOT
  98. ( cd ossp-cvs-%{V_cvs}
  99. %{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix}
  100. )
  101. ( cd cvslock-%{V_cvslock}
  102. %{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix}
  103. )
  104. %{l_shtool} install -c -m 755 \
  105. %{SOURCE cvs2cl.pl} $RPM_BUILD_ROOT%{l_prefix}/bin/cvs2cl
  106. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  107. %files -f files
  108. %clean
  109. rm -rf $RPM_BUILD_ROOT