rebuilt devel [release 1.5.8-3mamba;Sat Nov 06 2010]

This commit is contained in:
gil 2024-01-06 00:12:29 +01:00
parent 9fd7278e1d
commit 70cdad6970
15 changed files with 929 additions and 0 deletions

View File

@ -1,2 +1,12 @@
# java-slf4j
The Simple Logging Facade for Java or (SLF4J) is intended to serve
as a simple facade for various logging APIs allowing to the end-user
to plug in the desired implementation at deployment time. SLF4J also
allows for a gradual migration path away from
Jakarta Commons Logging (JCL).
Logging API implementations can either choose to implement the
SLF4J interfaces directly, e.g. NLOG4J or SimpleLogger. Alternatively,
it is possible (and rather easy) to write SLF4J adapters for the given
API implementation, e.g. Log4jLoggerAdapter or JDK14LoggerAdapter.

View File

@ -0,0 +1,43 @@
--- slf4j-1.5.8/integration/build.xml 2009-06-09 21:51:55.000000000 +0200
+++ slf4j-1.5.8/integration/build.xml-gil 2009-06-23 19:58:36.000000000 +0200
@@ -61,7 +61,7 @@
</target>
<target name="testMismatch">
- <junit printsummary="yes" fork="no" haltonfailure="yes">
+ <junit printsummary="yes" fork="no" haltonfailure="no">
<classpath refid="pathIncompatible" />
<formatter type="plain" />
<test fork="yes" todir="target/unit-reports" name="org.slf4j.VersionMismatchTest" />
@@ -69,7 +69,7 @@
</target>
<target name="testPre155">
- <junit printsummary="yes" fork="no" haltonfailure="yes">
+ <junit printsummary="yes" fork="no" haltonfailure="no">
<classpath refid="path150" />
<formatter type="plain" />
<test fork="yes" todir="target/unit-reports" name="org.slf4j.Pre155VersionTest" />
@@ -77,7 +77,7 @@
</target>
<target name="testMatch">
- <junit printsummary="yes" fork="no" haltonfailure="yes">
+ <junit printsummary="yes" fork="no" haltonfailure="no">
<classpath refid="pathCurrent" />
<formatter type="plain" />
<test fork="yes" todir="target/unit-reports" name="org.slf4j.VersionMatchTest" />
@@ -85,10 +85,10 @@
</target>
<target name="testMultiBinding">
- <junit printsummary="yes" fork="no" haltonfailure="yes">
+ <junit printsummary="yes" fork="no" haltonfailure="no">
<classpath refid="multiBinding" />
<formatter type="plain" />
<test fork="yes" todir="target/unit-reports" name="org.slf4j.MultiBindingTest" />
</junit>
</target>
-</project>
\ No newline at end of file
+</project>

View File

@ -0,0 +1,20 @@
--- integration/maven-build.xml 2010-01-19 14:44:35.000000000 +0100
+++ integration/maven-build.xml-gil 2010-01-19 22:07:47.000000000 +0100
@@ -67,7 +67,7 @@
<!-- Compilation target -->
<!-- ====================================================================== -->
- <target name="compile" depends="get-deps" description="Compile the code">
+ <target name="compile" description="Compile the code">
<mkdir dir="${maven.build.outputDir}"/>
<javac destdir="${maven.build.outputDir}"
nowarn="false"
@@ -125,7 +125,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -0,0 +1,11 @@
--- jcl-over-slf4j/maven-build.xml 2010-01-19 14:44:28.000000000 +0100
+++ jcl-over-slf4j/maven-build.xml-gil 2010-01-19 21:48:05.000000000 +0100
@@ -126,7 +126,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -0,0 +1,11 @@
--- jul-to-slf4j/maven-build.xml 2010-01-19 14:44:32.000000000 +0100
+++ jul-to-slf4j/maven-build.xml-gil 2010-01-19 21:52:41.000000000 +0100
@@ -127,7 +127,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -0,0 +1,11 @@
--- slf4j-api/maven-build.xml 2010-01-19 14:43:13.000000000 +0100
+++ slf4j-api/maven-build.xml-gil 2010-01-19 20:02:14.000000000 +0100
@@ -122,7 +122,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -0,0 +1,14 @@
--- slf4j-api/maven-build.xml 2010-01-20 09:38:07.000000000 +0100
+++ slf4j-api/maven-build.xml-gil 2010-01-20 09:37:43.000000000 +0100
@@ -223,6 +223,11 @@
manifest="/usr/src/RPM/BUILD/slf4j-1.5.8/slf4j-api/target/classes/META-INF/MANIFEST.MF"
basedir="${maven.build.outputDir}"
excludes="**/package.html"/>
+ <jar jarfile="${maven.build.dir}/${maven.build.finalName}-tests.jar"
+ compress="true"
+ index="false"
+ manifest="/usr/src/RPM/BUILD/slf4j-1.5.8/slf4j-api/target/test-classes/META-INF/MANIFEST.MF"
+ basedir="${maven.build.testOutputDir}"/>
</target>
<!-- ====================================================================== -->

