diff --git a/apache-commons-logging.spec b/apache-commons-logging.spec index e126282..d9c8baa 100644 --- a/apache-commons-logging.spec +++ b/apache-commons-logging.spec @@ -4,7 +4,7 @@ Name: apache-%{short_name} Version: 1.1.1 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Apache Commons Logging License: ASL 2.0 Group: Development/Libraries @@ -12,15 +12,19 @@ URL: http://commons.apache.org/%{base_name} Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz Source1: %{short_name}.depmap Source2: http://mirrors.ibiblio.org/pub/mirrors/maven2/%{short_name}/%{short_name}-api/1.1/%{short_name}-api-1.1.pom +# Sent upstream https://issues.apache.org/jira/browse/LOGGING-143 +Patch0: %{short_name}-avalon-update.patch + Patch1: %{short_name}-eclipse-manifest.patch -Patch0: %{short_name}-maven-release-plugin.patch BuildArch: noarch +BuildRequires: maven BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils >= 0:1.6 -BuildRequires: avalon-framework +BuildRequires: avalon-framework >= 4.3 BuildRequires: avalon-logkit BuildRequires: apache-commons-parent BuildRequires: maven-plugin-build-helper +BuildRequires: maven-release-plugin BuildRequires: maven-site-plugin BuildRequires: servlet25 @@ -59,7 +63,7 @@ Obsoletes: jakarta-%{short_name}-javadoc <= 0:1.0.4 %prep %setup -q -n %{short_name}-%{version}-src -%patch0 -p1 -b .rhbug_588142 +%patch0 -p1 %patch1 sed -i 's/\r//' RELEASE-NOTES.txt LICENSE.txt @@ -67,16 +71,16 @@ sed -i 's/\r//' RELEASE-NOTES.txt LICENSE.txt # ----------------------------------------------------------------------------- %build -export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository -mkdir -p $MAVEN_REPO_LOCAL - # fails with recent surefire for some reason rm src/test/org/apache/commons/logging/logkit/StandardTestCase.java rm src/test/org/apache/commons/logging/servlet/BasicServletTestCase.java -mvn-jpp -e -Dmaven2.jpp.depmap.file="%{SOURCE1}" \ - -Dmaven.repo.local=$MAVEN_REPO_LOCAL \ - install javadoc:javadoc +# These files have names suggesting they are test cases but they are not. +# They should probably be renamed/excluded from surefire run properly +rm src/test/org/apache/commons/logging/log4j/log4j12/*StandardTestCase.java + +mvn-rpmbuild -X -Dmaven.local.depmap.file="%{SOURCE1}" \ + install javadoc:aggregate # ----------------------------------------------------------------------------- @@ -91,7 +95,7 @@ pushd $RPM_BUILD_ROOT%{_javadir} for jar in %{name}*; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"` done -popd +popd # pom install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} @@ -145,6 +149,10 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || : # ----------------------------------------------------------------------------- %changelog +* Thu Apr 21 2011 Stanislav Ochotnicky - 1.1.1-16 +- Build with maven 3 +- Fix build for avalon-framework + * Mon Feb 07 2011 Fedora Release Engineering - 1.1.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild diff --git a/commons-logging-avalon-update.patch b/commons-logging-avalon-update.patch new file mode 100644 index 0000000..aadaaa7 --- /dev/null +++ b/commons-logging-avalon-update.patch @@ -0,0 +1,29 @@ +diff --git a/pom.xml b/pom.xml +index 8efaf6d..24dc9fb 100644 +--- a/pom.xml ++++ b/pom.xml +@@ -472,8 +472,15 @@ under the License. + + + avalon-framework +- avalon-framework +- 4.1.3 ++ avalon-framework-api ++ 4.3 ++ true ++ ++ ++ avalon-framework ++ avalon-framework-impl ++ 4.3 ++ test + true + + +@@ -520,4 +527,4 @@ under the License. + 1.2 + 1.1 + +- +\ No newline at end of file ++ diff --git a/commons-logging.depmap b/commons-logging.depmap index 24c689a..1059072 100644 --- a/commons-logging.depmap +++ b/commons-logging.depmap @@ -1,28 +1,4 @@ - - - logkit - logkit - 1.0.1 - - - JPP - avalon-logkit - 1.0.8 - - - - - avalon-framework - avalon-framework - 4.1.3 - - - JPP - avalon-framework - 4.1.4 - - javax.servlet @@ -33,4 +9,26 @@ tomcat6-servlet-2.5-api + + + servletapi + servletapi + + + JPP + tomcat6-servlet-2.5-api + + + + + geronimo-spec + geronimo-spec-javamail + + + + + geronimo-spec + geronimo-spec-jms + +