SPECS: java-xom.spec (NEW) - yet another Java API for parsing XML - initial...
pawelz
pawelz at pld-linux.org
Sat Feb 7 00:44:41 CET 2009
Author: pawelz Date: Fri Feb 6 23:44:41 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- yet another Java API for parsing XML
- initial PLD release
---- Files affected:
SPECS:
java-xom.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/java-xom.spec
diff -u /dev/null SPECS/java-xom.spec:1.1
--- /dev/null Sat Feb 7 00:44:41 2009
+++ SPECS/java-xom.spec Sat Feb 7 00:44:35 2009
@@ -0,0 +1,143 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without javadoc # don't build javadoc
+%bcond_without tests # don't build and run tests
+#
+%include /usr/lib/rpm/macros.java
+#
+%define srcname xom
+%define jaxenver 1.1.1
+Summary: Yet another API for processing XML
+Name: java-xom
+Version: 1.1
+Release: 0.1
+License: LGPL v2.1, BSD-like
+Group: Libraries/Java
+Source0: http://www.cafeconleche.org/XOM/xom-%{version}-src.tar.gz
+# Source0-md5: e5ae82568d7b1faeb950140c34fbbcb1
+Source1: http://dist.codehaus.org/jaxen/distributions/jaxen-%{jaxenver}-src.tar.gz
+# Source1-md5: b598ae6b7e765a92e13667b0a80392f4
+Patch0: %{name}-jaxen-build.patch
+URL: http://www.cafeconleche.org/XOM/
+BuildRequires: java-xalan
+BuildRequires: java-xerces
+BuildRequires: java-xml-commons-external
+BuildRequires: jpackage-utils
+BuildRequires: junit
+BuildRequires: rpm-javaprov
+BuildRequires: rpmbuild(macros) >= 1.300
+Requires: jpackage-utils
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+XOM is an open source, tree-based API for processing XML with Java
+that strives for correctness, simplicity, and performance, in that
+order.
+
+%package javadoc
+Summary: Online manual for %{srcname}
+Summary(pl.UTF-8): Dokumentacja online do %{srcname}
+Group: Documentation
+Requires: jpackage-utils
+
+%description javadoc
+Documentation for %{srcname}.
+
+%description javadoc -l pl.UTF-8
+Dokumentacja do %{srcname}.
+
+%description javadoc -l fr.UTF-8
+Javadoc pour %{srcname}.
+
+%package examples
+Summary: Examples for %{srcname}
+Summary(pl.UTF-8): Przykłady dla pakietu %{srcname}
+Group: Documentation
+Requires: %{srcname} = %{epoch}:%{version}-%{release}
+
+%description examples
+Demonstrations and samples for %{srcname}.
+
+%description examples -l pl.UTF-8
+Pliki demonstracyjne i przykłady dla pakietu %{srcname}.
+
+%prep
+%setup -q -n XOM
+
+%patch0 -p1
+
+mkdir build
+cd build
+tar zxvf %SOURCE1
+mv jaxen-%{jaxenver} jaxen
+cd ..
+
+cat > build.properties << EOF
+build.compiler=gcj
+xml-apis.jar=$(find-jar xml-apis)
+parser.jar=$(find-jar xerces-j2)
+serializer.jar=$(find-jar serializer)
+xslt.jar=$(find-jar xalan.jar)
+junit.jar=$(find-jar junit.jar)
+EOF
+
+# We do not need these jars. We want to use system libs.
+rm -rf lib
+
+%build
+export SHELL=/bin/sh
+
+%ant -propertyfile build.properties minimal jar javadoc
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_javadir}
+
+# jars
+cp -a build/%{srcname}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-%{version}.jar
+ln -s %{srcname}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}.jar
+
+cp -a build/%{srcname}-%{version}-minimal.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-minimal-%{version}.jar
+ln -s %{srcname}-minimal-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-minimal.jar
+
+# javadoc
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version}
+cp -a build/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version}
+ln -s %{srcname}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{srcname} # ghost symlink
+
+# examples
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{srcname}-%{version}/nu/xom/samples/
+cp -a src/nu/xom/samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{srcname}-%{version}/nu/xom/samples/
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post javadoc
+ln -nfs %{srcname}-%{version} %{_javadocdir}/%{srcname}
+
+%files
+%defattr(644,root,root,755)
+%{_javadir}/*.jar
+%doc README.txt Todo.txt
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{srcname}-%{version}
+
+%files javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/%{srcname}-%{version}
+%ghost %{_javadocdir}/%{srcname}
+
+%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 2009/02/06 23:44:35 pawelz
+- yet another Java API for parsing XML
+- initial PLD release
+
================================================================
More information about the pld-cvs-commit
mailing list