/[packages]/cauldron/sinjdoc/current/SPECS/sinjdoc.spec
ViewVC logotype

Contents of /cauldron/sinjdoc/current/SPECS/sinjdoc.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 649083 - (show annotations) (download)
Sun Jul 6 15:52:44 2014 UTC (9 years, 7 months ago) by ovitters
File size: 2132 byte(s)
- SILENT remove cleaning buildroot in install
- SILENT remove buildroot definition
1
2 %define gcj_support 1
3 %bcond_with bootstrap
4
5 %if %with bootstrap
6 %define gcj_support 0
7 %endif
8
9 Name: sinjdoc
10 Version: 0.5
11 Release: %mkrel 4.10
12 Summary: Documentation generator for Java source code
13 Group: Development/Java
14 License: GPL
15 URL: http://www.cag.lcs.mit.edu/~cananian/Projects/GJ/sinjdoc-latest/
16 Source0: %name-%version.tar.bz2
17 Patch0: sinjdoc-annotations.patch
18 Patch1: sinjdoc-autotools-changes.patch
19 Patch2: sinjdoc-0.5-doclet.patch
20
21 %if %without bootstrap
22 BuildRequires: eclipse-ecj
23 %else
24 BuildRequires: ecj-bootstrap
25 %endif
26
27 BuildRequires: java_cup >= 0.10
28 BuildRequires: java
29 BuildRequires: java-rpmbuild
30 BuildRequires: java-gcj-compat-devel
31 Requires: java_cup >= 0.10
32 Requires: java
33 Requires: jpackage-utils
34
35 %if !%{gcj_support}
36 BuildArch: noarch
37 %endif
38
39 # (anssi) do not obsolete yet
40 #Obsoletes: gjdoc <= 0.7.7-14.fc7
41
42 %description
43 This package contains Sinjdoc a tool for generating Javadoc-style
44 documentation from Java source code
45
46 %prep
47 %setup -q
48 %patch0 -p0
49 %patch1 -p0
50 %patch2 -p1
51 %{__perl} -pi -e 's|javac|%{javac}|' configure.ac
52 %{__aclocal}
53 %{__automake}
54 %{__autoconf}
55
56 %build
57 export JAR=%{jar}
58 export JAVA=%{java}
59
60 %if %with bootstrap
61 # (anssi) run ecj with libgcj9 instead of libgcj7 (libgcj8 could work as well)
62 export LD_LIBRARY_PATH=%{_libdir}/gcj_bc-4.3:$LD_LIBRARY_PATH
63 %endif
64
65 %{configure2_5x}
66 %{make}
67
68 %install
69 %jpackage_script net.cscott.sinjdoc.Main %{nil} %{nil} %{name}:java_cup-runtime %{name}
70
71 chmod a+x %{buildroot}%{_bindir}/sinjdoc
72
73 install -d 755 %{buildroot}%{_javadir}
74 install -D -m 644 sinjdoc.jar %{buildroot}%{_javadir}/sinjdoc.jar
75
76 %if %{gcj_support}
77 %{_bindir}/aot-compile-rpm
78 %endif
79
80 %clean
81 rm -rf %{buildroot}
82
83 %if %{gcj_support}
84 %post
85 %{update_gcjdb}
86 %endif
87
88 %if %{gcj_support}
89 %postun
90 %{clean_gcjdb}
91 %endif
92
93 %files
94 %defattr(0644,root,root,0755)
95 %doc AUTHORS ChangeLog COPYING README
96 %attr(0755,root,root) %{_bindir}/sinjdoc
97 %{_javadir}/sinjdoc.jar
98 %if %{gcj_support}
99 %dir %{_libdir}/gcj/%{name}
100 %attr(-,root,root) %{_libdir}/gcj/%{name}/*
101 %endif
102
103

  ViewVC Help
Powered by ViewVC 1.1.30