33Summary: Apache Commons Pool 2.x series
44Name: apache-commons-pool2
55Version: 2.4.2
6- Release: 7 %{?dist }
6+ Release: 8 %{?dist }
77License: Apache-2.0
88Vendor: Microsoft Corporation
99Distribution: Azure Linux
@@ -12,12 +12,11 @@ URL: https://commons.apache.org/proper/commons-pool/
1212Source0: https://archive.apache.org/dist/commons/%{base_name }/source/%{short_name }-%{version }-src.tar.gz
1313Patch0: jakarta-commons-pool-build.patch
1414BuildRequires: ant
15- BuildRequires: ant-junit
1615BuildRequires: cglib
1716BuildRequires: fdupes
1817BuildRequires: java-devel >= 1.8
19- BuildRequires: javapackages-local -bootstrap
20- BuildRequires: xml-commons-apis
18+ BuildRequires: javapackages-local -bootstrap >= 6
19+ BuildRequires: junit
2120Requires: cglib
2221Provides: %{short_name } = %{version }
2322Obsoletes: %{short_name } < %{version }
@@ -44,55 +43,46 @@ This package contains the javadoc documentation for the Apache Commons
4443Pool 2.x Package.
4544
4645%prep
47- %autosetup -p0 -n %{short_name }-%{version }-src
46+ %setup -q -n %{short_name }-%{version }-src
4847# remove all binary libs
49- find . -name " *.jar" -exec rm -f {} \;
50-
51- %pom_remove_parent .
52- %pom_xpath_inject "pom:project" "< groupId> org.apache.commons< /groupId> " .
48+ find . -name " *.jar" -print -delete
49+ %patch -P 0
5350
5451%build
55- export CLASSPATH=%(build-classpath cglib objectweb-asm/asm objectweb-asm/asm-tree objectweb-asm/asm-util)
56- %{ant } -Dbuild.sysclasspath=first clean dist
52+ echo " cglib.jar=$( build-classpath cglib) " >> build.properties
53+ ant \
54+ -Djavac.target.version=8 -Djavac.src.version=8 \
55+ -Djava.io.tmpdir=. clean dist
5756
5857%install
5958# jars
6059install -d -m 755 %{buildroot }%{_javadir }
61- install -m 644 dist/%{short_name }-%{version }.jar %{buildroot }%{_javadir }/%{name }-%{version }.jar
62- (cd %{buildroot}%{_javadir} && for jar in * -%{version}* ; do ln -sf ${jar} ` echo $jar | sed " s|apache-||g" ` ; done)
63- (cd %{buildroot}%{_javadir} && for jar in * -%{version}* ; do ln -sf ${jar} ` echo $jar | sed " s|-%{version}||g" ` ; done)
60+ install -m 644 dist/%{short_name }-%{version }.jar %{buildroot }%{_javadir }/%{name }.jar
61+ ln -sf %{_javadir }/%{name }.jar %{buildroot }%{_javadir }/%{short_name }.jar
6462# pom
6563install -d -m 755 %{buildroot }%{_mavenpomdir }
66- install -m 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}-%{version }.pom
67- %add_maven_depmap %{name}-%{version} .pom %{name}-%{version }.jar
64+ install -pm 0644 pom.xml %{buildroot }%{_mavenpomdir }/%{name }.pom
65+ %add_maven_depmap %{name }.pom %{name }.jar
6866
6967# javadoc
7068install -d -m 755 %{buildroot }%{_javadocdir }/%{name }
7169cp -pr dist/docs/api/* %{buildroot }%{_javadocdir }/%{name }
7270%fdupes -s %{buildroot }%{_javadocdir }/%{name }
7371
74- %check
75- export CLASSPATH=%(build-classpath cglib objectweb-asm/asm objectweb-asm/asm-tree objectweb-asm/asm-util)
76- %{ant} -Dbuild.sysclasspath=first test
77-
78- %files
72+ %files -f .mfiles
7973%license LICENSE.txt
8074%doc README.txt
81- %{_javadir}/%{name}.jar
82- %{_javadir}/%{name}-%{version}.jar
8375%{_javadir }/%{short_name }.jar
84- %{_javadir}/%{short_name}-%{version}.jar
85- %{_mavenpomdir}/%{name}-%{version}.pom
86- %if %{defined _maven_repository}
87- %{_mavendepmapfragdir}/%{name}
88- %else
89- %{_datadir}/maven-metadata/%{name}.xml*
90- %endif
9176
9277%files javadoc
9378%doc %{_javadocdir }/%{name }
79+ %exclude /usr/share/javadoc/%{name }/legal
9480
9581%changelog
82+ * Wed May 28 2025 Durga Jagadeesh Palli <v-dpalli@microsoft.com> - 2.4.2-8
83+ - Initial Azure Linux import from openSUSE Tumbleweed (license: same as "License" tag).
84+ - License verified
85+
9686* Wed Nov 09 2022 Sumedh Sharma <sumsharma@microsoft.com> - 2.4.2-7
9787- Enable check section
9888- License verified
@@ -107,32 +97,25 @@ export CLASSPATH=%(build-classpath cglib objectweb-asm/asm objectweb-asm/asm-tre
10797* Mon Mar 25 2019 Fridrich Strba <fstrba@suse.com>
10898- Remove pom parent, since we don't use it when not building with
10999 maven
110-
111100* Thu Dec 13 2018 Fridrich Strba <fstrba@suse.com>
112101- Add maven pom file
113-
114102* Tue May 15 2018 fstrba@suse.com
115103- Build with source and target 8 to prepare for a possible removal
116104 of 1.6 compatibility
117105- Run fdupes on documentation
118-
119106* Thu Sep 14 2017 fstrba@suse.com
120107- Fix javadoc build
121-
122108* Thu Sep 29 2016 tchvatal@suse.com
123109- Version update to 2.4.2 release from pool2:
124110 * rename to latest 2.x pool series for dbcp and other packages
125-
126111* Thu Sep 29 2016 tchvatal@suse.com
127112- Rename from jakarta-commons-pool to apache-commons-pool
128113- Version update to 1.6:
129114 * drop the tomcat5 package, we need pool2 to work with new tomcat
130115 * Last and final from the pool1 series, new pool2 was introduced
131116 for future developement.
132-
133117* Mon Sep 9 2013 tchvatal@suse.com
134118- Move from jpackage-utils to javapackage-tools
135-
136119* Thu Mar 13 2008 mvyskocil@suse.cz
137120- merged with jpackage 1.7
138121- update to 1.3
@@ -147,21 +130,15 @@ export CLASSPATH=%(build-classpath cglib objectweb-asm/asm objectweb-asm/asm-tre
147130- provides and obsoletes of main package contains the version
148131- new tomcat5 subpackage
149132- new manual subpackage (build only with maven)
150-
151133* Fri Sep 15 2006 ro@suse.de
152134- set source=1.4 for java
153-
154135* Wed Jan 25 2006 mls@suse.de
155136- converted neededforbuild to BuildRequires
156-
157137* Thu Jul 28 2005 jsmeix@suse.de
158138- Adjustments in the spec file.
159-
160139* Mon Jul 18 2005 jsmeix@suse.de
161140- Current version 1.2 from JPackage.org
162-
163141* Thu Sep 16 2004 skh@suse.de
164142- Fix prerequires of javadoc subpackage
165-
166143* Thu Sep 2 2004 skh@suse.de
167144- Initial package created with version 1.2 (JPackage 1.5)
0 commit comments