ganttproject.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. ##
  2. ## ganttproject.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://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. # package information
  25. Name: ganttproject
  26. Summary: Project Planner
  27. URL: http://www.ganttproject.org/
  28. Vendor: Alexandre Thomas
  29. Packager: OpenPKG
  30. Distribution: OpenPKG
  31. Class: EVAL
  32. Group: Development
  33. License: GPL
  34. Version: 1.10.3
  35. Release: 20051114
  36. # list of sources
  37. Source0: http://osdn.dl.sourceforge.net/ganttproject/ganttproject-%{version}-src.zip
  38. Source1: http://svn.weird-birds.org/wbc/gan2svg/gan2svg.xsl
  39. Patch0: ganttproject.patch
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20040130, JDK, ant, infozip
  44. PreReq: OpenPKG, openpkg >= 20040130, JRE
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. The ganttproject is a project management tool with a comfortable gui
  49. and several output options. A typical manager uses ganttproject for
  50. building project plans and tracking progress. Gantt charts can be
  51. saved in a variety of formats, due to a flexible theme based XSLT
  52. processor.
  53. %track
  54. prog ganttproject = {
  55. version = %{version}
  56. url = http://prdownloads.sourceforge.net/ganttproject/
  57. regex = ganttproject-((?:1\.10\.\d+|2\.\d+(\.\d+)*))-src\.zip
  58. }
  59. %prep
  60. rm -rf ganttproject-%{version}
  61. unzip -qq %{SOURCE0}
  62. cd ganttproject-%{version}
  63. %patch -p0
  64. %build
  65. cd ganttproject-%{version}
  66. ant -Dsource=1.4 -Dnowarn=on -Ddebug=off -Doptimize=on
  67. %install
  68. ( cd ganttproject-%{version}
  69. rm -rf $RPM_BUILD_ROOT
  70. %{l_shtool} mkdir -f -p -m 755 \
  71. $RPM_BUILD_ROOT%{l_prefix}/bin \
  72. $RPM_BUILD_ROOT%{l_prefix}/libexec/ganttproject
  73. rm data/MANIFEST*
  74. mv data $RPM_BUILD_ROOT%{l_prefix}/libexec/ganttproject
  75. mv lib $RPM_BUILD_ROOT%{l_prefix}/libexec/ganttproject
  76. %{l_shtool} install -c -m 644 \
  77. build/ganttproject*.jar $RPM_BUILD_ROOT%{l_prefix}/libexec/ganttproject/lib
  78. %{l_shtool} install -c -m 644 \
  79. %{SOURCE gan2svg.xsl} $RPM_BUILD_ROOT%{l_prefix}/libexec/ganttproject/data/resources/xslt
  80. echo '%{l_prefix}/bin/java -jar %{l_prefix}/libexec/ganttproject/lib/ganttproject-%{version}.jar $@' \
  81. >$RPM_BUILD_ROOT%{l_prefix}/bin/ganttproject
  82. chmod +x $RPM_BUILD_ROOT%{l_prefix}/bin/ganttproject
  83. ) || exit $?
  84. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  85. %files -f files
  86. %clean
  87. rm -rf $RPM_BUILD_ROOT