View File

@ -0,0 +1,11 @@
--- slf4j-ext/maven-build.xml 2010-01-19 14:44:25.000000000 +0100
+++ slf4j-ext/maven-build.xml-gil 2010-01-19 21:44:17.000000000 +0100
@@ -134,7 +134,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -0,0 +1,11 @@
--- slf4j-jcl/maven-build.xml 2010-01-19 14:44:23.000000000 +0100
+++ slf4j-jcl/maven-build.xml-gil 2010-01-19 21:40:59.000000000 +0100
@@ -127,7 +127,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -0,0 +1,11 @@
--- slf4j-jdk14/maven-build.xml 2010-01-19 14:44:20.000000000 +0100
+++ slf4j-jdk14/maven-build.xml-gil 2010-01-19 20:34:32.000000000 +0100
@@ -126,7 +126,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -0,0 +1,11 @@
--- slf4j-log4j12/maven-build.xml 2010-01-19 14:44:22.000000000 +0100
+++ slf4j-log4j12/maven-build.xml-gil 2010-01-19 20:43:39.000000000 +0100
@@ -130,7 +130,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -0,0 +1,11 @@
--- slf4j-nop/maven-build.xml 2010-01-19 14:44:18.000000000 +0100
+++ slf4j-nop/maven-build.xml-gil 2010-01-19 20:30:19.000000000 +0100
@@ -125,7 +125,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -0,0 +1,11 @@
--- slf4j-simple/maven-build.xml 2010-01-19 14:44:16.000000000 +0100
+++ slf4j-simple/maven-build.xml-gil 2010-01-19 20:20:44.000000000 +0100
@@ -125,7 +125,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

498
java-slf4j.spec Normal file
View File

