Blame SPECS/apache-commons-dbcp.spec

d86cbb
%global base_name       dbcp
d86cbb
%global short_name      commons-%{base_name}
d86cbb
d86cbb
Name:             apache-%{short_name}
d86cbb
Version:          1.4
d86cbb
Release:          17%{?dist}
d86cbb
Summary:          Apache Commons DataBase Pooling Package
d86cbb
License:          ASL 2.0
d86cbb
URL:              http://commons.apache.org/%{base_name}/
d86cbb
Source0:          http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
d86cbb
d86cbb
Patch0:           jdbc41.patch
d86cbb
BuildArch:        noarch
d86cbb
d86cbb
BuildRequires:    java-devel
d86cbb
BuildRequires:    jpackage-utils
d86cbb
BuildRequires:    apache-commons-parent >= 26-7
d86cbb
BuildRequires:    apache-commons-pool
d86cbb
BuildRequires:    geronimo-parent-poms
d86cbb
BuildRequires:    geronimo-jta
d86cbb
BuildRequires:    maven-local
d86cbb
d86cbb
d86cbb
%description
d86cbb
Many Apache projects support interaction with a relational database. Creating a
d86cbb
new connection for each user can be time consuming (often requiring multiple
d86cbb
seconds of clock time), in order to perform a database transaction that might
d86cbb
take milliseconds. Opening a connection per user can be unfeasible in a
d86cbb
publicly-hosted Internet application where the number of simultaneous users can
d86cbb
be very large. Accordingly, developers often wish to share a "pool" of open
d86cbb
connections between all of the application's current users. The number of users
d86cbb
actually performing a request at any given time is usually a very small
d86cbb
percentage of the total number of active users, and during request processing
d86cbb
is the only time that a database connection is required. The application itself
d86cbb
logs into the DBMS, and handles any user account issues internally.
d86cbb
d86cbb
%package javadoc
d86cbb
Summary:          Javadoc for %{name}
d86cbb
d86cbb
%description javadoc
d86cbb
This package contains the API documentation for %{name}.
d86cbb
d86cbb
%prep
d86cbb
%setup -q -n %{short_name}-%{version}-src
d86cbb
iconv -f iso8859-1 -t utf-8 RELEASE-NOTES.txt > RELEASE-NOTES.txt.conv && mv -f RELEASE-NOTES.txt.conv RELEASE-NOTES.txt
d86cbb
d86cbb
%patch0
d86cbb
d86cbb
%mvn_file : %{name} %{short_name}
d86cbb
%mvn_alias : org.apache.commons:%{short_name}
d86cbb
d86cbb
%build
d86cbb
# Skip tests, tomcat:naming-java and tomcat:naming-common not available
d86cbb
%mvn_build -f
d86cbb
d86cbb
%install
d86cbb
%mvn_install
d86cbb
d86cbb
%files -f .mfiles
d86cbb
%doc LICENSE.txt NOTICE.txt README.txt RELEASE-NOTES.txt
d86cbb
d86cbb
%files javadoc -f .mfiles-javadoc
d86cbb
%doc LICENSE.txt NOTICE.txt
d86cbb
d86cbb
%changelog
d86cbb
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.4-17
d86cbb
- Mass rebuild 2013-12-27
d86cbb
d86cbb
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-16
d86cbb
- Add BuildRequires on apache-commons-parent >= 26-7
d86cbb
d86cbb
* Mon Aug 19 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4-15
d86cbb
- Migrate away from mvn-rpmbuild (#997452)
d86cbb
d86cbb
* Fri Jul 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-14
d86cbb
- Remove workaround for rpm bug #646523
d86cbb
d86cbb
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-13
d86cbb
- Rebuild to regenerate API documentation
d86cbb
- Resolves: CVE-2013-1571
d86cbb
d86cbb
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-12
d86cbb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d86cbb
d86cbb
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.4-11
d86cbb
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
d86cbb
- Replace maven BuildRequires with maven-local
d86cbb
d86cbb
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-10
d86cbb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d86cbb
d86cbb
* Thu Feb 23 2012 Pavel Tisnovsky <ptisnovs@redhat.com> - 1.4-9
d86cbb
- Make this package independent of OpenJDK6 (it's buildable on OpenJDK7)
d86cbb
d86cbb
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-8
d86cbb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d86cbb
d86cbb
* Thu Dec  1 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4-7
d86cbb
- Build with maven 3
d86cbb
- Fixes according to latest guidelines
d86cbb
d86cbb
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-6
d86cbb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d86cbb
d86cbb
* Tue Nov 9 2010 Chris Spike <chris.spike@arcor.de> 1.4-5
d86cbb
- Removed maven* BRs in favour of apache-commons-parent
d86cbb
- Added deprecated groupId to depmap for compatibility reasons
d86cbb
- Removed commons-pool from custom depmap
d86cbb
d86cbb
* Wed Oct 27 2010 Chris Spike <chris.spike@arcor.de> 1.4-4
d86cbb
- Added depmap entry to find commons-pool.jar
d86cbb
d86cbb
* Wed Oct 27 2010 Chris Spike <chris.spike@arcor.de> 1.4-3
d86cbb
- Added BR apache-commons-pool
d86cbb
d86cbb
* Mon Oct 18 2010 Chris Spike <chris.spike@arcor.de> 1.4-2
d86cbb
- Removed Epoch
d86cbb
d86cbb
* Mon Oct 4 2010 Chris Spike <chris.spike@arcor.de> 1.4-1
d86cbb
- Rename and rebase from jakarta-commons-dbcp