cvstrac.spec 3.6 KB

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