# Copyright (c) 2000-2007, JPackage Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the # distribution. # 3. Neither the name of the JPackage Project nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # %define _without_maven 1 %define _with_gcj_support 1 %define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}} # If you don't want to build with maven, and use straight ant instead, # give rpmbuild option '--without maven' %define with_maven %{!?_without_maven:1}%{?_without_maven:0} %define without_maven %{?_without_maven:1}%{!?_without_maven:0} %define base_name pool %define short_name commons-%{base_name} %define section free Name: jakarta-commons-pool Version: 1.3 Release: 12.7%{?dist} Epoch: 0 Summary: Jakarta Commons Pool Package License: ASL 2.0 Group: Development/Libraries/Java Source0: http://archive.apache.org/dist/commons/pool/source/%{short_name}-%{version}-src.tar.gz Source1: pom-maven2jpp-depcat.xsl Source2: pom-maven2jpp-newdepmap.xsl Source3: pom-maven2jpp-mapdeps.xsl Source4: %{base_name}-%{version}-jpp-depmap.xml Source5: commons-build.tar.gz # svn export -r '{2007-02-15}' http://svn.apache.org/repos/asf/jakarta/commons/proper/commons-build/trunk/ commons-build # tar czf commons-build.tar.gz commons-build Source6: pool-tomcat5-build.xml Patch0: jakarta-commons-pool-build.patch Url: http://jakarta.apache.org/commons/%{base_name}/ BuildRequires: ant BuildRequires: junit BuildRequires: jpackage-utils > 0:1.6 BuildRequires: java-javadoc %if %{with_maven} BuildRequires: maven >= 0:1.1 BuildRequires: maven-plugins-base BuildRequires: maven-plugin-test BuildRequires: maven-plugin-xdoc BuildRequires: maven-plugin-license BuildRequires: maven-plugin-changes BuildRequires: maven-plugin-jdepend BuildRequires: maven-plugin-jdiff BuildRequires: maven-plugin-jxr BuildRequires: maven-plugin-tasklist BuildRequires: saxon BuildRequires: saxon-scripts BuildRequires: xml-commons-jaxp-1.3-apis BuildRequires: xerces-j2 %endif %if ! %{gcj_support} BuildArch: noarch %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Provides: %{short_name} = %{epoch}:%{version}-%{release} Obsoletes: %{short_name} < %{epoch}:%{version}-%{release} %if %{gcj_support} BuildRequires: java-gcj-compat-devel Requires(post): java-gcj-compat Requires(postun): java-gcj-compat %endif %description The goal of Pool package it to create and maintain an object (instance) pooling package to be distributed under the ASF license. The package should support a variety of pool implementations, but encourage support of an interface that makes these implementations interchangeable. %package javadoc Summary: Javadoc for %{name} Group: Development/Documentation Requires: java-javadoc %description javadoc Javadoc for %{name}. %package tomcat5 Summary: Pool dependency for Tomcat5 Group: Development/Libraries/Java %description tomcat5 Pool dependency for Tomcat5 %if %{with_maven} %package manual Summary: Documents for %{name} Group: Development/Documentation %description manual %{summary}. %endif %prep cat < - 0:1.3-12.7 - Resolves: #553716 - Fix URL for main source archive * Mon Nov 30 2009 Dennis Gregorovic - 0:1.3-12.6 - Rebuilt for RHEL 6 * Fri Jul 24 2009 Fedora Release Engineering - 0:1.3-12.5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 0:1.3-11.5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Jul 9 2008 Tom "spot" Callaway - 0:1.3-10.5 - drop repotag * Thu May 29 2008 Tom "spot" Callaway - 0:1.3-10jpp.4 - fix license tag * Mon Feb 18 2008 Fedora Release Engineering - 0:1.3-10jpp.3 - Autorebuild for GCC 4.3 * Thu Sep 20 2007 Deepak Bhole 0:1.3-9jpp.3 - Rebuild * Wed Apr 25 2007 Matt Wringe 0:1.3-9jpp.2 - A couple of minor spec file changes for Fedora review * Wed Mar 07 2007 Matt Wringe 0:1.3-9jpp.1 - Merge with updated jpp version - Updated commons-build, no longer need patchs to get around local building. * Fri Feb 23 2007 Jason Corley 1:1.3-8jpp - update copyright to contain current year - rebuild on RHEL4 to avoid broken jar repack script in FC6 * Fri Jan 26 2007 Matt Wringe 1:1.3-7jpp - Fix bug in pool-tomcat5-build.xml * Mon Jan 22 2007 Matt Wringe 1:1.3-6jpp - Add tomcat5 subpackage - Add versioning to provides and obsoletes - Move rm -rf %%RPM_BUILD_ROOT from %%prep to %%install - Add missing maven dependencies * Tue Sep 26 2006 Matt Wringe 1:1.3-5jpp.1 - Merge with upstream version. * Tue Sep 26 2006 Matt Wringe 1:1.3-5jpp - Add missing java-javadoc required and buildrequires. * Mon Sep 25 2006 Matt Wringe 1:1.3-4jpp.1 - Merge with upstream version * Mon Sep 25 2006 Matt Wringe 1:1.3-4jpp - Add jakarta-commons-pool-build.patch to remove external dependencies on javadocs when ant is used for building. * Fri Aug 11 2006 Deepak Bhole 1:1.3-3jpp.1 - Added missing requirements. * Thu Aug 10 2006 Karsten Hopp - 1:1.3-2jpp_3fc - Requires(post/postun): coreutils - BuildRequires: xml-commons-apis * Sat Jul 22 2006 Jakub Jelinek - 1:1.3-2jpp_2fc - Rebuilt * Thu Jul 20 2006 Deepak Bhole - 1:1.3-2jpp_1fc - Added conditional native compilation. * Wed Apr 12 2006 Randy Watler - 0:1.3-1jpp - Upgrade to 1.3 - First JPP-1.7 release - Build with maven by default - Add option to build with straight ant - Add -manual subpackage when built with maven - This version doesn't require commons-collections * Sun Aug 23 2004 Randy Watler - 0:1.2-2jpp - Rebuild with ant-1.6.2 * Thu Jun 24 2004 Kaj J. Niemi 0:1.2-1jpp - Update to 1.2 (tomcat 5.0.27 wants it) * Mon Oct 27 2003 Henri Gomez 0:1.1-1jpp - commons-pool 1.1 * Fri May 09 2003 David Walluck 0:1.0.1-5jpp - update for JPackage 1.5 * Tue Mar 25 2003 Nicolas Mailhot 1.0.1-4jpp - For jpackage-utils 1.5 * Thu Feb 27 2003 Henri Gomez 1.0.1-3jpp - fix ASF license * Thu Feb 27 2003 Henri Gomez 1.0.1-2jpp - fix missing packager tag * Fri Aug 23 2002 Henri Gomez 1.0.1-1jpp - 1.0.1 * Fri Jul 12 2002 Henri Gomez 1.0-3jpp - override java.io.tmpdir to avoid build use /tmp * Mon Jun 10 2002 Henri Gomez 1.0-2jpp - use sed instead of bash 2.x extension in link area to make spec compatible with distro using bash 1.1x * Fri Jun 07 2002 Henri Gomez 1.0-1jpp - 1.0 - added short names in %%{_javadir}, as does jakarta developpers - first jPackage release