sinjdoc-vl.spec 3.3 KB

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