From 7f52f1ec6f6763fa854d73df68c57d23f21028494976f4bfda2eef56871231e3 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sat, 15 Dec 2018 13:57:15 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-dbcp?expand=0&rev=20 --- apache-commons-dbcp-javadoc.patch | 16 +- apache-commons-dbcp-jdbc41.patch | 423 ------------------------- apache-commons-dbcp-sourcetarget.patch | 42 +-- apache-commons-dbcp.changes | 21 -- apache-commons-dbcp.spec | 49 ++- commons-dbcp-1.4-src.tar.gz | 3 - commons-dbcp-1.4-src.tar.gz.asc | 7 - commons-dbcp2-2.1.1-src.tar.gz | 3 + commons-dbcp2-2.1.1-src.tar.gz.asc | 7 + 9 files changed, 50 insertions(+), 521 deletions(-) delete mode 100644 apache-commons-dbcp-jdbc41.patch delete mode 100644 commons-dbcp-1.4-src.tar.gz delete mode 100644 commons-dbcp-1.4-src.tar.gz.asc create mode 100644 commons-dbcp2-2.1.1-src.tar.gz create mode 100644 commons-dbcp2-2.1.1-src.tar.gz.asc diff --git a/apache-commons-dbcp-javadoc.patch b/apache-commons-dbcp-javadoc.patch index 7f8a558..db18c96 100644 --- a/apache-commons-dbcp-javadoc.patch +++ b/apache-commons-dbcp-javadoc.patch @@ -1,18 +1,10 @@ ---- commons-dbcp-1.4-src/build.xml 2018-12-13 17:33:38.072128307 +0100 -+++ commons-dbcp-1.4-src/build.xml 2018-12-13 17:34:46.740477159 +0100 -@@ -163,6 +163,7 @@ - - - -- +- - diff --git a/apache-commons-dbcp-jdbc41.patch b/apache-commons-dbcp-jdbc41.patch deleted file mode 100644 index 8c2a946..0000000 --- a/apache-commons-dbcp-jdbc41.patch +++ /dev/null @@ -1,423 +0,0 @@ ---- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/BasicDataSource.java 2010-02-07 17:59:20.000000000 +0100 -+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/BasicDataSource.java 2018-12-13 17:36:19.956950724 +0100 -@@ -24,10 +24,12 @@ - import java.util.ArrayList; - import java.util.Iterator; - import java.util.Collections; -+import java.util.logging.Logger; - import java.sql.Connection; - import java.sql.Driver; - import java.sql.DriverManager; - import java.sql.SQLException; -+import java.sql.SQLFeatureNotSupportedException; - import javax.sql.DataSource; - - import org.apache.commons.pool.KeyedObjectPoolFactory; -@@ -1579,4 +1581,10 @@ - logWriter.println(message); - } - } -+ -+ /* This functionality is not implemented yet */ -+ public Logger getParentLogger() throws SQLFeatureNotSupportedException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ - } ---- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/cpdsadapter/DriverAdapterCPDS.java 2010-02-07 17:59:19.000000000 +0100 -+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/cpdsadapter/DriverAdapterCPDS.java 2018-12-13 17:36:19.956950724 +0100 -@@ -19,10 +19,12 @@ - - import java.util.Hashtable; - import java.util.Properties; -+import java.util.logging.Logger; - import java.io.PrintWriter; - import java.io.Serializable; - import java.sql.DriverManager; - import java.sql.SQLException; -+import java.sql.SQLFeatureNotSupportedException; - import javax.sql.PooledConnection; - import javax.sql.ConnectionPoolDataSource; - import javax.naming.Name; -@@ -719,4 +721,10 @@ - { - _maxPreparedStatements = maxPreparedStatements; - } -+ -+ /* This functionality is not implemented yet */ -+ public Logger getParentLogger() throws SQLFeatureNotSupportedException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ - } ---- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/PerUserPoolDataSource.java 2010-02-07 17:59:20.000000000 +0100 -+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/PerUserPoolDataSource.java 2018-12-13 17:36:19.956950724 +0100 -@@ -21,10 +21,12 @@ - import java.io.ObjectInputStream; - import java.sql.Connection; - import java.sql.SQLException; -+import java.sql.SQLFeatureNotSupportedException; - import java.util.HashMap; - import java.util.Iterator; - import java.util.Map; - import java.util.NoSuchElementException; -+import java.util.logging.Logger; - - import javax.naming.NamingException; - import javax.naming.Reference; -@@ -561,4 +563,10 @@ - CPDSConnectionFactory mgr = (CPDSConnectionFactory) managers.get(key); - return mgr == null ? null : (GenericObjectPool) mgr.getPool(); - } -+ -+ /* This functionality is not implemented yet */ -+ public Logger getParentLogger() throws SQLFeatureNotSupportedException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ - } ---- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/SharedPoolDataSource.java 2010-02-07 17:59:20.000000000 +0100 -+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/datasources/SharedPoolDataSource.java 2018-12-13 17:36:19.956950724 +0100 -@@ -21,6 +21,8 @@ - import java.io.ObjectInputStream; - import java.sql.Connection; - import java.sql.SQLException; -+import java.sql.SQLFeatureNotSupportedException; -+import java.util.logging.Logger; - - import javax.naming.NamingException; - import javax.naming.Reference; -@@ -269,5 +271,11 @@ - throw new IOException("NamingException: " + e); - } - } -+ -+ /* This functionality is not implemented yet */ -+ public Logger getParentLogger() throws SQLFeatureNotSupportedException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ - } - ---- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingCallableStatement.java 2010-02-07 17:59:20.000000000 +0100 -+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingCallableStatement.java 2018-12-13 17:36:19.956950724 +0100 -@@ -37,6 +37,7 @@ - import java.sql.RowId; - import java.sql.SQLXML; - /* JDBC_4_ANT_KEY_END */ -+import java.sql.SQLFeatureNotSupportedException; - - /** - * A base delegating implementation of {@link CallableStatement}. -@@ -661,4 +662,14 @@ - } - } - /* JDBC_4_ANT_KEY_END */ -+ -+ /* This functionality is not implemented yet */ -+ public T getObject(String columnLabel, Class type) throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ -+ /* This functionality is not implemented yet */ -+ public T getObject(int columnIndex, Class type) throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } - } ---- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingConnection.java 2010-02-07 17:59:20.000000000 +0100 -+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingConnection.java 2018-12-13 17:36:19.956950724 +0100 -@@ -27,6 +27,7 @@ - import java.util.Iterator; - import java.util.List; - import java.util.Map; -+import java.util.concurrent.Executor; - import java.sql.ResultSet; - /* JDBC_4_ANT_KEY_BEGIN */ - import java.sql.Array; -@@ -40,6 +41,7 @@ - import java.util.Collections; - import java.util.Properties; - /* JDBC_4_ANT_KEY_END */ -+import java.sql.SQLFeatureNotSupportedException; - - /** - * A base delegating implementation of {@link Connection}. -@@ -679,4 +681,30 @@ - } - } - /* JDBC_4_ANT_KEY_END */ -+ -+ /* This functionality is not implemented yet */ -+ public int getNetworkTimeout() throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ -+ /* This functionality is not implemented yet */ -+ public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException { -+ throw new SQLFeatureNotSupportedException(); - } -+ -+ /* This functionality is not implemented yet */ -+ public void abort(Executor executor) throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ -+ /* This functionality is not implemented yet */ -+ public String getSchema() throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ -+ /* This functionality is not implemented yet */ -+ public void setSchema(String schema) throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+} -+ ---- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingDatabaseMetaData.java 2010-02-07 17:59:20.000000000 +0100 -+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingDatabaseMetaData.java 2018-12-13 17:36:19.956950724 +0100 -@@ -24,6 +24,7 @@ - import java.sql.RowIdLifetime; - /* JDBC_4_ANT_KEY_END */ - import java.sql.SQLException; -+import java.sql.SQLFeatureNotSupportedException; - - /** - * A base delegating implementation of {@link DatabaseMetaData}. -@@ -1208,4 +1209,13 @@ - - /* JDBC_4_ANT_KEY_END */ - -+ /* This functionality is not implemented yet */ -+ public boolean generatedKeyAlwaysReturned() throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ -+ /* This functionality is not implemented yet */ -+ public ResultSet getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } - } ---- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingPreparedStatement.java 2010-02-07 17:59:20.000000000 +0100 -+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingPreparedStatement.java 2018-12-13 17:36:19.956950724 +0100 -@@ -34,6 +34,7 @@ - import java.sql.RowId; - import java.sql.SQLXML; - /* JDBC_4_ANT_KEY_END */ -+import java.sql.SQLFeatureNotSupportedException; - - /** - * A base delegating implementation of {@link PreparedStatement}. -@@ -402,4 +403,15 @@ - } - } - /* JDBC_4_ANT_KEY_END */ -+ -+ /* This functionality is not implemented yet */ -+ public boolean isCloseOnCompletion() throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ -+ /* This functionality is not implemented yet */ -+ public void closeOnCompletion() throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ - } ---- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingResultSet.java 2010-02-07 17:59:20.000000000 +0100 -+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingResultSet.java 2018-12-13 17:36:19.956950724 +0100 -@@ -40,6 +40,7 @@ - import java.sql.RowId; - import java.sql.SQLXML; - /* JDBC_4_ANT_KEY_END */ -+import java.sql.SQLFeatureNotSupportedException; - - /** - * A base delegating implementation of {@link ResultSet}. -@@ -1079,4 +1080,14 @@ - } - } - /* JDBC_4_ANT_KEY_END */ -+ -+ /* This functionality is not implemented yet */ -+ public T getObject(String columnLabel, Class type) throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ -+ /* This functionality is not implemented yet */ -+ public T getObject(int columnIndex, Class type) throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } - } ---- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingStatement.java 2010-02-07 17:59:20.000000000 +0100 -+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/DelegatingStatement.java 2018-12-13 17:36:19.960950745 +0100 -@@ -22,6 +22,7 @@ - import java.sql.SQLException; - import java.sql.SQLWarning; - import java.sql.Statement; -+import java.sql.SQLFeatureNotSupportedException; - import java.util.List; - - /** -@@ -386,4 +387,15 @@ - } - } - /* JDBC_4_ANT_KEY_END */ -+ -+ /* This functionality is not implemented yet */ -+ public boolean isCloseOnCompletion() throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ -+ /* This functionality is not implemented yet */ -+ public void closeOnCompletion() throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ - } ---- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableCallableStatement.java 2010-02-07 17:59:20.000000000 +0100 -+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolableCallableStatement.java 2018-12-13 17:36:19.960950745 +0100 -@@ -21,6 +21,7 @@ - import java.sql.Connection; - import java.sql.ResultSet; - import java.sql.SQLException; -+import java.sql.SQLFeatureNotSupportedException; - import java.util.List; - - import org.apache.commons.pool.KeyedObjectPool; -@@ -123,4 +124,13 @@ - super.passivate(); - } - -+ /* This functionality is not implemented yet */ -+ public T getObject(String columnLabel, Class type) throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ -+ /* This functionality is not implemented yet */ -+ public T getObject(int columnIndex, Class type) throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } - } ---- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolablePreparedStatement.java 2010-02-07 17:59:20.000000000 +0100 -+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolablePreparedStatement.java 2018-12-13 17:36:19.960950745 +0100 -@@ -21,6 +21,7 @@ - import java.sql.PreparedStatement; - import java.sql.ResultSet; - import java.sql.SQLException; -+import java.sql.SQLFeatureNotSupportedException; - import java.util.List; - - import org.apache.commons.pool.KeyedObjectPool; -@@ -137,4 +138,14 @@ - super.passivate(); - } - -+ /* This functionality is not implemented yet */ -+ public boolean isCloseOnCompletion() throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ -+ /* This functionality is not implemented yet */ -+ public void closeOnCompletion() throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ - } ---- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingConnection.java 2010-02-07 17:59:20.000000000 +0100 -+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingConnection.java 2018-12-13 17:36:19.960950745 +0100 -@@ -21,8 +21,10 @@ - import java.sql.Connection; - import java.sql.PreparedStatement; - import java.sql.SQLException; -+import java.sql.SQLFeatureNotSupportedException; - - import java.util.NoSuchElementException; -+import java.util.concurrent.Executor; - - import org.apache.commons.pool.KeyedObjectPool; - import org.apache.commons.pool.KeyedPoolableObjectFactory; -@@ -455,4 +457,30 @@ - return buf.toString(); - } - } -+ -+ /* This functionality is not implemented yet */ -+ public int getNetworkTimeout() throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ -+ /* This functionality is not implemented yet */ -+ public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException { -+ throw new SQLFeatureNotSupportedException(); - } -+ -+ /* This functionality is not implemented yet */ -+ public void abort(Executor executor) throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ -+ /* This functionality is not implemented yet */ -+ public String getSchema() throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ -+ /* This functionality is not implemented yet */ -+ public void setSchema(String schema) throws SQLException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+} -+ ---- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingDataSource.java 2010-02-07 17:59:20.000000000 +0100 -+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingDataSource.java 2018-12-13 17:36:19.960950745 +0100 -@@ -23,10 +23,12 @@ - import java.sql.DatabaseMetaData; - import java.sql.PreparedStatement; - import java.sql.SQLException; -+import java.sql.SQLFeatureNotSupportedException; - import java.sql.SQLWarning; - import java.sql.Statement; - import java.util.Map; - import java.util.NoSuchElementException; -+import java.util.logging.Logger; - - import javax.sql.DataSource; - -@@ -437,4 +439,9 @@ - } - } - } -+ -+ /* This functionality is not implemented yet */ -+ public Logger getParentLogger() throws SQLFeatureNotSupportedException { -+ throw new SQLFeatureNotSupportedException(); -+ } - } ---- commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingDriver.java 2010-02-07 17:59:20.000000000 +0100 -+++ commons-dbcp-1.4-src/src/java/org/apache/commons/dbcp/PoolingDriver.java 2018-12-13 17:36:19.960950745 +0100 -@@ -27,6 +27,7 @@ - import java.sql.DriverPropertyInfo; - import java.sql.PreparedStatement; - import java.sql.SQLException; -+import java.sql.SQLFeatureNotSupportedException; - import java.sql.SQLWarning; - import java.sql.Statement; - import java.util.HashMap; -@@ -34,6 +35,7 @@ - import java.util.NoSuchElementException; - import java.util.Properties; - import java.util.Set; -+import java.util.logging.Logger; - - import org.apache.commons.jocl.JOCLContentHandler; - import org.apache.commons.pool.ObjectPool; -@@ -496,4 +498,10 @@ - } - } - } -+ -+ /* This functionality is not implemented yet */ -+ public Logger getParentLogger() throws SQLFeatureNotSupportedException { -+ throw new SQLFeatureNotSupportedException(); -+ } -+ - } diff --git a/apache-commons-dbcp-sourcetarget.patch b/apache-commons-dbcp-sourcetarget.patch index ff4a76b..8ddfc5c 100644 --- a/apache-commons-dbcp-sourcetarget.patch +++ b/apache-commons-dbcp-sourcetarget.patch @@ -1,35 +1,27 @@ ---- commons-dbcp-1.4-src/build.xml 2010-02-07 17:59:20.000000000 +0100 -+++ commons-dbcp-1.4-src/build.xml 2018-12-13 17:31:58.987624926 +0100 -@@ -133,6 +133,7 @@ - - - -+ +--- commons-dbcp2-2.1.1-src/build.xml 2018-05-15 11:17:10.227422992 +0200 ++++ commons-dbcp2-2.1.1-src/build.xml 2018-05-15 11:24:49.257464289 +0200 +@@ -58,7 +58,8 @@ + + + +- ++ ++ - - -@@ -153,7 +154,8 @@ - - - -- -+ -+ - - - -@@ -194,7 +196,8 @@ + + +@@ -161,7 +160,8 @@ debug="${javac.debug}" deprecation="${javac.deprecation}" optimize="${javac.optimize}" - source="${javac.source}"> + source="${javac.source}" + target="${javac.target}"> - - + + +@@ -176,7 +176,8 @@ + includeantruntime="false" deprecation="${javac.deprecation}" optimize="${javac.optimize}" - source="${javac.source}"> diff --git a/apache-commons-dbcp.changes b/apache-commons-dbcp.changes index 22ff897..e53d09c 100644 --- a/apache-commons-dbcp.changes +++ b/apache-commons-dbcp.changes @@ -1,24 +1,3 @@ -------------------------------------------------------------------- -Thu Dec 13 16:43:55 UTC 2018 - Fridrich Strba - -- Downgrade to version 1.4 - * the %{name} >= 2.0 is packaged in a separate new %{name}2 - package -- Modified patches: - * apache-commons-dbcp-javadoc.patch - * apache-commons-dbcp-sourcetarget.patch - + rediff and modify to the different context - + build with source/target 1.7 -- Added patch: - * apache-commons-dbcp-jdbc41.patch - + support jdbc version 4.1, specified by a maintenance - release 1 of JSR 221 and included in Java 7 - -------------------------------------------------------------------- -Thu Dec 13 11:13:42 UTC 2018 - Fridrich Strba - -- Add maven pom file and alias for previous version of commons-dbcp - ------------------------------------------------------------------- Tue May 15 09:30:50 UTC 2018 - fstrba@suse.com diff --git a/apache-commons-dbcp.spec b/apache-commons-dbcp.spec index ea03cde..1bbdd58 100644 --- a/apache-commons-dbcp.spec +++ b/apache-commons-dbcp.spec @@ -17,42 +17,40 @@ %define base_name dbcp -%define short_name commons-%{base_name} -Name: apache-%{short_name} -Version: 1.4 +%define short_name commons-%{base_name}2 +Name: apache-commons-dbcp +Version: 2.1.1 Release: 0 Summary: Jakarta Commons DataBase Pooling Package License: Apache-2.0 Group: Development/Libraries/Java -URL: https://commons.apache.org/proper/commons-dbcp/ +Url: https://commons.apache.org/proper/commons-dbcp/ Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz Source100: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz.asc Source101: commons.keyring Patch0: apache-commons-dbcp-sourcetarget.patch Patch1: apache-commons-dbcp-javadoc.patch -Patch2: apache-commons-dbcp-jdbc41.patch BuildRequires: ant >= 1.6.5 BuildRequires: apache-commons-logging -BuildRequires: apache-commons-parent -BuildRequires: apache-commons-pool +BuildRequires: apache-commons-pool2 BuildRequires: fdupes BuildRequires: geronimo-jta-1_1-api BuildRequires: java-devel >= 1.7 -BuildRequires: javapackages-local +BuildRequires: javapackages-tools BuildRequires: jdbc-stdext >= 2.0 BuildRequires: junit >= 3.8.1 BuildRequires: xerces-j2 -Requires: apache-commons-parent Requires: commons-collections >= 3.2 -Requires: commons-pool +Requires: commons-pool2 Requires: jta_api >= 1.1 Requires(post): update-alternatives Requires(preun): update-alternatives Provides: %{short_name} = %{version}-%{release} Obsoletes: %{short_name} < %{version} Provides: hibernate_jdbc_cache -Provides: jakarta-commons-dbcp = %{version} -Obsoletes: jakarta-commons-dbcp < %{version} +Provides: jakarta-commons-dbcp2 = %{version} +Obsoletes: jakarta-commons-dbcp2 < %{version} +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description @@ -83,13 +81,12 @@ features. %setup -q -n %{short_name}-%{version}-src %patch0 -p1 %patch1 -p1 -%patch2 -p1 # remove all binary libs find . -name "*.jar" -exec rm -f {} \; %build ant \ - -Dcommons-pool.jar=$(build-classpath commons-pool) \ + -Dcommons-pool.jar=$(build-classpath commons-pool2) \ -Djdbc20ext.jar=$(build-classpath jdbc-stdext) \ -Djunit.jar=$(build-classpath junit) \ -Dxerces.jar=$(build-classpath xerces-j2) \ @@ -102,13 +99,9 @@ ant \ %install # jars install -d -m 755 %{buildroot}%{_javadir} -install -m 644 dist/%{short_name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar +install -m 644 dist/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}2-%{version}.jar (cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"`; done) (cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) -# pom -install -d -m 755 %{buildroot}%{_mavenpomdir} -install -m 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}-%{version}.pom -%add_maven_depmap %{name}-%{version}.pom %{name}-%{version}.jar # javadoc install -d -m 755 %{buildroot}%{_javadocdir}/%{name} cp -pr dist/docs/* %{buildroot}%{_javadocdir}/%{name} @@ -119,29 +112,25 @@ ln -sf %{_sysconfdir}/alternatives/hibernate_jdbc_cache.jar %{buildroot}%{_javad %post update-alternatives --install %{_javadir}/hibernate_jdbc_cache.jar \ - hibernate_jdbc_cache %{_javadir}/%{name}.jar 60 + hibernate_jdbc_cache %{_javadir}/%{name}2.jar 60 %preun if [ $1 -eq 0 ] ; then - update-alternatives --remove hibernate_jdbc_cache %{_javadir}/%{name}.jar + update-alternatives --remove hibernate_jdbc_cache %{_javadir}/%{name}2.jar fi %files -%license LICENSE.txt -%{_javadir}/%{name}.jar -%{_javadir}/%{name}-%{version}.jar +%defattr(-,root,root) +%doc LICENSE.txt +%{_javadir}/%{name}2.jar +%{_javadir}/%{name}2-%{version}.jar %{_javadir}/%{short_name}.jar %{_javadir}/%{short_name}-%{version}.jar %{_javadir}/hibernate_jdbc_cache.jar %ghost %{_sysconfdir}/alternatives/hibernate_jdbc_cache.jar -%{_mavenpomdir}/%{name}-%{version}.pom -%if %{defined _maven_repository} -%{_mavendepmapfragdir}/%{name} -%else -%{_datadir}/maven-metadata/%{name}.xml* -%endif %files javadoc +%defattr(-,root,root) %doc %{_javadocdir}/%{name} %changelog diff --git a/commons-dbcp-1.4-src.tar.gz b/commons-dbcp-1.4-src.tar.gz deleted file mode 100644 index 090d885..0000000 --- a/commons-dbcp-1.4-src.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f5f10846e79fc71121fe7402c61d71575506b01b59e719e974ebc4d99e6df283 -size 932507 diff --git a/commons-dbcp-1.4-src.tar.gz.asc b/commons-dbcp-1.4-src.tar.gz.asc deleted file mode 100644 index 4f0d6db..0000000 --- a/commons-dbcp-1.4-src.tar.gz.asc +++ /dev/null @@ -1,7 +0,0 @@ ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.8 (Darwin) - -iEYEABECAAYFAktu/tMACgkQzTA4/vB9Vn5rDQCeKobwR+L2onRw+4wr+YjmtchJ -7TAAn25asI5AyQ4KFJhdvveuwcZHi/Rh -=PMaD ------END PGP SIGNATURE----- diff --git a/commons-dbcp2-2.1.1-src.tar.gz b/commons-dbcp2-2.1.1-src.tar.gz new file mode 100644 index 0000000..9a67fab --- /dev/null +++ b/commons-dbcp2-2.1.1-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c509e55713ff23f0c2a93c399af6fc916d287a6b060cd6d1c98b6974dff361c +size 581666 diff --git a/commons-dbcp2-2.1.1-src.tar.gz.asc b/commons-dbcp2-2.1.1-src.tar.gz.asc new file mode 100644 index 0000000..215dc32 --- /dev/null +++ b/commons-dbcp2-2.1.1-src.tar.gz.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- +Comment: GPGTools - http://gpgtools.org + +iEYEABECAAYFAlW+uDUACgkQzTA4/vB9Vn7jsACeIlk37QS4YyOauaY185Ha+MsW +SqQAoJjbekNH1ziwSRPqsMmWn8aLfs1L +=uAl0 +-----END PGP SIGNATURE-----