]> git.pld-linux.org Git - packages/javacc.git/commitdiff
- based on jpackage spec, without gcj portions
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 31 Jan 2007 17:40:27 +0000 (17:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    javacc.spec -> 1.1

javacc.spec [new file with mode: 0644]

diff --git a/javacc.spec b/javacc.spec
new file mode 100644 (file)
index 0000000..60b48ee
--- /dev/null
@@ -0,0 +1,83 @@
+Summary:       A parser/scanner generator for java
+Name:          javacc
+Version:       4.0
+Release:       0.1
+License:       BSD
+Source0:       https://javacc.dev.java.net/files/documents/17/26783/%{name}-%{version}src.tar.gz
+# Source0-md5: 62910e742042d491c7b2f443c8399213
+Source1:       %{name}
+Source2:       jjdoc
+Source3:       jjtree
+Group:         Development/Languages/Java
+URL:           https://javacc.dev.java.net/
+BuildRequires: /bin/bash
+BuildRequires: ant
+BuildRequires: jpackage-utils
+BuildRequires: junit >= 3.8.1
+BuildRequires: rpmbuild(macros) >= 1.300
+Requires:      jpackage-utils >= 0:1.5
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Java Compiler Compiler (JavaCC) is the most popular parser generator
+for use with Java applications. A parser generator is a tool that
+reads a grammar specification and converts it to a Java program that
+can recognize matches to the grammar. In addition to the parser
+generator itself, JavaCC provides other standard capabilities related
+to parser generation such as tree building (via a tool called JJTree
+included with JavaCC), actions, debugging, etc.
+
+%package manual
+Summary:       Manual for %{name}
+Group:         Documentation
+
+%description manual
+Manual for %{name}.
+
+%package demo
+Summary:       Examples for %{name}
+Group:         Documentation
+
+%description demo
+Examples for %{name}.
+
+%prep
+%setup -q -n %{name}
+cp %{SOURCE1} javacc
+cp %{SOURCE2} jjdoc
+cp %{SOURCE3} jjtree
+mv www/doc .
+
+%build
+%ant \
+  -Dversion=%{version} \
+  jar
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_javadir}
+install bin/lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
+ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+install -d $RPM_BUILD_ROOT%{_bindir}
+install javacc jjdoc jjtree $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -pr examples $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_javadir}/*.jar
+%doc LICENSE README
+%defattr(0755,root,root,0755)
+%attr(755,root,root) %{_bindir}/*
+
+%files manual
+%defattr(644,root,root,755)
+%doc doc/*
+
+%files demo
+%defattr(644,root,root,755)
+%{_datadir}/%{name}/*
This page took 0.141577 seconds and 4 git commands to generate.