@ -0,0 +1,498 @@
%define maven 0
Name: java-slf4j
Version: 1.5.8
Release: 3mamba
Summary: Simple Logging Facade for Java (SLF4J)
Group: Development/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: gil <puntogil@libero.it>
URL: http://www.slf4j.org/
Source0: http://www.slf4j.org/dist/slf4j-%{version}.tar.gz
Source1: maven2-2.2.0-settings.xml
Source2: java-slf4j-1.5.8-auto-generated-files.tar.gz
Patch0: java-slf4j-1.5.8-integration-build_xml.patch
Patch1: java-slf4j-1.5.8-slf4j-api-maven-build_xml.patch
Patch2: java-slf4j-1.5.8-slf4j-simple-maven-build_xml.patch
Patch3: java-slf4j-1.5.8-slf4j-nop-maven-build_xml.patch
Patch4: java-slf4j-1.5.8-slf4j-jdk14-maven-build_xml.patch
Patch5: java-slf4j-1.5.8-slf4j-log4j12-maven-build_xml.patch
Patch6: java-slf4j-1.5.8-slf4j-jcl-maven-build_xml.patch
Patch7: java-slf4j-1.5.8-slf4j-ext-maven-build_xml.patch
Patch8: java-slf4j-1.5.8-jcl-over-slf4j-maven-build_xml.patch
Patch9: java-slf4j-1.5.8-jul-to-slf4j-maven-build_xml.patch
Patch10: java-slf4j-1.5.8-integration-maven-build_xml.patch
Patch11: java-slf4j-1.5.8-slf4j-api-testjar.patch
License: Apache Software License 2.0, GPL, MIT, X11
BuildRequires: apache-ant
BuildRequires: apache-ant-junit
BuildRequires: apache-log4j
%if %maven
BuildRequires: apache-maven
BuildRequires: apache-maven-plugin-antrun
BuildRequires: apache-maven-plugin-compiler
BuildRequires: apache-maven-plugin-install
BuildRequires: apache-maven-plugin-jar
BuildRequires: apache-maven-plugin-javadoc
BuildRequires: apache-maven-plugin-resources
BuildRequires: apache-maven-plugin-source
BuildRequires: maven-surefire-plugin
%endif
BuildRequires: jakarta-commons-logging
BuildRequires: jakarta-commons-lang24
BuildRequires: java-excalibur-avalon-framework420
BuildRequires: java-junit3
BuildRequires: java-junit381
BuildRequires: javassist
BuildRequires: jpackage-utils
Requires: jpackage-utils
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
The Simple Logging Facade for Java or (SLF4J) is intended to serve
as a simple facade for various logging APIs allowing to the end-user
to plug in the desired implementation at deployment time. SLF4J also
allows for a gradual migration path away from
Jakarta Commons Logging (JCL).
Logging API implementations can either choose to implement the
SLF4J interfaces directly, e.g. NLOG4J or SimpleLogger. Alternatively,
it is possible (and rather easy) to write SLF4J adapters for the given
API implementation, e.g. Log4jLoggerAdapter or JDK14LoggerAdapter.
%package javadoc
Group: Documentation
Summary: Javadoc for %{name}
%description javadoc
Simple Logging Facade for Java (SLF4J)
This package contains javadoc for %{name}
%if %maven
%package manual
Group: Documentation
Summary: Documents for %{name}
%description manual
Simple Logging Facade for Java (SLF4J)
This package contains documents for %{name}
%endif
%prep
%setup -q -n slf4j-%{version}
for j in $(find . -name "*.jar"); do
mv $j ${j}.no
done
%patch0 -p1
%if %maven
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
cp %{S:1} settings.xml
mkdir -p .m2/repository/JPP/maven2
sed -i -e "s|<localRepository>__INTERNAL_REPO_PLACEHOLDER__</localRepository>|<localRepository>file://`pwd`/external_repo</localRepository>|g" settings.xml
sed -i -e "s|<url>__EXTERNAL_REPO_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/repository</url>|g" settings.xml
mkdir external_repo
ln -s %{_javadir} external_repo/JPP
mkdir -p $MAVEN_REPO_LOCAL/org.slf4j
ln -sf $(build-classpath maven2/empty-dep) $MAVEN_REPO_LOCAL/org.slf4j/slf4j-api.jar
ln -sf $(build-classpath maven2/empty-dep) $MAVEN_REPO_LOCAL/org.slf4j/slf4j-simple.jar
ln -sf $(build-classpath maven2/empty-dep) $MAVEN_REPO_LOCAL/org.slf4j/slf4j-log4j12.jar
%else
tar -xf %{SOURCE2}
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6
%patch7
%patch8
%patch9
%patch10
%patch11
%endif
%build
export JAVA_HOME=/usr/lib/jvm/jdk-sun
export MAVEN_REPO_LOCAL=$PWD/.m2/repository
mkdir -p $MAVEN_REPO_LOCAL/junit/junit/3.8.1
ln -sf $(build-classpath junit381) $MAVEN_REPO_LOCAL/junit/junit/3.8.1/junit-3.8.1.jar
mkdir -p $MAVEN_REPO_LOCAL/log4j/log4j/1.2.14
ln -sf $(build-classpath log4j) $MAVEN_REPO_LOCAL/log4j/log4j/1.2.14/log4j-1.2.14.jar
mkdir -p $MAVEN_REPO_LOCAL/commons-logging/commons-logging/1.1.1
ln -sf $(build-classpath commons-logging) $MAVEN_REPO_LOCAL/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
mkdir -p $MAVEN_REPO_LOCAL/commons-lang/commons-lang/2.4
ln -sf $(build-classpath commons-lang24) $MAVEN_REPO_LOCAL/commons-lang/commons-lang/2.4/commons-lang-2.4.jar
mkdir -p $MAVEN_REPO_LOCAL/javassist/javassist/3.4.GA
ln -sf $(build-classpath javassist) $MAVEN_REPO_LOCAL/javassist/javassist/3.4.GA/javassist-3.4.GA.jar
mkdir -p $MAVEN_REPO_LOCAL/ant/ant-junit/1.6.5
ln -sf $(build-classpath ant/ant-junit) $MAVEN_REPO_LOCAL/ant/ant-junit/1.6.5/ant-junit-1.6.5.jar
%if %maven
export MAVEN_SETTINGS=$PWD/settings.xml
mvn-jpp \
-e \
-s $MAVEN_SETTINGS \
-Dmaven.test.failure.ignore=true \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
ant:ant install javadoc:javadoc
%else
pushd slf4j-api
mkdir -p target/test-classes/
cp -pr src/main/resources/META-INF target/test-classes/
export CLASSPATH=""
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
mkdir -p $MAVEN_REPO_LOCAL/org/slf4j/slf4j-api/%{version}
cp target/slf4j-api-%{version}.jar $MAVEN_REPO_LOCAL/org/slf4j/slf4j-api/%{version}/
cp target/slf4j-api-%{version}-tests.jar $MAVEN_REPO_LOCAL/org/slf4j/slf4j-api/%{version}/
popd
pushd slf4j-simple
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
popd
pushd slf4j-nop
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
popd
pushd slf4j-jdk14
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}-tests.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
mkdir -p $MAVEN_REPO_LOCAL/org/slf4j/slf4j-jdk14/%{version}
cp target/slf4j-jdk14-%{version}.jar $MAVEN_REPO_LOCAL/org/slf4j/slf4j-jdk14/%{version}/
popd
pushd slf4j-log4j12
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
mkdir -p $MAVEN_REPO_LOCAL/org/slf4j/slf4j-log4j12/%{version}
cp target/slf4j-log4j12-%{version}.jar $MAVEN_REPO_LOCAL/org/slf4j/slf4j-log4j12/%{version}/
popd
pushd slf4j-jcl
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
popd
pushd slf4j-ext
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:../slf4j-log4j12/target/slf4j-log4j12-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath commons-lang24 javassist)
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
popd
pushd jcl-over-slf4j
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:../slf4j-jdk14/target/slf4j-jdk14-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
popd
pushd jcl104-over-slf4j
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:../slf4j-jdk14/target/slf4j-jdk14-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar
popd
pushd log4j-over-slf4j
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:../slf4j-jdk14/target/slf4j-jdk14-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
popd
pushd jul-to-slf4j
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:../slf4j-log4j12/target/slf4j-log4j12-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
popd
pushd slf4j-migrator
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
popd
pushd integration
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2 ant/ant-junit):target/classes:target/test-classes
ant \
-buildfile maven-build.xml \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar
popd
%endif
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir}/slf4j
install -m 644 jcl104-over-slf4j/target/jcl104-over-slf4j-%{version}.jar \
%{buildroot}%{_javadir}/slf4j/jcl104-over-slf4j-%{version}.jar
install -m 644 jcl-over-slf4j/target/jcl-over-slf4j-%{version}.jar \
%{buildroot}%{_javadir}/slf4j/jcl-over-slf4j-%{version}.jar
install -m 644 jul-to-slf4j/target/jul-to-slf4j-%{version}.jar \
%{buildroot}%{_javadir}/slf4j/jul-to-slf4j-%{version}.jar
install -m 644 log4j-over-slf4j/target/log4j-over-slf4j-%{version}.jar \
%{buildroot}%{_javadir}/slf4j/log4j-over-slf4j-%{version}.jar
install -m 644 slf4j-api/target/slf4j-api-%{version}.jar \
%{buildroot}%{_javadir}/slf4j/api-%{version}.jar
install -m 644 slf4j-api/target/slf4j-api-%{version}-tests.jar \
%{buildroot}%{_javadir}/slf4j/api-tests-%{version}.jar
install -m 644 slf4j-ext/target/slf4j-ext-%{version}.jar \
%{buildroot}%{_javadir}/slf4j/ext-%{version}.jar
install -m 644 slf4j-jcl/target/slf4j-jcl-%{version}.jar \
%{buildroot}%{_javadir}/slf4j/jcl-%{version}.jar
install -m 644 slf4j-jdk14/target/slf4j-jdk14-%{version}.jar \
%{buildroot}%{_javadir}/slf4j/jdk14-%{version}.jar
install -m 644 slf4j-log4j12/target/slf4j-log4j12-%{version}.jar \
%{buildroot}%{_javadir}/slf4j/log4j12-%{version}.jar
install -m 644 slf4j-migrator/target/slf4j-migrator-%{version}.jar \
%{buildroot}%{_javadir}/slf4j/migrator-%{version}.jar
install -m 644 slf4j-nop/target/slf4j-nop-%{version}.jar \
%{buildroot}%{_javadir}/slf4j/nop-%{version}.jar
install -m 644 slf4j-simple/target/slf4j-simple-%{version}.jar \
%{buildroot}%{_javadir}/slf4j/simple-%{version}.jar
#install -m 644 slf4j-site/target/slf4j-site-%{version}.jar \
# %{buildroot}%{_javadir}/slf4j/site-%{version}.jar
(
cd %{buildroot}%{_javadir}/slf4j
for jar in *-%{version}*; do
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
done
)
mkdir -p %{buildroot}%{_datadir}/maven2/poms
%add_to_maven_depmap org.slf4j jcl104-over-slf4j %{version} JPP/slf4j jcl104-over-slf4j
%add_to_maven_depmap org.slf4j jcl-over-slf4j %{version} JPP/slf4j jcl-over-slf4j
%add_to_maven_depmap org.slf4j jul-to-slf4j %{version} JPP/slf4j jul-to-slf4j
%add_to_maven_depmap org.slf4j log4j-over-slf4j %{version} JPP/slf4j log4j-over-slf4j
%add_to_maven_depmap org.slf4j slf4j-parent %{version} JPP/slf4j parent
%add_to_maven_depmap org.slf4j slf4j-api %{version} JPP/slf4j api
%add_to_maven_depmap org.slf4j slf4j-ext %{version} JPP/slf4j ext
%add_to_maven_depmap org.slf4j slf4j-jcl %{version} JPP/slf4j jcl
%add_to_maven_depmap org.slf4j slf4j-jdk14 %{version} JPP/slf4j jdk14
%add_to_maven_depmap org.slf4j slf4j-log4j12 %{version} JPP/slf4j log4j12
%add_to_maven_depmap org.slf4j slf4j-migrator %{version} JPP/slf4j migrator
%add_to_maven_depmap org.slf4j slf4j-nop %{version} JPP/slf4j nop
%add_to_maven_depmap org.slf4j slf4j-simple %{version} JPP/slf4j simple
install -pm 644 pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-parent.pom
install -pm 644 jcl104-over-slf4j/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-jcl104-over-slf4j.pom
install -pm 644 jcl-over-slf4j/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-jcl-over-slf4j.pom
install -pm 644 jul-to-slf4j/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-jul-to-slf4j.pom
install -pm 644 log4j-over-slf4j/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-log4j-over-slf4j.pom
install -pm 644 slf4j-api/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-api.pom
install -m 644 slf4j-ext/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-ext.pom
install -pm 644 slf4j-jcl/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-jcl.pom
install -pm 644 slf4j-jdk14/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-jdk14.pom
install -pm 644 slf4j-log4j12/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-log4j12.pom
install -pm 644 slf4j-migrator/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-migrator.pom
install -pm 644 slf4j-nop/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-nop.pom
install -pm 644 slf4j-simple/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-simple.pom
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}
%if %maven
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}
rm -rf target/site/apidocs
%else
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/jcl-over-slf4j
cp -pr jcl-over-slf4j/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/jcl-over-slf4j
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/jul-to-slf4j
cp -pr jul-to-slf4j/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/jul-to-slf4j
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/log4j-over-slf4j
cp -pr log4j-over-slf4j/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/log4j-over-slf4j
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/api
cp -pr slf4j-api/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/api
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/ext
cp -pr slf4j-ext/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/ext
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/jcl
cp -pr slf4j-jcl/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/jcl
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/jdk14
cp -pr slf4j-jdk14/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/jdk14
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/log4j12
cp -pr slf4j-log4j12/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/log4j12
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/migrator
cp -pr slf4j-migrator/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/migrator
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/nop
cp -pr slf4j-nop/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/nop
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/simple
cp -pr slf4j-simple/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/simple
%endif
ln -s slf4j-%{version} %{buildroot}%{_javadocdir}/slf4j
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%dir %{_javadir}/slf4j
%{_javadir}/slf4j/api-%{version}.jar
%{_javadir}/slf4j/api-tests-%{version}.jar
%{_javadir}/slf4j/api-tests.jar
%{_javadir}/slf4j/api.jar
%{_javadir}/slf4j/ext-%{version}.jar
%{_javadir}/slf4j/ext.jar
%{_javadir}/slf4j/jcl-%{version}.jar
%{_javadir}/slf4j/jcl-over-slf4j-%{version}.jar
%{_javadir}/slf4j/jcl-over-slf4j.jar
%{_javadir}/slf4j/jcl.jar
%{_javadir}/slf4j/jcl104-over-slf4j-%{version}.jar
%{_javadir}/slf4j/jcl104-over-slf4j.jar
%{_javadir}/slf4j/jdk14-%{version}.jar
%{_javadir}/slf4j/jdk14.jar
%{_javadir}/slf4j/jul-to-slf4j-%{version}.jar
%{_javadir}/slf4j/jul-to-slf4j.jar
%{_javadir}/slf4j/log4j-over-slf4j-%{version}.jar
%{_javadir}/slf4j/log4j-over-slf4j.jar
%{_javadir}/slf4j/log4j12-%{version}.jar
%{_javadir}/slf4j/log4j12.jar
%{_javadir}/slf4j/migrator-%{version}.jar
%{_javadir}/slf4j/migrator.jar
%{_javadir}/slf4j/nop-%{version}.jar
%{_javadir}/slf4j/nop.jar
%{_javadir}/slf4j/simple-%{version}.jar
%{_javadir}/slf4j/simple.jar
%{_datadir}/maven2/poms
%{_mavendepmapfragdir}
%doc LICENSE.txt
%files javadoc
%defattr(-,root,root)
%{_javadocdir}/slf4j-%{version}
%{_javadocdir}/slf4j
%if %maven
%files manual
%defattr(-,root,root)
%doc target/site
%endif
%changelog
* Sat Nov 06 2010 gil <puntogil@libero.it> 1.5.8-3mamba
- rebuilt devel
* Tue Jan 19 2010 gil <puntogil@libero.it> 1.5.8-2mamba
- rebuilt with ant
* Tue Jun 23 2009 gil <puntogil@libero.it> 1.5.8-1mamba
- package created by autospec

