SPECS: DbConnectionBroker.spec (NEW) - new

glen glen at pld-linux.org
Thu Feb 15 21:54:49 CET 2007


Author: glen                         Date: Thu Feb 15 20:54:49 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

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

---- Diffs:

================================================================
Index: SPECS/DbConnectionBroker.spec
diff -u /dev/null SPECS/DbConnectionBroker.spec:1.1
--- /dev/null	Thu Feb 15 21:54:49 2007
+++ SPECS/DbConnectionBroker.spec	Thu Feb 15 21:54:44 2007
@@ -0,0 +1,90 @@
+# $Revision$, $Date$
+Summary:	DbConnectionBroker
+Name:		DbConnectionBroker
+Version:	1.0.13
+Release:	0.1
+License:	OSS
+Group:		Development/Languages/Java
+URL:		http://www.javaexchange.com/
+Source0:	ftp://javaexchange.com/javaexchange/%{name}%{version}.tar
+# Source0-md5:	9e433e92a3b613678c8f8e49d299e864
+Source1:	ftp://javaexchange.com/javaexchange/DbConnectionBroker.java
+# Source1-md5:	9dd0e5865c5cfccc127a11a19b4afc18
+BuildRequires:	jdk
+BuildRequires:	jpackage-utils
+BuildRequires:	rpmbuild(macros) >= 1.300
+Requires:	jre
+Obsoletes:	java-DbConnectionBroker
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+DbConnectionBroker is a pure Java package for handling multiple
+concurrent database connections. DbConnectionBroker creates a broker
+with a very simple interface for handing out and returning database
+connections from a configurable pool of connections. The Broker
+creates a dynamic pool of connections and manages them for you with a
+background housekeeping thread.
+
+%package javadoc
+Summary:	Online manual for DbConnectionBroker
+Summary(pl):	Dokumentacja online do DbConnectionBroker
+Group:		Documentation
+Requires:	jpackage-utils
+
+%description javadoc
+Documentation for DbConnectionBroker
+
+%prep
+%setup -qc
+cp %{SOURCE1} com/javaexchange/dbConnectionBroker
+rm -f com/javaexchange/dbConnectionBroker/DbConnectionBroker.class
+
+%build
+%javac com/javaexchange/dbConnectionBroker/DbConnectionBroker.java
+jar cvf DbConnectionBroker.jar com/javaexchange/dbConnectionBroker/DbConnectionBroker.class
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_javadir}
+cp -a DbConnectionBroker.jar $RPM_BUILD_ROOT%{_javadir}/DbConnectionBroker-%{version}.jar
+ln -s DbConnectionBroker-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/DbConnectionBroker.jar
+
+# javadoc
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+cp -pr doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}
+cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{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)
+%{_javadir}/*.jar
+%{_examplesdir}/*
+
+%files javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/%{name}-%{version}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} RPM Team <rpm at cvs.delfi.ee>
+All persons listed below can be reached at <cvs_login>@cvs.delfi.ee
+
+$Log$
+Revision 1.1  2007/02/15 20:54:44  glen
+- new
+
================================================================


More information about the pld-cvs-commit mailing list