spike 83a1a7
%global base_name       dbcp
spike 83a1a7
%global short_name      commons-%{base_name}
spike 83a1a7
spike 83a1a7
Name:             apache-%{short_name}
spike 83a1a7
Version:          1.4
Fedora Release Engineering 03effa
Release:          23%{?dist}
spike 83a1a7
Summary:          Apache Commons DataBase Pooling Package
spike 83a1a7
Group:            Development/Libraries
spike 83a1a7
License:          ASL 2.0
spike 83a1a7
URL:              http://commons.apache.org/%{base_name}/
Mikolaj Izdebski 45ce3d
BuildArch:        noarch
Mikolaj Izdebski 45ce3d
spike 83a1a7
Source0:          http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
spike 83a1a7
Deepak Bhole 189cf8
Patch0:           jdbc41.patch
spike 83a1a7
Mikolaj Izdebski 45ce3d
BuildRequires:  maven-local
Mikolaj Izdebski 45ce3d
BuildRequires:  mvn(commons-logging:commons-logging)
Mikolaj Izdebski 45ce3d
BuildRequires:  mvn(commons-pool:commons-pool)
Mikolaj Izdebski 45ce3d
BuildRequires:  mvn(junit:junit)
Mikolaj Izdebski 45ce3d
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
Mikolaj Izdebski 45ce3d
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec)
Mikolaj Izdebski 45ce3d
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
spike 83a1a7
spike 83a1a7
%description
Stanislav Ochotnicky a068e9
Many Apache projects support interaction with a relational database. Creating a
Stanislav Ochotnicky a068e9
new connection for each user can be time consuming (often requiring multiple
Stanislav Ochotnicky a068e9
seconds of clock time), in order to perform a database transaction that might
Stanislav Ochotnicky a068e9
take milliseconds. Opening a connection per user can be unfeasible in a
Stanislav Ochotnicky a068e9
publicly-hosted Internet application where the number of simultaneous users can
Stanislav Ochotnicky a068e9
be very large. Accordingly, developers often wish to share a "pool" of open
Stanislav Ochotnicky a068e9
connections between all of the application's current users. The number of users
Stanislav Ochotnicky a068e9
actually performing a request at any given time is usually a very small
Stanislav Ochotnicky a068e9
percentage of the total number of active users, and during request processing
Stanislav Ochotnicky a068e9
is the only time that a database connection is required. The application itself
spike 83a1a7
logs into the DBMS, and handles any user account issues internally.
spike 83a1a7
spike 83a1a7
%package javadoc
spike 83a1a7
Summary:          Javadoc for %{name}
spike 83a1a7
spike 83a1a7
%description javadoc
spike 83a1a7
This package contains the API documentation for %{name}.
spike 83a1a7
spike 83a1a7
%prep
spike 83a1a7
%setup -q -n %{short_name}-%{version}-src
spike 83a1a7
iconv -f iso8859-1 -t utf-8 RELEASE-NOTES.txt > RELEASE-NOTES.txt.conv && mv -f RELEASE-NOTES.txt.conv RELEASE-NOTES.txt
spike 83a1a7
Deepak Bhole 189cf8
%patch0
Deepak Bhole 189cf8
Stanislav Ochotnicky f56418
%mvn_alias : org.apache.commons:%{short_name}
Stanislav Ochotnicky f56418
%mvn_file : %{name} %{short_name}
Stanislav Ochotnicky f56418
spike 83a1a7
%build
spike 83a1a7
# Skip tests, tomcat:naming-java and tomcat:naming-common not available
Stanislav Ochotnicky f56418
%mvn_build -f
spike 83a1a7
spike 83a1a7
%install
Stanislav Ochotnicky f56418
%mvn_install
spike e9fe78
Stanislav Ochotnicky f56418
%files -f .mfiles
spike 83a1a7
%doc LICENSE.txt NOTICE.txt README.txt RELEASE-NOTES.txt
spike 83a1a7
Stanislav Ochotnicky f56418
%files javadoc -f .mfiles-javadoc
Stanislav Ochotnicky a068e9
%doc LICENSE.txt NOTICE.txt
spike 83a1a7
spike 83a1a7
%changelog
Fedora Release Engineering 03effa
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-23
Fedora Release Engineering 03effa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Fedora Release Engineering 03effa
Fedora Release Engineering 8fd41d
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-22
Fedora Release Engineering 8fd41d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
Fedora Release Engineering 8fd41d
Fedora Release Engineering 04c764
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-21
Fedora Release Engineering 04c764
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
Fedora Release Engineering 04c764
Dennis Gilmore 94d410
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-20
Dennis Gilmore 94d410
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
Dennis Gilmore 94d410
Dennis Gilmore 897469
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-19
Dennis Gilmore 897469
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
Dennis Gilmore 897469
Mikolaj Izdebski 45ce3d
* Wed Mar 25 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-18
Mikolaj Izdebski 45ce3d
- Remove unused depmap
Mikolaj Izdebski 45ce3d
- Mavenize build-requires
Mikolaj Izdebski 45ce3d
Mikolaj Izdebski 0c0dda
* Tue Oct 14 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-17
Mikolaj Izdebski 0c0dda
- Remove legacy Obsoletes/Provides for jakarta-commons
Mikolaj Izdebski 0c0dda
Dennis Gilmore 948c18
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-16
Dennis Gilmore 948c18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
Dennis Gilmore 948c18
Stanislav Ochotnicky 1e74eb
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4-15
Stanislav Ochotnicky 1e74eb
- Use Requires: java-headless rebuild (#1067528)
Stanislav Ochotnicky 1e74eb
Stanislav Ochotnicky f56418
* Thu Aug  8 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4-14
Stanislav Ochotnicky f56418
- Update to latest packaging guidelines
Stanislav Ochotnicky f56418
Dennis Gilmore b1b6b0
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-13
Dennis Gilmore b1b6b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
Dennis Gilmore b1b6b0
Dennis Gilmore fc654e
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-12
Dennis Gilmore fc654e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
Dennis Gilmore fc654e
Stanislav Ochotnicky 876fd9
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.4-11
Stanislav Ochotnicky 876fd9
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Stanislav Ochotnicky 876fd9
- Replace maven BuildRequires with maven-local
Stanislav Ochotnicky 876fd9
Dennis Gilmore 1bf28e
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-10
Dennis Gilmore 1bf28e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
Dennis Gilmore 1bf28e
Deepak Bhole 189cf8
* Thu Feb 23 2012 Pavel Tisnovsky <ptisnovs@redhat.com> - 1.4-9
Deepak Bhole 189cf8
- Make this package independent of OpenJDK6 (it's buildable on OpenJDK7)
Deepak Bhole 189cf8
Dennis Gilmore 6b72d8
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-8
Dennis Gilmore 6b72d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
Dennis Gilmore 6b72d8
Stanislav Ochotnicky a068e9
* Thu Dec  1 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4-7
Stanislav Ochotnicky a068e9
- Build with maven 3
Stanislav Ochotnicky a068e9
- Fixes according to latest guidelines
Stanislav Ochotnicky a068e9
Dennis Gilmore 4454ea
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-6
Dennis Gilmore 4454ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
Dennis Gilmore 4454ea
spike e9fe78
* Tue Nov 9 2010 Chris Spike <chris.spike@arcor.de> 1.4-5
spike e9fe78
- Removed maven* BRs in favour of apache-commons-parent
spike e9fe78
- Added deprecated groupId to depmap for compatibility reasons
spike e9fe78
- Removed commons-pool from custom depmap
spike e9fe78
spike efc113
* Wed Oct 27 2010 Chris Spike <chris.spike@arcor.de> 1.4-4
spike efc113
- Added depmap entry to find commons-pool.jar
spike efc113
spike a5a165
* Wed Oct 27 2010 Chris Spike <chris.spike@arcor.de> 1.4-3
spike a5a165
- Added BR apache-commons-pool
spike a5a165
spike 83a1a7
* Mon Oct 18 2010 Chris Spike <chris.spike@arcor.de> 1.4-2
spike 83a1a7
- Removed Epoch
spike 83a1a7
spike 83a1a7
* Mon Oct 4 2010 Chris Spike <chris.spike@arcor.de> 1.4-1
spike 83a1a7
- Rename and rebase from jakarta-commons-dbcp