SPECS: javacc.spec (NEW) - based on jpackage spec, without gcj por...

glen glen at pld-linux.org
Wed Jan 31 18:40:32 CET 2007


Author: glen                         Date: Wed Jan 31 17:40:32 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- based on jpackage spec, without gcj portions

---- Files affected:
SPECS:
   javacc.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/javacc.spec
diff -u /dev/null SPECS/javacc.spec:1.1
--- /dev/null	Wed Jan 31 18:40:32 2007
+++ SPECS/javacc.spec	Wed Jan 31 18:40:27 2007
@@ -0,0 +1,94 @@
+# $Revision$, $Date$
+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}/*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/01/31 17:40:27  glen
+- based on jpackage spec, without gcj portions
+
================================================================


More information about the pld-cvs-commit mailing list