diff --git a/README.md b/README.md index 5d792ee..63b2732 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # java-flute +A Cascading Style Sheets parser using the Simple API for CSS, for Java. + diff --git a/java-flute-1.3-build.properties b/java-flute-1.3-build.properties new file mode 100644 index 0000000..e945ca4 --- /dev/null +++ b/java-flute-1.3-build.properties @@ -0,0 +1,15 @@ +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 new file mode 100644 index 0000000..ce4a1a3 --- /dev/null +++ b/java-flute.spec @@ -0,0 +1,145 @@ +%define with_gcj 1 +%define javahome %{_jvmdir}/jdk +Name: java-flute +Version: 1.3.0 +Release: 2mamba +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 +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" +Requires: java-sac +%endif +Requires: jpackage-utils +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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 + +%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 + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%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 + +%changelog +* Sat Jan 22 2011 gil 1.3.0-2mamba +- rebuilt devel +- add gcj sub package +- rebuilt with java-openjdk + +* Wed Dec 09 2009 gil 1.3.0-1mamba +- package created by autospec