diff --git a/.gitignore b/.gitignore
index bef928a..6150c9c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
slf4j-1.5.8.tar.gz
slf4j-1.5.10.tar.gz
slf4j-1.5.11.tar.gz
+slf4j-1.6.1.tar.gz
diff --git a/slf4j-1.5.8-skip-integration-tests.patch b/slf4j-1.5.8-skip-integration-tests.patch
deleted file mode 100644
index bde60e6..0000000
--- a/slf4j-1.5.8-skip-integration-tests.patch
+++ /dev/null
@@ -1,46 +0,0 @@
---- slf4j-1.5.8/integration/build.xml.orig 2009-07-29 11:46:27.000000000 +0800
-+++ slf4j-1.5.8/integration/build.xml 2009-07-29 12:42:44.000000000 +0800
-@@ -61,34 +61,42 @@
-
-
-
-+
-
-
-
-+
-
-
-
-+
-
-
-
-+
-
-
-\ No newline at end of file
diff --git a/slf4j-pom_xml.patch b/slf4j-pom_xml.patch
index 20582ae..45c5556 100644
--- a/slf4j-pom_xml.patch
+++ b/slf4j-pom_xml.patch
@@ -1,7 +1,7 @@
---- pom.xml.sav 2009-12-03 01:15:37.000000000 +0200
-+++ pom.xml 2010-02-02 22:46:30.664328057 +0200
+--- pom.xml.sav 2010-07-05 23:24:16.000000000 +0300
++++ pom.xml 2011-01-25 22:34:34.761335409 +0200
@@ -44,7 +44,7 @@
- jcl104-over-slf4j
+ jcl-over-slf4j
log4j-over-slf4j
jul-to-slf4j
- integration
@@ -30,7 +30,7 @@
org.apache.maven.plugins
-@@ -328,4 +329,4 @@
+@@ -349,4 +350,4 @@
diff --git a/slf4j-settings.xml b/slf4j-settings.xml
deleted file mode 100644
index efe7bd7..0000000
--- a/slf4j-settings.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
- JPP
-
-
- internal
- jpp
- __JPP_URL_PLACEHOLDER__
-
-
- external
- jpp
- __JAVADIR_PLACEHOLDER__
-
-
- local
- jpp
- __MAVENREPO_DIR_PLACEHOLDER__
-
-
-
-
- plugins-internal
- plugins-internal
- jpp
- __JPP_URL_PLACEHOLDER__
-
-
- plugins-external
- plugins-external
- jpp
- __JAVADIR_PLACEHOLDER__
-
-
- plugins-maven
- plugins-maven
- jpp
- __MAVENDIR_PLUGIN_PLACEHOLDER__
-
-
-
-
-
- JPP
-
-
diff --git a/slf4j.spec b/slf4j.spec
index 522b9ad..f55e2fa 100644
--- a/slf4j.spec
+++ b/slf4j.spec
@@ -29,17 +29,15 @@
#
Name: slf4j
-Version: 1.5.11
-Release: 3%{?dist}
+Version: 1.6.1
+Release: 1%{?dist}
Epoch: 0
Summary: Simple Logging Facade for Java
Group: Development/Libraries
License: MIT
URL: http://www.slf4j.org/
Source0: http://www.slf4j.org/dist/%{name}-%{version}.tar.gz
-Source1: %{name}-settings.xml
Patch0: %{name}-pom_xml.patch
-Patch1: slf4j-1.5.8-skip-integration-tests.patch
Requires(post): jpackage-utils >= 0:1.7.5
Requires(postun): jpackage-utils >= 0:1.7.5
BuildRequires: jpackage-utils >= 0:1.7.5
@@ -68,7 +66,6 @@ Requires: jpackage-utils
Requires: cal10n
Requires: java
BuildArch: noarch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
The Simple Logging Facade for Java or (SLF4J) is intended to serve
@@ -85,6 +82,7 @@ API implementation, e.g. Log4jLoggerAdapter or JDK14LoggerAdapter..
%package javadoc
Group: Documentation
Summary: Javadoc for %{name}
+Requires: jpackage-utils
%description javadoc
API documentation for %{name}.
@@ -99,34 +97,9 @@ Manual for %{name}.
%prep
%setup -q
%patch0 -p0 -b .sav
-%patch1 -p1
find . -name "*.jar" | xargs rm
-cp -p %{SOURCE1} settings.xml
-sed -i -e "s|__JPP_URL_PLACEHOLDER__|file://`pwd`/.m2/repository|g" \
- settings.xml
-sed -i -e "s|__JAVADIR_PLACEHOLDER__|file://`pwd`/external_repo|g" \
- settings.xml
-sed -i -e "s|__MAVENREPO_DIR_PLACEHOLDER__|file://`pwd`/.m2/repository|g" \
- settings.xml
-sed -i -e "s|__MAVENDIR_PLUGIN_PLACEHOLDER__|file:///usr/share/maven2/plugins|g" \
- settings.xml
-sed -i -e "s|__ECLIPSEDIR_PLUGIN_PLACEHOLDER__|file:///usr/share/eclipse/plugins|g" \
- settings.xml
-
-mkdir external_repo
-ln -s %{_javadir} external_repo/JPP
-
-export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
-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
-ln -sf $(build-classpath maven2/empty-dep) \
- $MAVEN_REPO_LOCAL/org.slf4j/slf4j-nop.jar
+sed -i -e "s|ant<|org.apache.ant<|g" integration/pom.xml
%{_bindir}/find -name "*.css" -o -name "*.js" -o -name "*.txt" | \
%{_bindir}/xargs -t %{__perl} -pi -e 's/\r$//g'
@@ -135,50 +108,38 @@ ln -sf $(build-classpath maven2/empty-dep) \
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mvn-jpp \
-e \
- -s $(pwd)/settings.xml \
-P skipTests \
- -Dmaven2.jpp.mode=true \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.test.skip=true \
install javadoc:aggregate
%install
-rm -rf $RPM_BUILD_ROOT
-
# jars
install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}/%{name}
-#install -m 644 jcl104-over-slf4j/target/jcl104-over-slf4j-%{version}.jar
-# $RPM_BUILD_ROOT%{_javadir}/%{name}/jcl104-over-slf4j-%{version}.jar
-ln -sf jcl-over-slf4j-%{version}.jar \
- $RPM_BUILD_ROOT%{_javadir}/%{name}/jcl104-over-slf4j-%{version}.jar
install -m 644 jcl-over-slf4j/target/jcl-over-slf4j-%{version}.jar \
- $RPM_BUILD_ROOT%{_javadir}/%{name}/jcl-over-slf4j-%{version}.jar
+ $RPM_BUILD_ROOT%{_javadir}/%{name}/jcl-over-slf4j.jar
install -m 644 jul-to-slf4j/target/jul-to-slf4j-%{version}.jar \
- $RPM_BUILD_ROOT%{_javadir}/%{name}/jul-to-slf4j-%{version}.jar
+ $RPM_BUILD_ROOT%{_javadir}/%{name}/jul-to-slf4j.jar
install -m 644 log4j-over-slf4j/target/log4j-over-slf4j-%{version}.jar \
- $RPM_BUILD_ROOT%{_javadir}/%{name}/log4j-over-slf4j-%{version}.jar
+ $RPM_BUILD_ROOT%{_javadir}/%{name}/log4j-over-slf4j.jar
install -m 644 slf4j-api/target/%{name}-api-%{version}.jar \
- $RPM_BUILD_ROOT%{_javadir}/%{name}/api-%{version}.jar
+ $RPM_BUILD_ROOT%{_javadir}/%{name}/api.jar
install -m 644 slf4j-ext/target/%{name}-ext-%{version}.jar \
- $RPM_BUILD_ROOT%{_javadir}/%{name}/ext-%{version}.jar
+ $RPM_BUILD_ROOT%{_javadir}/%{name}/ext.jar
install -m 644 slf4j-jcl/target/%{name}-jcl-%{version}.jar \
- $RPM_BUILD_ROOT%{_javadir}/%{name}/jcl-%{version}.jar
+ $RPM_BUILD_ROOT%{_javadir}/%{name}/jcl.jar
install -m 644 slf4j-jdk14/target/%{name}-jdk14-%{version}.jar \
- $RPM_BUILD_ROOT%{_javadir}/%{name}/jdk14-%{version}.jar
+ $RPM_BUILD_ROOT%{_javadir}/%{name}/jdk14.jar
install -m 644 slf4j-log4j12/target/%{name}-log4j12-%{version}.jar \
- $RPM_BUILD_ROOT%{_javadir}/%{name}/log4j12-%{version}.jar
+ $RPM_BUILD_ROOT%{_javadir}/%{name}/log4j12.jar
install -m 644 slf4j-migrator/target/%{name}-migrator-%{version}.jar \
- $RPM_BUILD_ROOT%{_javadir}/%{name}/migrator-%{version}.jar
+ $RPM_BUILD_ROOT%{_javadir}/%{name}/migrator.jar
install -m 644 slf4j-nop/target/%{name}-nop-%{version}.jar \
- $RPM_BUILD_ROOT%{_javadir}/%{name}/nop-%{version}.jar
+ $RPM_BUILD_ROOT%{_javadir}/%{name}/nop.jar
install -m 644 slf4j-simple/target/%{name}-simple-%{version}.jar \
- $RPM_BUILD_ROOT%{_javadir}/%{name}/simple-%{version}.jar
+ $RPM_BUILD_ROOT%{_javadir}/%{name}/simple.jar
-(cd $RPM_BUILD_ROOT%{_javadir}/%{name} && for jar in *-%{version}*; \
- do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
-
-%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
@@ -193,11 +154,9 @@ install -m 644 slf4j-simple/target/%{name}-simple-%{version}.jar \
%add_to_maven_depmap org.slf4j %{name}-simple %{version} JPP/slf4j simple
# poms
-install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
+install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -pm 644 pom.xml \
$RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-parent.pom
-install -pm 644 jcl104-over-slf4j/pom.xml \
- $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-jcl104-over-slf4j.pom
install -pm 644 jcl-over-slf4j/pom.xml \
$RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-jcl-over-slf4j.pom
install -pm 644 jul-to-slf4j/pom.xml \
@@ -222,9 +181,8 @@ install -pm 644 slf4j-simple/pom.xml \
$RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-simple.pom
# javadoc
-install -d -m 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
-cp -pr target/site/api*/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/
-ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+install -d -m 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+cp -pr target/site/api*/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/
rm -rf target/site/api*
# manual
@@ -233,8 +191,10 @@ rm -f target/site/.htaccess
cp -pr target/site $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
install -m 644 LICENSE.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
-%clean
-rm -rf $RPM_BUILD_ROOT
+%pre javadoc
+# workaround for rpm bug, can be removed in F-17
+[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
+rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
%post
%update_maven_depmap
@@ -252,7 +212,6 @@ rm -rf $RPM_BUILD_ROOT
%files javadoc
%defattr(-,root,root,-)
-%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}
%files manual
@@ -260,6 +219,10 @@ rm -rf $RPM_BUILD_ROOT
%{_docdir}/%{name}-%{version}/site
%changelog
+* Tue Jan 25 2011 Alexander Kurtakov 0:1.6.1-1
+- Update to new upstream version.
+- Various guidelines fixes.
+
* Wed Sep 8 2010 Alexander Kurtakov 0:1.5.11-3
- Add maven-site-pugin BR.
- Use new package names.
diff --git a/sources b/sources
index 8654245..b1a7d7e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-47da098f960ebd59bc2ca838b4128ed8 slf4j-1.5.11.tar.gz
+289d4ce9b710269614e97f1ae6a27906 slf4j-1.6.1.tar.gz