cvstrac.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. ##
  2. ## cvstrac.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. # package information
  26. Name: cvstrac
  27. Summary: Bug Tracking System for CVS
  28. URL: http://www.cvstrac.org/
  29. Vendor: D. Richard Hipp
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [PLUS]
  32. Group: Database
  33. License: GPL
  34. Version: 1.1.2
  35. Release: 20021218
  36. # list of sources
  37. Source0: http://www.hwaci.com/sw/cvstrac/cvstrac-%{version}.tar.gz
  38. Source1: cvstrac.cgi
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20020416, make, gcc, sqlite
  43. PreReq: OpenPKG, openpkg >= 20020416, cvs, rcs
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. CVSTrac is bug tracking system for use with CVS appropriate for use
  48. on projects with up to a few hundred developers. CVSTrac is designed
  49. for low-ceremony development - it provides mechanisms for tracking
  50. changes and bugs without unnecessary restrictions.
  51. %prep
  52. %setup -q
  53. %build
  54. libs="-lsqlite -lcrypt"
  55. case "%{l_target}" in
  56. *-solaris* ) libs="$libs -lsocket -lnsl" ;;
  57. esac
  58. %{l_make} %{l_mflags} -f main.mk \
  59. SRCDIR=`pwd` \
  60. BCC="%{l_cc} %{l_cflags -O} -I%{l_prefix}/include" \
  61. TCC="%{l_cc} %{l_cflags -O} -I%{l_prefix}/include" \
  62. LIBSQLITE="-L%{l_prefix}/lib $libs" \
  63. E=""
  64. %install
  65. rm -rf $RPM_BUILD_ROOT
  66. %{l_shtool} mkdir -f -p -m 755 \
  67. $RPM_BUILD_ROOT%{l_prefix}/bin \
  68. $RPM_BUILD_ROOT%{l_prefix}/cgi \
  69. $RPM_BUILD_ROOT%{l_prefix}/var/cvstrac
  70. %{l_shtool} install -c -s -m 755 \
  71. cvstrac $RPM_BUILD_ROOT%{l_prefix}/bin/
  72. %{l_shtool} install -c -m 755 \
  73. -e 's;@l_prefix@;%{l_prefix};g' \
  74. %{SOURCE cvstrac.cgi} $RPM_BUILD_ROOT%{l_prefix}/cgi/cvstrac
  75. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  76. %{l_files_std} \
  77. '%dir %attr(-,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/cvstrac'
  78. %files -f files
  79. %clean
  80. rm -rf $RPM_BUILD_ROOT
  81. %post
  82. if [ ".$1" = .1 ]; then
  83. ( echo "Hint: To use CVSTrac you have to create databases for your projects."
  84. echo "Run the following command as user %{l_nusr} for each project <name>:"
  85. echo "\$ $RPM_INSTALL_PREFIX/bin/cvstrac init $RPM_INSTALL_PREFIX/var/cvstrac <name>"
  86. echo "After this login to http://localhost/openpkg-cgi/cvstrac/<name>/"
  87. echo "with user \"setup\" and password \"setup\" and configure your"
  88. echo "CVS repository path, add users and change the \"setup\" password."
  89. ) | %{l_rpmtool} msg -b -t notice
  90. fi