java-slf4j/java-slf4j.spec

499 lines
20 KiB
RPMSpec
Raw Normal View History

%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