From 7b48e3c41f5989bcea07a7bf55586f9ace360355 Mon Sep 17 00:00:00 2001 From: gil Date: Sat, 6 Jan 2024 00:06:03 +0100 Subject: [PATCH] update to 1.1.3 [release 1.1.3-1mamba;Sat Jan 22 2011] --- README.md | 4 + ...ee-libformula-1.1.3-build_properties.patch | 17 ++ java-jfree-libformula.spec | 155 ++++++++++++++++++ 3 files changed, 176 insertions(+) create mode 100644 java-jfree-libformula-1.1.3-build_properties.patch create mode 100644 java-jfree-libformula.spec diff --git a/README.md b/README.md index 7ba2987..333de8a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # java-jfree-libformula +LibFormula provides Excel-Style-Expressions. The implementation provided here is very generic and can be used in any application that needs to compute formulas. + +The syntax is based on the OpenFormula-specifications, but with carefully pruning away all the spreadsheet specific parts (like references to cell-ranges). + diff --git a/java-jfree-libformula-1.1.3-build_properties.patch b/java-jfree-libformula-1.1.3-build_properties.patch new file mode 100644 index 0000000..73cc666 --- /dev/null +++ b/java-jfree-libformula-1.1.3-build_properties.patch @@ -0,0 +1,17 @@ +--- build.properties 2009-11-17 14:01:00.000000000 +0100 ++++ build.properties-gil 2011-01-22 15:54:30.000000000 +0100 +@@ -1,8 +1,10 @@ +-project.revision=TRUNK-SNAPSHOT ++project.revision=1.1.3 + ivy.artifact.group=pentaho-library + ivy.artifact.id=libformula + impl.title=LibFormula + impl.productID=libformula + src.dir=${basedir}/source + dependency.libbase.revision=1.1.3 +-testsrc.dir=${basedir}/test +\ Manca newline alla fine del file ++testsrc.dir=${basedir}/test ++antcontrib.available=true ++build.cache.dir=lib +\ Manca newline alla fine del file diff --git a/java-jfree-libformula.spec b/java-jfree-libformula.spec new file mode 100644 index 0000000..2492369 --- /dev/null +++ b/java-jfree-libformula.spec @@ -0,0 +1,155 @@ +%define with_gcj 1 +%define with_test 0 + +%define javahome %{_jvmdir}/jdk + +Name: java-jfree-libformula +Version: 1.1.3 +Release: 1mamba +Summary: Formula Parser +Group: Development/Libraries/Java +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://reporting.pentaho.org/ +Source: http://sourceforge.net/projects/jfreereport/files/02.%20Libraries/1.1.3-stable/libformula-1.1.3.zip +Patch0: java-jfree-libformula-1.1.3-build_properties.patch +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: java-gcj-compat +BuildRequires: libgcc +BuildRequires: libgcj4-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRequires: ant-contribb3 +BuildRequires: apache-ant +BuildRequires: jakarta-commons-logging +%if %with_test +BuildRequires: jakarta-poi +%endif +BuildRequires: java-jfree-libbase +BuildRequires: java-junit3 +BuildRequires: jpackage-utils +Requires: jakarta-commons-logging +Requires: java-jfree-libbase +Requires: jpackage-utils +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +LibFormula provides Excel-Style-Expressions. The implementation provided here is very generic and can be used in any application that needs to compute formulas. + +The syntax is based on the OpenFormula-specifications, but with carefully pruning away all the spreadsheet specific parts (like references to cell-ranges). + +%if %with_gcj +%package gcj +Group: System/Libraries/Java +Summary: GCJ support for %{name} +Requires: java-gcj-compat + +%description gcj +JFree Java General Serialization Framework Library. + +This package contains GCJ support for %{name}. +%endif + +%package javadoc +Group: Documentation +Summary: Javadoc for %{name} + +%description javadoc +JFree Base Services. + +This package contains documentation for %{name}. + +%prep + +%setup -q -c %{name}-%{version} +%patch0 +for j in $(find . -name "*.jar"); do + rm -rf $j +done + +for txt in ChangeLog.txt licence-LGPL.txt README.txt; do + %{__perl} -pi -e 's/\r$//g' $txt +done + +mkdir -p lib/ant-contrib +ln -sf $(build-classpath commons-logging-api) lib/commons-logging-api-1.0.4.jar +ln -sf $(build-classpath libbase) lib/libbase-%{version}.jar +ln -sf $(build-classpath junit-3.8.2) test-lib/junit-3.8.1.jar +%if %with_test +ln -sf $(build-classpath poi) test-lib/poi-3.0.1-jdk122-final-20071014.jar +%endif +ln -s %{_javadir}/ant/* lib/ant-contrib + +%build +export CLASSPATH="" +CLASSPATH=$CLASSPATH:$(build-classpath ant-contribb3 junit-3.8.2 libbase commons-logging commons-logging-api) +%if %with_test +CLASSPATH=$CLASSPATH:$(build-classpath poi) +%endif +ant \ + jar \ +%if %with_test + test \ +%endif + javadoc + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +mkdir -p %{buildroot}%{_javadir} + +install -pm 644 dist/libformula-%{version}.jar %{buildroot}%{_javadir}/libformula-%{version}.jar + +( + cd %{buildroot}%{_javadir} + for jar in *-%{version}*; do + ln -sf ${jar} ${jar/-%{version}/} + done +) + +mkdir -p %{buildroot}%{_javadocdir}/libformula +cp -pr bin/javadoc/docs/api/* %{buildroot}%{_javadocdir}/libformula + +%if %with_gcj +%{_bindir}/aot-compile-rpm +%endif + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_javadir}/libformula-%{version}.jar +%{_javadir}/libformula.jar +%doc ChangeLog.txt licence-LGPL.txt README.txt + +%if %with_gcj +%post gcj +if [ -x %{_bindir}/rebuild-gcj-db ] ; then + %{_bindir}/rebuild-gcj-db +fi + +%postun gcj +if [ -x %{_bindir}/rebuild-gcj-db ] ; then + %{_bindir}/rebuild-gcj-db +fi + +%files gcj +%defattr(-,root,root) +%{_libdir}/gcj/java-jfree-libformula/libformula-%{version}.jar.db +%{_libdir}/gcj/java-jfree-libformula/libformula-%{version}.jar.so +%endif + +%files javadoc +%defattr(-,root,root) +%{_javadocdir}/libformula + +%changelog +* Sat Jan 22 2011 gil 1.1.3-1mamba +- update to 1.1.3 + +* Wed Dec 09 2009 gil 0.2.0-1mamba +- package created by autospec