/[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 212597 - (show annotations) (download)
Thu Feb 23 08:37:13 2012 UTC (12 years, 1 month ago) by kamil
File size: 2022 byte(s)
- fix group
1 Name: ant-antlr3
2 Version: 20110110
3 Release: %mkrel 6
4 Summary: Antlr3 task for Ant
5 Group: Development/Java
6 License: ASL 2.0
7 URL: http://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 BuildRequires: java-devel >= 1:1.6.0
17 BuildRequires: jpackage-utils
18 BuildRequires: ant
19 Requires: java >= 1:1.6.0
20 Requires: jpackage-utils
21 Requires: ant
22 BuildArch: noarch
23
24 %description
25 Antlr3 task for Ant.
26
27 %package javadoc
28 Summary: Javadoc for %{name}
29 Group: Documentation
30 BuildArch: noarch
31 Requires: jpackage-utils
32
33 %description javadoc
34 This package contains the API documentation for %{name}.
35
36 %prep
37 %setup -q -n antlr3-task
38 rm -f ant-antlr3.jar
39
40 %build
41 export CLASSPATH=`build-classpath ant`
42 javac -encoding utf-8 antlr3-src/src/org/apache/tools/ant/antlr/ANTLR3.java
43 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
44 javadoc -encoding utf-8 -d antlr3-src/javadoc -sourcepath antlr3-src/src -subpackages java:org.apache.tools.ant.antlr
45
46 # Sanitize line endings
47 find examples Readme.txt -type f -print0 | xargs -0 -e sed -i 's/\r//'
48 # Remove zero length Java properties files
49 find examples -size 0 -name \*.properties -print0 | xargs -0 -e rm -f
50
51 %install
52 install -m 644 ant-antlr3.jar -D $RPM_BUILD_ROOT%{_javadir}/ant/ant-antlr3.jar
53
54 mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/ant-antlr3
55 cp -rf antlr3-src/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/ant-antlr3
56
57 # /etc/ant.d
58 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d
59 cat > $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/ant-antlr3 << EOF
60 ant/ant-antlr3 antlr3
61 EOF
62
63 %files
64 %doc Readme.txt examples
65 %{_javadir}/ant/ant-antlr3.jar
66 %config(noreplace) %{_sysconfdir}/ant.d/ant-antlr3
67
68 %files javadoc
69 %{_javadocdir}/ant-antlr3

  ViewVC Help
Powered by ViewVC 1.1.30