/[packages]/cauldron/ant-antlr3/current/SPECS/ant-antlr3.spec
ViewVC logotype

Contents of /cauldron/ant-antlr3/current/SPECS/ant-antlr3.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 941252 - (show annotations) (download)
Sat Feb 6 00:47:23 2016 UTC (8 years, 2 months ago) by umeabot
File size: 2019 byte(s)
Mageia 6 Mass Rebuild
1 Name: ant-antlr3
2 Version: 20110110
3 Release: %mkrel 12
4 Summary: Antlr3 task for Ant
5 Group: Development/Java
6 License: ASL 2.0
7 URL: http://www.antlr.org/
8 # Repackaged until rhbz#699529 RPM fix takes place in Fedora.
9 # RPM cannot read the upstream zip file.
10 # wget http://antlr.org/share/1169924912745/antlr3-task.zip
11 # unzip antlr3-task.zip
12 # rm antlr3-task.zip
13 # zip antlr3-task -r antlr3-task/
14 Source0: antlr3-task.zip
15 #Source0: http://antlr.org/share/1169924912745/antlr3-task.zip
16 BuildArch: noarch
17 BuildRequires: java-devel >= 1:1.6.0
18 BuildRequires: jpackage-utils
19 BuildRequires: ant
20 Requires: java >= 1:1.6.0
21 Requires: jpackage-utils
22 Requires: ant
23
24
25 %description
26 Antlr3 task for Ant.
27
28 %package javadoc
29 Summary: Javadoc for %{name}
30 Group: Development/Java
31 BuildArch: noarch
32 Requires: jpackage-utils
33
34 %description javadoc
35 This package contains the API documentation for %{name}.
36
37 %prep
38 %setup -q -n antlr3-task
39 rm -f ant-antlr3.jar
40
41 %build
42 export CLASSPATH=`build-classpath ant`
43 javac -encoding utf-8 antlr3-src/src/org/apache/tools/ant/antlr/ANTLR3.java
44 jar cvf ant-antlr3.jar -C antlr3-src/src org/apache/tools/ant/antlr/antlib.xml -C antlr3-src/src org/apache/tools/ant/antlr/ANTLR3.class
45 javadoc -encoding utf-8 -d antlr3-src/javadoc -sourcepath antlr3-src/src -subpackages java:org.apache.tools.ant.antlr
46
47 # Sanitize line endings
48 find examples Readme.txt -type f -print0 | xargs -0 -e sed -i 's/\r//'
49 # Remove zero length Java properties files
50 find examples -size 0 -name \*.properties -print0 | xargs -0 -e rm -f
51
52 %install
53 install -m 644 ant-antlr3.jar -D %{buildroot}%{_javadir}/ant/ant-antlr3.jar
54
55 mkdir -p %{buildroot}%{_javadocdir}/ant-antlr3
56 cp -rf antlr3-src/javadoc/* %{buildroot}%{_javadocdir}/ant-antlr3
57
58 # /etc/ant.d
59 mkdir -p %{buildroot}%{_sysconfdir}/ant.d
60 cat > %{buildroot}%{_sysconfdir}/ant.d/ant-antlr3 << EOF
61 ant/ant-antlr3 antlr3
62 EOF
63
64 %files
65 %doc Readme.txt examples
66 %{_javadir}/ant/ant-antlr3.jar
67 %config(noreplace) %{_sysconfdir}/ant.d/ant-antlr3
68
69 %files javadoc
70 %{_javadocdir}/ant-antlr3

  ViewVC Help
Powered by ViewVC 1.1.30