245
maven2-2.2.0-settings.xml Normal file
View File

@ -0,0 +1,245 @@
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!--
| This is the configuration file for Maven. It can be specified at two levels:
|
| 1. User Level. This settings.xml file provides configuration for a single user,
| and is normally provided in $HOME/.m2/settings.xml.
|
| NOTE: This location can be overridden with the system property:
|
| -Dorg.apache.maven.user-settings=/path/to/user/settings.xml
|
| 2. Global Level. This settings.xml file provides configuration for all maven
| users on a machine (assuming they're all using the same maven
| installation). It's normally provided in
| ${maven.home}/conf/settings.xml.
|
| NOTE: This location can be overridden with the system property:
|
| -Dorg.apache.maven.global-settings=/path/to/global/settings.xml
|
| The sections in this sample file are intended to give you a running start at
| getting the most out of your Maven installation. Where appropriate, the default
| values (values used when the setting is not specified) are provided.
|
|-->
<settings xmlns="http://maven.apache.org/settings/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ~/.m2/repository-->
<localRepository>__INTERNAL_REPO_PLACEHOLDER__</localRepository>
<!-- interactiveMode
| This will determine whether maven prompts you when it needs input. If set to false,
| maven will use a sensible default value, perhaps based on some other setting, for
| the parameter in question.
|
| Default: true
<interactiveMode>true</interactiveMode>
-->
<!-- offline
| Determines whether maven should attempt to connect to the network when executing a build.
| This will have an effect on artifact downloads, artifact deployment, and others.
|
| Default: false
<offline>false</offline>
-->
<!-- proxies
| This is a list of proxies which can be used on this machine to connect to the network.
| Unless otherwise specified (by system property or command-line switch), the first proxy
| specification in this list marked as active will be used.
|-->
<proxies>
<!-- proxy
| Specification for one proxy, to be used in connecting to the network.
|
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>proxyuser</username>
<password>proxypass</password>
<host>proxy.host.net</host>
<port>80</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
-->
</proxies>
<!-- servers
| This is a list of authentication profiles, keyed by the server-id used within the system.
| Authentication profiles can be used whenever maven must make a connection to a remote server.
|-->
<servers>
<!-- server
| Specifies the authentication information to use when connecting to a particular server, identified by
| a unique name within the system (referred to by the 'id' attribute below).
|
| NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are
| used together.
|
<server>
<id>deploymentRepo</id>
<username>repouser</username>
<password>repopwd</password>
</server>
-->
<!-- Another sample, using keys to authenticate.
<server>
<id>siteServer</id>
<privateKey>/path/to/private/key</privateKey>
<passphrase>optional; leave empty if not used.</passphrase>
</server>
-->
</servers>
<!-- mirrors
| This is a list of mirrors to be used in downloading artifacts from remote repositories.
|
| It works like this: a POM may declare a repository to use in resolving certain artifacts.
| However, this repository may have problems with heavy traffic at times, so people have mirrored
| it to several places.
|
| That repository definition will have a unique id, so we can create a mirror reference for that
| repository, to be used as an alternate download site. The mirror site will be the preferred
| server for that repository.
|-->
<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|
-->
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>__EXTERNAL_REPO_PLACEHOLDER__</url>
</mirror>
</mirrors>
<!-- profiles
| This is a list of profiles which can be activated in a variety of ways, and which can modify
| the build process. Profiles provided in the settings.xml are intended to provide local machine-
| specific paths and repository locations which allow the build to work in the local environment.
|
| For example, if you have an integration testing plugin - like cactus - that needs to know where
| your Tomcat instance is installed, you can provide a variable here such that the variable is
| dereferenced during the build process to configure the cactus plugin.
|
| As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles
| section of this document (settings.xml) - will be discussed later. Another way essentially
| relies on the detection of a system property, either matching a particular value for the property,
| or merely testing its existence. Profiles can also be activated by JDK version prefix, where a
| value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.
| Finally, the list of active profiles can be specified directly from the command line.
|
| NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact
| repositories, plugin repositories, and free-form properties to be used as configuration
| variables for plugins in the POM.
|
|-->
<profiles>
<!-- profile
| Specifies a set of introductions to the build process, to be activated using one or more of the
| mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/>
| or the command line, profiles have to have an ID that is unique.
|
| An encouraged best practice for profile identification is to use a consistent naming convention
| for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc.
| This will make it more intuitive to understand what the set of introduced profiles is attempting
| to accomplish, particularly when you only have a list of profile id's for debug.
|
| This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.
<profile>
<id>jdk-1.4</id>
<activation>
<jdk>1.4</jdk>
</activation>
<repositories>
<repository>
<id>jdk14</id>
<name>Repository for JDK 1.4 builds</name>
<url>http://www.myhost.com/maven/jdk14</url>
<layout>default</layout>
<snapshotPolicy>always</snapshotPolicy>
</repository>
</repositories>
</profile>
-->
<!--
| Here is another profile, activated by the system property 'target-env' with a value of 'dev',
| which provides a specific path to the Tomcat instance. To use this, your plugin configuration
| might hypothetically look like:
|
| ...
| <plugin>
| <groupId>org.myco.myplugins</groupId>
| <artifactId>myplugin</artifactId>
|
| <configuration>
| <tomcatLocation>${tomcatPath}</tomcatLocation>
| </configuration>
| </plugin>
| ...
|
| NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to
| anything, you could just leave off the <value/> inside the activation-property.
|
<profile>
<id>env-dev</id>
<activation>
<property>
<name>target-env</name>
<value>dev</value>
</property>
</activation>
<properties>
<tomcatPath>/path/to/tomcat/instance</tomcatPath>
</properties>
</profile>
-->
</profiles>
<!-- activeProfiles
| List of profiles that are active for all builds.
|
<activeProfiles>
<activeProfile>alwaysActiveProfile</activeProfile>
<activeProfile>anotherAlwaysActiveProfile</activeProfile>
</activeProfiles>
-->
</settings>