sinjdoc-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. Name: sinjdoc
  2. Summary: Documentation generator for Java source code
  3. Version: 0.5
  4. Release: 10%{?_dist_release}
  5. Group: Development/Tools
  6. # No version given.
  7. License: GPL+
  8. URL: http://cscott.net/Projects/GJ/sinjdoc-latest/
  9. Source0: http://cscott.net/Projects/GJ/sinjdoc-latest/sinjdoc-0.5.tar.gz
  10. Patch0: sinjdoc-annotations.patch
  11. Patch1: sinjdoc-autotools-changes.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: autoconf
  14. BuildRequires: automake16
  15. BuildRequires: ecj >= 3.2.1
  16. BuildRequires: gcc-java >= 4.0.2
  17. BuildRequires: java-gcj-compat-devel >= 1.0.70
  18. BuildRequires: java_cup >= 0.10
  19. Requires: java_cup >= 0.10
  20. Requires: libgcj >= 4.1.2
  21. Requires(post): java-gcj-compat >= 1.0.70
  22. Requires(postun): java-gcj-compat >= 1.0.70
  23. Obsoletes: gjdoc <= 0.7.7-14.fc7
  24. %description
  25. This package contains Sinjdoc a tool for generating Javadoc-style
  26. documentation from Java source code
  27. %prep
  28. %setup -q
  29. %patch0 -p0
  30. %patch1 -p0
  31. %build
  32. automake-1.6
  33. autoconf
  34. %configure
  35. make %{?_smp_mflags}
  36. %install
  37. rm -rf $RPM_BUILD_ROOT
  38. cat > sinjdoc << EOF
  39. #!/bin/sh
  40. %{_bindir}/gij -classpath \
  41. %{_javadir}/java_cup-runtime.jar:%{_javadir}/sinjdoc.jar \
  42. net.cscott.sinjdoc.Main "\$@"
  43. EOF
  44. install -d 755 $RPM_BUILD_ROOT%{_bindir}
  45. install -m 655 sinjdoc $RPM_BUILD_ROOT%{_bindir}/sinjdoc
  46. install -d 755 $RPM_BUILD_ROOT%{_javadir}
  47. install -D -m 644 sinjdoc.jar $RPM_BUILD_ROOT%{_javadir}/sinjdoc.jar
  48. rm -rf aot-compile-rpm
  49. aot-compile-rpm
  50. %clean
  51. rm -rf $RPM_BUILD_ROOT
  52. %post
  53. if [ -x %{_bindir}/rebuild-gcj-db ]; then
  54. %{_bindir}/rebuild-gcj-db
  55. fi
  56. %postun
  57. if [ -x %{_bindir}/rebuild-gcj-db ]; then
  58. %{_bindir}/rebuild-gcj-db
  59. fi
  60. %files
  61. %defattr(-,root,root,-)
  62. %doc AUTHORS ChangeLog COPYING README
  63. %{_bindir}/sinjdoc
  64. %{_javadir}/sinjdoc.jar
  65. %{_libdir}/gcj/%{name}
  66. %changelog
  67. * Sat Sep 4 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.5-10
  68. - Initial build for Vine Linux
  69. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-9
  70. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  71. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-8
  72. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  73. * Thu Sep 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.5-7
  74. - fix license tag
  75. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.5-6
  76. - Autorebuild for GCC 4.3
  77. * Thu Nov 29 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 0.5-5
  78. - Fix URL field.
  79. - Fix Source0 field.
  80. - Own sinjdoc gcj directory.
  81. - Resolves: rhbz#246367
  82. * Tue Apr 3 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 0.5-4
  83. - Obsolete gjdoc.
  84. * Tue Mar 27 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 0.5-3
  85. - Fix wrapper script argument quoting.
  86. * Mon Mar 19 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 0.5-2
  87. - Initial build in Fedora Core.
  88. * Mon Mar 15 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 0.5-1
  89. - Initial release.