%define pkgver 1_0 Name: java-sun-jts Version: 1.0 Release: 1mamba Summary: Java(TM) Transaction Service (JTS) 1.0 Group: Development/Libraries/Java Vendor: openmamba Distribution: openmamba Packager: gil URL: http://java.sun.com/javaee/technologies/jts/index.jsp #http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jts1_0.zip?BundledLineItemUUID=zyNIBe.oNE0AAAEhvapweLMT&OrderID=8m1IBe.oqsoAAAEhr6pweLMT&ProductID=2fTACUFBG6YAAAEYHVA5AXis&FileName=/jts1_0.zip Source0: jts%{pkgver}.zip #http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jts1_0-spec.pdf?BundledLineItemUUID=6oFIBe.oxMcAAAEhlDNweLN7&OrderID=HbRIBe.oNm0AAAEhezNweLN7&ProductID=X3jACUFB7JYAAAEYO0U5AXis&FileName=/jts1_0-spec.pdf Source1: jts%{pkgver}-spec.pdf Source2: jts%{pkgver}-LICENSE License: Sun Binary Code License BuildRoot: %{_tmppath}/%{name}-%{version}-root %description JavaTM Transaction Service (JTS) specifies the implementation of a Transaction Manager which supports the JavaTM Transaction API (JTA) 1.0 Specification at the high-level and implements the Java mapping of the OMG Object Transaction Service (OTS) 1.1 Specification at the low-level. JTS uses the standard CORBA ORB/TS interfaces and Internet Inter-ORB Protocol (IIOP) for transaction context propagation between JTS Transaction Managers. A JTS Transaction Manager provides transaction services to the parties involved in distributed transactions: the application server, the resource manager, the standalone transactional application, and the Communication Resource Manager (CRM). %package javadoc Group: Documentation Summary: Javadoc for %{name} %description javadoc Java(TM) Transaction Service (JTS) 1.0. This package contains javadoc for %{name} %prep %setup -q -c -n %{name}-%{version} cp %{S:1} spec.pdf cp %{S:2} LICENSE rm -rf classes/* chmod -R go=u+w * %build JAVA_HOME=%{_libdir}/jvm/jdk pushd src find . -name "*.java" > ../file.list $JAVA_HOME/bin/javac -d ../classes \ -encoding iso-8859-1 \ @../file.list $JAVA_HOME/bin/javadoc -d ../javadoc \ -encoding iso-8859-1 \ @../file.list popd $JAVA_HOME/bin/jar cvf jts.jar -C classes . %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_javadir} install -m 644 jts.jar %{buildroot}%{_javadir}/jts-%{version}.jar ( cd %{buildroot}%{_javadir} for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` done ) mkdir -p %{buildroot}%{_javadocdir}/jts-%{version} cp -pr javadoc/* %{buildroot}%{_javadocdir}/jts-%{version} ln -sf jts-%{version} %{buildroot}%{_javadocdir}/jts mkdir -p %{buildroot}%{_datadir}/ots install -m 644 *.idl %{buildroot}%{_datadir}/ots %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_javadir}/jts-%{version}.jar %{_javadir}/jts.jar %dir %{_datadir}/ots %{_datadir}/ots/*.idl %doc LICENSE spec.pdf %files javadoc %defattr(-,root,root) %{_javadocdir}/jts-%{version} %{_javadocdir}/jts %changelog * Sat Jun 06 2009 gil 1.0-1mamba - package created by autospec