SPECS: castor.spec (NEW) - NFY

glen glen at pld-linux.org
Thu May 11 01:24:08 CEST 2006


Author: glen                         Date: Wed May 10 23:24:08 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- NFY

---- Files affected:
SPECS:
   castor.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/castor.spec
diff -u /dev/null SPECS/castor.spec:1.1
--- /dev/null	Thu May 11 01:24:08 2006
+++ SPECS/castor.spec	Thu May 11 01:24:03 2006
@@ -0,0 +1,178 @@
+# $Revision$, $Date$
+Summary:	An open source data binding framework for Java
+Name:		castor
+Version:	0.9.6
+Release:	1jpp
+License:	Exolab Software License, BSD-like
+Group:		Development/Languages/Java
+URL:		http://castor.codehaus.org/
+Source0:	http://dist.codehaus.org/castor/0.9.6/%{name}-%{version}-src.tgz
+# Source0-md5:	3ec1b9623f04b86f157738bd3f10a847
+BuildRequires:	adaptx
+BuildRequires:	cglib
+BuildRequires:	jakarta-ant
+BuildRequires:	jakarta-oro
+BuildRequires:	jakarta-regexp
+BuildRequires:	jdbc-stdext
+BuildRequires:	jdk
+BuildRequires:	jndi
+#BuildRequires:	jpackage-utils >= 0:1.5.39
+BuildRequires:	jta
+BuildRequires:	junit
+BuildRequires:	ldapsdk
+BuildRequires:	xerces-j
+Requires:	adaptx
+Requires:	cglib
+Requires:	jakarta-regexp
+Requires:	java
+Requires:	jdbc-stdext
+Requires:	jndi
+Requires:	jta
+Requires:	ldapjdk
+Requires:	oro
+Requires:	xerces-j
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Castor is an open source data binding framework for Java. It's
+basically the shortest path between Java objects, XML documents and
+SQL tables. Castor provides Java to XML binding, Java to SQL
+persistence, and then some more.
+
+%package test
+Summary:	Tests for %{name}
+Group:		Development/Languages/Java
+Requires:	%{name} = %{version}-%{release}
+Requires:	junit
+
+%description test
+Tests for %{name}.
+
+%package xml
+Summary:	XML support for %{name}
+Group:		Development/Languages/Java
+Requires:	%{name} = %{version}-%{release}
+
+%description xml
+XML support for Castor.
+
+%package javadoc
+Summary:	Javadoc for %{name}
+Group:		Documentation
+
+%description javadoc
+Javadoc for %{name}.
+
+%package doc
+Summary:	Documentation for %{name}
+Group:		Documentation
+
+%description doc
+Documentation for %{name}.
+
+%prep
+%setup -q
+find . -name "*.jar" -exec rm -f {} \;
+perl -p -i -e 's|org.apache.xerces.utils.regex|org.apache.xerces.impl.xpath.regex|g;' \
+src/main/org/exolab/castor/util/XercesRegExpEvaluator.java
+find . -name "*.java" -exec perl -p -i -e 's|assert\(|assertTrue\(|g;' {} \;
+find . -name "*.java" -exec perl -p -i -e 's|_test.name\(\)|_test.getName\(\)|g;' {} \;
+
+%build
+[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
+export CLASSPATH=%(build-classpath adaptx cglib jdbc-stdext jndi jta junit ldapjdk oro regexp xerces-j2)
+ant -buildfile src/build.xml jar
+ant -buildfile src/build.xml CTFjar
+ant -buildfile src/build.xml javadoc
+
+%install
+rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
+
+# jar
+install -d $RPM_BUILD_ROOT%{_javadir}
+install dist/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
+install dist/%{name}-%{version}-xml.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-xml-%{version}.jar
+install dist/CTF-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-tests-%{version}.jar
+pushd $RPM_BUILD_ROOT%{_javadir}
+   for jar in *-%{version}.jar; do
+      ln -sf ${jar} $(echo $jar| sed  -e "s|-%{version}||g")
+   done
+popd
+
+# javadoc
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+%{__cp} -pr build/doc/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+
+# do this last, since it will delete all build directories
+export CLASSPATH=%(build-classpath adaptx)
+ant -buildfile src/build.xml doc
+
+# like magic
+%jpackage_script org.exolab.castor.builder.SourceGenerator %{nil} %{nil} xerces-j2:%{name} %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post javadoc
+rm -f %{_javadocdir}/%{name}
+ln -s %{name}-%{version} %{_javadocdir}/%{name}
+
+%postun javadoc
+if [ "$1" = "0" ]; then
+    rm -f %{_javadocdir}/%{name}
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc src%{_sysconfdir}/{CHANGELOG,LICENSE,README}
+%attr(755,root,root) %{_bindir}/%{name}
+%{_javadir}/%{name}-%{version}.jar
+%{_javadir}/%{name}.jar
+
+%files test
+%defattr(644,root,root,755)
+%{_javadir}/%{name}-tests-%{version}.jar
+%{_javadir}/%{name}-tests.jar
+
+%files xml
+%defattr(644,root,root,755)
+%{_javadir}/%{name}-xml-%{version}.jar
+%{_javadir}/%{name}-xml.jar
+
+%files javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/%{name}-%{version}
+
+%files doc
+%defattr(644,root,root,755)
+%doc build/doc/*
+
+%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  2006/05/10 23:24:03  glen
+- NFY
+
+* Thu May 19 2005 Ralph Apel <r.apel at r-apel.de> 0:0.9.6-1jpp
+- 0.9.6
+
+* Wed Nov 3 2004 Nicolas Mailhot <nim at jpackage.org> - 0:0.9.5-3jpp
+- Clean up specfile a bit
+- Kill demos as they no longer build with latest servlet.jar
+
+* Fri Aug 20 2004 Ralph Apel <r.apel at r-apel.de> 0:0.9.5-2jpp
+- Build with ant-1.6.2
+
+* Tue Sep 09 2003 David Walluck <david at anti-microsoft.org> 0:0.9.5-1jpp
+- 0.9.5
+
+* Fri May 16 2003 Nicolas Mailhot <Nicolas.Mailhot at laPoste.net> 0:0.9.4.3-2jpp
+- use same lsapjdk package as tyrex
+
+* Sat May 10 2003 David Walluck <david at anti-microsoft.org> 0:0.9.4.3-1jpp
+- release
================================================================


More information about the pld-cvs-commit mailing list