diff --git a/0001-SLF4j-1.7-upgrade.patch b/0001-SLF4j-1.7-upgrade.patch new file mode 100644 index 0000000..ad52634 --- /dev/null +++ b/0001-SLF4j-1.7-upgrade.patch @@ -0,0 +1,24 @@ +From 43ff272e418b7c2699d60fc930d5c97d8a4ebd82 Mon Sep 17 00:00:00 2001 +From: Marek Goldmann +Date: Tue, 1 Jul 2014 14:26:35 +0200 +Subject: [PATCH] SLF4j 1.7 upgrade + +--- + src/main/java/org/jboss/logging/Slf4jLoggerProvider.java | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/main/java/org/jboss/logging/Slf4jLoggerProvider.java b/src/main/java/org/jboss/logging/Slf4jLoggerProvider.java +index 0eedf16..4434838 100644 +--- a/src/main/java/org/jboss/logging/Slf4jLoggerProvider.java ++++ b/src/main/java/org/jboss/logging/Slf4jLoggerProvider.java +@@ -55,6 +55,6 @@ final class Slf4jLoggerProvider extends AbstractLoggerProvider implements Logger + + @SuppressWarnings({ "unchecked" }) + public Map getMdcMap() { +- return MDC.getCopyOfContextMap(); ++ return (Map) MDC.getCopyOfContextMap(); + } + } +-- +1.9.3 + diff --git a/jboss-logging.spec b/jboss-logging.spec index 36ff7ce..7874e20 100644 --- a/jboss-logging.spec +++ b/jboss-logging.spec @@ -3,12 +3,14 @@ Name: jboss-logging Version: 3.1.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The JBoss Logging Framework License: ASL 2.0 URL: https://github.com/jboss-logging/jboss-logging Source0: https://github.com/jboss-logging/jboss-logging/archive/%{namedversion}.tar.gz +Patch0: 0001-SLF4j-1.7-upgrade.patch + BuildArch: noarch BuildRequires: maven-local @@ -39,6 +41,8 @@ This package contains the API documentation for %{name}. %prep %setup -q -n jboss-logging-%{namedversion} +%patch0 -p1 + %build %mvn_build -f @@ -52,6 +56,9 @@ This package contains the API documentation for %{name}. %doc src/main/resources/META-INF/LICENSE.txt %changelog +* Tue Jul 01 2014 Marek Goldmann - 3.1.4-3 +- Upgrade to SLF4j 1.7 + * Sat Jun 07 2014 Fedora Release Engineering - 3.1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild