[RPM (6.0)] [DIST generic] jparsec-2.0-1.jpp6
Ralph Apel <[email protected]>
| Newsgroups | gmane.linux.jpackage.announce |
|---|---|
| Message-ID | <[email protected]> |
Name : jparsec Relocations: (not relocatable) Version : 2.0 Vendor: JPackage Project Release : 1.jpp6 Build Date: Sun 12 Aug 2012 01:40:35 PM CEST Install Date: (not installed) Build Host: linux.fritz.box Group : Development/Libraries/Java Source RPM: (none) Size : 925675 License: BSD Signature : (none) Packager : Ralph Apel <[email protected]> URL : http://jparsec.codehaus.org/ Summary : Java Haskell Parsec parser combinator. Description : Jparsec is a recursive-desent parser combinator framework written for Java. It constructs parsers in native Java language only. Jparsec stands out for its combinator nature. It is no parser generator like YACC or ANTLR. No extra grammar file is required. Grammar is written in native Java /C# language, which also means you can utilize all the utilities in the Java/.Net community to get your parser fancy. Jparsec is an implementation of Haskell Parsec on the Java platform. Feature highlights: * operator precendence grammar. * accurate error location and customizable error message. * rich set of pre-defined reusable combinator functions. * declarative API that resembles BNF. --------------- Ralph Apel <r.apel at r-apel.de> - 0:2.0-1 - 2.0 --------------- jparsec.src: W: summary-ended-with-dot Java Haskell Parsec parser combinator. jparsec.src: W: specfile-error sh: line 0: fg: no job control jparsec.src: W: specfile-error sh: line 0: fg: no job control jparsec.src: W: source-or-patch-not-bzipped jparsec-build.patch jparsec.src: W: no-signature 1 packages and 0 specfiles checked; 0 errors, 5 warnings. --------------- Index: jparsec.spec =================================================================== RCS file: /home/projects/jpackage/cvs/rpms/free/jparsec/jparsec.spec,v retrieving revision 1.1 diff -u -r1.1 jparsec.spec --- jparsec.spec 5 Oct 2008 19:33:01 -0000 1.1 +++ jparsec.spec 12 Aug 2012 11:44:50 -0000 @@ -1,4 +1,4 @@ -# Copyright (c) 2000-2008, JPackage Project +# Copyright (c) 2000-2012, JPackage Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -29,29 +29,36 @@ # %define section free +%define _binary_payload w9.gzdio +%define _source_payload w9.gzdio +%define _binary_filedigest_algorithm 1 +%define _source_filedigest_algorithm 1 Name: jparsec -Version: 1.2 -Release: 1%{dist} +Version: 2.0 +Release: 1%{?dist} Epoch: 0 Summary: Java Haskell Parsec parser combinator. Group: Development/Libraries/Java License: BSD URL: http://jparsec.codehaus.org/ -Source0: http://dist.codehaus.org/jparsec/distributions/jparsec-1.2.zip -Source1: jparsec-1.2.pom - +Source0: http://dist.codehaus.org/jparsec/distributions/jparsec-2.0.zip +Source1: jparsec-2.0.pom +Patch0: jparsec-build.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: jpackage-utils >= 0:1.7.5 -BuildRequires: java-devel >= 0:1.5.0 -BuildRequires: ant >= 0:1.6.5 +BuildRequires: java-devel >= 0:1.6.0 +BuildRequires: ant >= 0:1.7.1 BuildRequires: ant-junit +BuildRequires: cglib21 +BuildRequires: easymock2 BuildRequires: junit -Requires: java >= 0:1.5.0 +Requires: java >= 0:1.6.0 +Requires: cglib21 Requires(post): jpackage-utils >= 0:1.7.5 Requires(postun): jpackage-utils >= 0:1.7.5 @@ -79,41 +86,38 @@ %description javadoc %{summary}. -%package manual -Summary: Documents for %{name} -Group: Development/Documentation - -%description manual -%{summary}. - - %prep %setup -q -c mkdir src pushd src -unzip -q ../jparsec_src-1.2.zip +unzip -q ../jparsec-2.0_src.zip for j in $(find . -name "*.jar"); do mv $j $j.no done -ln -sf $(build-classpath jfunutil) lib/jfunutil.jar +%patch0 -p1 -b .sav0 +#ln -sf $(build-classpath jfunutil) lib/jfunutil.jar +ln -sf $(build-classpath easymock2) lib/easymock.jar ln -sf $(build-classpath junit) lib/junit.jar +ln -sf $(build-classpath cglib21-nodep) lib/cglib-nodep-2.1_3.jar popd mkdir doc pushd doc -unzip -q ../jparsec_doc-1.2.zip +unzip -q ../jparsec-2.0_doc.zip popd %build pushd src mkdir bin -ant buildlib test doc +ant -Dproject.name=%{name} \ + -Dproject.version=%{version} \ + jar test doc popd %install rm -rf $RPM_BUILD_ROOT # jars install -d -m 755 $RPM_BUILD_ROOT%{_javadir} -install -pm 644 src/bin/jparsec.jar \ +install -pm 644 src/dist/jparsec-2.0.jar \ $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar %add_to_maven_depmap %{name} %{name} %{version} JPP %{name} ln -sf %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar @@ -127,10 +131,6 @@ cp -pr src/docs/parsec/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink -install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} -rm -rf doc/api -cp -pr doc/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} - %clean rm -rf $RPM_BUILD_ROOT @@ -143,7 +143,6 @@ %files %defattr(-,root,root,-) %{_javadir}/*.jar -%doc src/LICENSE.txt %{_datadir}/maven2/poms/* %{_mavendepmapfragdir}/* @@ -152,11 +151,10 @@ %doc %{_javadocdir}/%{name}-%{version} %doc %{_javadocdir}/%{name} -%files manual -%defattr(-,root,root,-) -%doc %{_docdir}/%{name}-%{version} - %changelog +* Sun Aug 12 2012 Ralph Apel <r.apel at r-apel.de> - 0:2.0-1 +- 2.0 + * Mon Oct 06 2008 Ralph Apel <r.apel at r-apel.de> - 0:1.2-1.jpp5 - First release