diff --git a/java-flute-1.3-build.properties b/java-flute-1.3-build.properties deleted file mode 100644 index e945ca4..0000000 --- a/java-flute-1.3-build.properties +++ /dev/null @@ -1,15 +0,0 @@ -flute.name=flute -flute.version=@VERSION@ -build.debug=true -build.optimize=false -build.deprecation=true -build.target=@TARGET@ -build.source=@SOURCE@ -libdir=lib -junit-dir=lib -targetdir= -manifest-lib-prefix=lib/ -sac-jar-file=sac.jar -javacchome=lib -flute-jar-file=${flute.name}-${flute.version}.jar - diff --git a/java-flute.spec b/java-flute.spec index ce4a1a3..4b65315 100644 --- a/java-flute.spec +++ b/java-flute.spec @@ -1,109 +1,36 @@ -%define with_gcj 1 +%define pkgver %(echo %version | cut -d. -f1-2) %define javahome %{_jvmdir}/jdk Name: java-flute Version: 1.3.0 -Release: 2mamba +Release: 3mamba Summary: Java CSS parser using SAC Group: Development/Libraries/Java Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://www.w3.org/Style/CSS/SAC/ -# http://sourceforge.net/projects/jfreereport/ -# cvs -d:pserver:anonymous@jfreereport.cvs.sourceforge.net:/cvsroot/jfreereport login -# cvs -z3 -d:pserver:anonymous@jfreereport.cvs.sourceforge.net:/cvsroot/jfreereport co -P flute -#Source: flute-%{version}-src-cvs.tar.gz -Source: http://downloads.sourceforge.net/project/jfreereport/30.%20OpenOffice%20Branches/OOo31/flute-%{version}-OOo31.zip -Source1: java-flute-1.3-build.properties +URL: https://www.w3.org/Style/CSS/SAC/ +Source: https://www.w3.org/2002/06/flutejava-%{pkgver}.zip License: W3C, LGPL ## AUTOBUILDREQ-BEGIN -BuildRequires: glibc-devel -BuildRequires: java-gcj-compat -BuildRequires: libgcc -BuildRequires: libgcj4-devel -BuildRequires: libz-devel ## AUTOBUILDREQ-END -BuildRequires: apache-ant -%if "%{stage1}" != "1" -BuildRequires: javacc -BuildRequires: java-sac -%endif -BuildRequires: java-junit3 -BuildRequires: jpackage-utils -%if "%{stage1}" != "1" +BuildRequires: javapackages Requires: java-sac -%endif -Requires: jpackage-utils -BuildRoot: %{_tmppath}/%{name}-%{version}-root +Requires: javapackages %description A Cascading Style Sheets parser using the Simple API for CSS, for Java. -%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 -A Cascading Style Sheets parser using the Simple API for CSS, for Java. - -This package contains documentation for %{name}. - %prep -%setup -q -c -n flute - -for j in $(find . -name "*.jar"); do - rm -rf $j -done - -for txt in ChangeLog COPYRIGHT.html README.txt; do - %{__perl} -pi -e 's/\r$//g' $txt -done - -mkdir -p lib -ln -sf $(build-classpath sac) lib/sac.jar -ln -sf $(build-classpath junit-3.8.2) lib/junit.jar -ln -sf $(build-classpath javacc) lib/javacc.jar +%setup -q -n flute-%{pkgver} %build -%if "%{stage1}" != "1" -export CLASSPATH=$(build-classpath junit-3.8.2 javacc sac) -%else -export CLASSPATH=$(build-classpath junit-3.8.2) -%endif -ant jar javadoc %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_javadir} - -install -pm 644 build/lib/flute.jar %{buildroot}%{_javadir}/flute-%{version}.jar - -( - cd %{buildroot}%{_javadir} - for jar in *-%{version}*; do - ln -sf ${jar} ${jar/-%{version}/} - done -) - -mkdir -p %{buildroot}%{_javadocdir}/flute -cp -pr build/api/* %{buildroot}%{_javadocdir}/flute - -%if %with_gcj -%{_bindir}/aot-compile-rpm -%endif +install -pm 644 flute.jar %{buildroot}%{_javadir}/flute-%{version}.jar +ln -sf flute-%{version}.jar %{buildroot}%{_javadir}/flute.jar %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -112,30 +39,12 @@ cp -pr build/api/* %{buildroot}%{_javadocdir}/flute %defattr(-,root,root) %{_javadir}/flute-%{version}.jar %{_javadir}/flute.jar -%doc ChangeLog COPYRIGHT.html 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-flute/flute-%{version}.jar.db -%{_libdir}/gcj/java-flute/flute-%{version}.jar.so -%endif - -%files javadoc -%defattr(-,root,root) -%{_javadocdir}/flute +%doc COPYRIGHT.html %changelog +* Thu Dec 02 2021 Silvan Calarco 1.3.0-3mamba +- rebuilt using upstream jar + * Sat Jan 22 2011 gil 1.3.0-2mamba - rebuilt devel - add gcj sub package