cvstrac.spec 3.6 KB

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