77f746
# Copyright (c) 2000-2009, JPackage Project
77f746
# All rights reserved.
77f746
#
77f746
# Redistribution and use in source and binary forms, with or without
77f746
# modification, are permitted provided that the following conditions
77f746
# are met:
77f746
#
77f746
# 1. Redistributions of source code must retain the above copyright
77f746
#    notice, this list of conditions and the following disclaimer.
77f746
# 2. Redistributions in binary form must reproduce the above copyright
77f746
#    notice, this list of conditions and the following disclaimer in the
77f746
#    documentation and/or other materials provided with the
77f746
#    distribution.
77f746
# 3. Neither the name of the JPackage Project nor the names of its
77f746
#    contributors may be used to endorse or promote products derived
77f746
#    from this software without specific prior written permission.
77f746
#
77f746
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
77f746
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
77f746
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
77f746
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
77f746
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
77f746
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
77f746
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
77f746
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
77f746
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
77f746
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
77f746
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
77f746
#
77f746
77f746
Name:           slf4j
77f746
Version:        1.7.4
77f746
Release:        4%{?dist}
77f746
Epoch:          0
77f746
Summary:        Simple Logging Facade for Java
77f746
Group:          Development/Libraries
77f746
# the log4j-over-slf4j and jcl-over-slf4j submodules are ASL 2.0, rest is MIT
77f746
License:        MIT and ASL 2.0
77f746
URL:            http://www.slf4j.org/
77f746
Source0:        http://www.slf4j.org/dist/%{name}-%{version}.tar.gz
77f746
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
77f746
Patch0:         0001-Disallow-EventData-deserialization-by-default.patch
77f746
BuildArch:      noarch
77f746
77f746
BuildRequires:  jpackage-utils >= 0:1.7.5
77f746
BuildRequires:  java-devel >= 0:1.5.0
77f746
BuildRequires:  ant >= 0:1.6.5
77f746
BuildRequires:  ant-junit >= 0:1.6.5
77f746
BuildRequires:  javassist >= 0:3.4
77f746
BuildRequires:  junit >= 0:3.8.2
77f746
BuildRequires:  maven-local
77f746
BuildRequires:  maven-antrun-plugin
77f746
BuildRequires:  maven-compiler-plugin
77f746
BuildRequires:  maven-install-plugin
77f746
BuildRequires:  maven-jar-plugin
77f746
BuildRequires:  maven-javadoc-plugin
77f746
BuildRequires:  maven-resources-plugin
77f746
BuildRequires:  maven-source-plugin
77f746
BuildRequires:  maven-site-plugin
77f746
BuildRequires:  maven-doxia-sitetools
77f746
BuildRequires:  maven-surefire-plugin
77f746
BuildRequires:  maven-surefire-provider-junit
77f746
BuildRequires:  maven-plugin-build-helper
77f746
BuildRequires:  log4j
77f746
BuildRequires:  apache-commons-logging
77f746
BuildRequires:  cal10n
77f746
77f746
%description
77f746
The Simple Logging Facade for Java or (SLF4J) is intended to serve
77f746
as a simple facade for various logging APIs allowing to the end-user
77f746
to plug in the desired implementation at deployment time. SLF4J also
77f746
allows for a gradual migration path away from
77f746
Jakarta Commons Logging (JCL).
77f746
77f746
Logging API implementations can either choose to implement the
77f746
SLF4J interfaces directly, e.g. NLOG4J or SimpleLogger. Alternatively,
77f746
it is possible (and rather easy) to write SLF4J adapters for the given
77f746
API implementation, e.g. Log4jLoggerAdapter or JDK14LoggerAdapter..
77f746
77f746
%package javadoc
77f746
Group:          Documentation
77f746
Summary:        API documentation for %{name}
77f746
77f746
%description javadoc
77f746
This package provides %{summary}.
77f746
77f746
%package manual
77f746
Group:          Documentation
77f746
Summary:        Manual for %{name}
77f746
77f746
%description manual
77f746
This package provides documentation for %{name}.
77f746
77f746
%prep
77f746
%setup -q
77f746
%patch0 -p1
77f746
find . -name "*.jar" | xargs rm
77f746
cp -p %{SOURCE1} APACHE-LICENSE
77f746
77f746
%pom_disable_module integration
77f746
%pom_disable_module osgi-over-slf4j
77f746
%pom_remove_plugin :maven-source-plugin
77f746
77f746
# Because of a non-ASCII comment in slf4j-api/src/main/java/org/slf4j/helpers/MessageFormatter.java
77f746
%pom_xpath_inject "pom:project/pom:properties" "
77f746
    <project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>"
77f746
77f746
# Fix javadoc links
77f746
%pom_xpath_remove "pom:links"
77f746
%pom_xpath_inject "pom:plugin[pom:artifactId[text()='maven-javadoc-plugin']]/pom:configuration" "
77f746
    <detectJavaApiLink>false</detectJavaApiLink>
77f746
    <isOffline>false</isOffline>
77f746
    <links><link>/usr/share/javadoc/java</link></links>"
77f746
77f746
# dos2unix
77f746
%{_bindir}/find -name "*.css" -o -name "*.js" -o -name "*.txt" | \
77f746
    %{_bindir}/xargs -t %{__perl} -pi -e 's/\r$//g'
77f746
77f746
# The general pattern is that the API package exports API classes and does
77f746
# not require impl classes. slf4j was breaking that causing "A cycle was
77f746
# detected when generating the classpath slf4j.api, slf4j.nop, slf4j.api."
77f746
# The API bundle requires impl package, so to avoid cyclic dependencies
77f746
# during build time, it is necessary to mark the imported package as an
77f746
# optional one.
77f746
# Reported upstream: http://bugzilla.slf4j.org/show_bug.cgi?id=283
77f746
sed -i "/Import-Package/s/.$/;resolution:=optional&/" slf4j-api/src/main/resources/META-INF/MANIFEST.MF
77f746
77f746
%build
77f746
%mvn_build -f
77f746
77f746
%install
77f746
%mvn_install
77f746
77f746
# Compat symlinks
77f746
(cd $RPM_BUILD_ROOT/%{_javadir}/%{name}; for jar in %{name}-*; do
77f746
    ln -s $jar ${jar/%{name}-/}; done)
77f746
77f746
# manual
77f746
install -d -m 0755 $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-manual-%{version}
77f746
rm -rf target/site/{.htaccess,apidocs}
77f746
cp -pr target/site/* $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-manual-%{version}
77f746
77f746
%files -f .mfiles
77f746
%doc LICENSE.txt APACHE-LICENSE
77f746
%{_javadir}/%{name}
77f746
77f746
%files javadoc -f .mfiles-javadoc
77f746
%doc LICENSE.txt APACHE-LICENSE
77f746
77f746
%files manual
77f746
%doc LICENSE.txt APACHE-LICENSE
77f746
77f746
%changelog
77f746
* Tue Mar 20 2018 Michael Simacek <msimacek@redhat.com> - 0:1.7.4-4
77f746
- Disallow EventData deserialization by default (CVE-2018-8088)
77f746
77f746
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 01.7.4-3
77f746
- Mass rebuild 2013-12-27
77f746
77f746
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7.4-2
77f746
- Rebuild to regenerate API documentation
77f746
- Resolves: CVE-2013-1571
77f746
77f746
* Wed Mar 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7.4-1
77f746
- Update to upstream version 1.7.4
77f746
77f746
* Fri Mar 15 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7.3-1
77f746
- Update to upstream version 1.7.3
77f746
77f746
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.7.2-9
77f746
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
77f746
77f746
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 0:1.7.2-8
77f746
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
77f746
- Replace maven BuildRequires with maven-local
77f746
77f746
* Wed Jan  9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7.2-7
77f746
- Fix install location of manual
77f746
77f746
* Tue Jan  8 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7.2-6
77f746
- Rebuild to generate maven provides
77f746
77f746
* Fri Nov 30 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7.2-5
77f746
- Build with xmvn
77f746
77f746
* Wed Nov 21 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7.2-4
77f746
- Install Apache license file
77f746
- Resolves: rhbz#878996
77f746
77f746
* Thu Nov 15 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7.2-3
77f746
- Avoid cyclic OSGi dependencies
77f746
77f746
* Thu Nov 08 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.7.2-2
77f746
- Fix license to ASL 2.0 and MIT
77f746
- Update to add_maven_depmap macro
77f746
- Use generated .mfiles list
77f746
- Small packaging cleanups
77f746
77f746
* Mon Oct 15 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7.2-1
77f746
- Update to upstream version 1.7.2
77f746
77f746
* Mon Sep 17 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7.1-1
77f746
- Update to upstream version 1.7.1
77f746
77f746
* Mon Sep 10 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7.0-1
77f746
- Update to upstream version 1.7.0
77f746
77f746
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.6.6-2
77f746
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
77f746
77f746
* Wed Jul 11 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.6.6-1
77f746
- Update to upstream version 1.6.6
77f746
- Convert patches to POM macros
77f746
77f746
* Fri Jan 13 2012 Ville Skyttä <ville.skytta@iki.fi> - 0:1.6.1-5
77f746
- Crosslink with local JDK API docs.
77f746
77f746
* Fri Jan 13 2012 Ville Skyttä <ville.skytta@iki.fi> - 0:1.6.1-4
77f746
- Specify explicit source encoding to fix build with Java 1.7.
77f746
- Remove no longer needed javadoc dir upgrade hack.
77f746
77f746
* Wed Jun 8 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.6.1-3
77f746
- Build with maven 3.x.
77f746
77f746
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.6.1-2
77f746
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
77f746
77f746
* Tue Jan 25 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.6.1-1
77f746
- Update to new upstream version.
77f746
- Various guidelines fixes.
77f746
77f746
* Wed Sep 8 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.5.11-3
77f746
- Add maven-site-pugin BR.
77f746
- Use new package names.
77f746
77f746
* Wed Sep 8 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.5.11-2
77f746
- Skip installing tests jar that is no longer produced.
77f746
- Use javadoc aggregate.
77f746
- Use mavenpomdir macro.
77f746
77f746
* Thu Feb 25 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.5.11-1
77f746
- Update to 1.5.11.
77f746
- Drop depmap and component info files.
77f746
77f746
* Wed Feb 10 2010 Mary Ellen Foster <mefoster at gmail.com> 0:1.5.10-5
77f746
- Require cal10n
77f746
77f746
* Wed Feb 10 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.5.10-4
77f746
- Fix javadoc files.
77f746
77f746
* Wed Feb 10 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.5.10-3
77f746
- BR maven-plugin-build-helper.
77f746
77f746
* Wed Feb 10 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.5.10-2
77f746
- BR cal10n.
77f746
77f746
* Wed Feb 10 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.5.10-1
77f746
- Update to upstream 1.5.10.
77f746
77f746
* Fri Sep 4 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.5.8-5
77f746
- Skip tests.
77f746
77f746
* Wed Sep 2 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.5.8-4
77f746
- Fix other line lenghts.
77f746
77f746
* Wed Sep 2 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.5.8-3
77f746
- Fix permissions.
77f746
- Fixed descriptions.
77f746
- Fix file lengths.
77f746
77f746
* Wed Sep 2 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.5.8-2
77f746
- Adapt for Fedora.
77f746
77f746
* Wed Jul 29 2009 Yong Yang <yyang@redhat.com> 0:1.5.8-1
77f746
- 1.5.8
77f746
- Replace slf4j-1.5.6-integration-tests-current-only.patch with
77f746
  slf4j-1.5.8-skip-integration-tests.patch because of the failure of "testMatch"
77f746
77f746
* Fri Jun 12 2009 Ralph Apel <r.apel at r-apel.de> 0:1.5.6-2
77f746
- Add -ext jar, depmap and pom
77f746
- Save jcl104-over-slf4j as symlink
77f746
77f746
* Tue Feb 18 2009 David Walluck <dwalluck@redhat.com> 0:1.5.6-1
77f746
- 1.5.6
77f746
- add repolib
77f746
- fix file eol
77f746
- fix Release tag
77f746
77f746
* Fri Jul 18 2008 David Walluck <dwalluck@redhat.com> 0:1.5.2-2
77f746
- use excalibur for avalon
77f746
- remove javadoc scriptlets
77f746
- GCJ fixes
77f746
- fix maven directory ownership
77f746
- fix -bc --short-circuit by moving some of %%build to %%prep
77f746
77f746
* Sun Jul 06 2008 Ralph Apel <r.apel at r-apel.de> 0:1.5.2-1.jpp5
77f746
- 1.5.2
77f746
77f746
* Mon Feb 04 2008 Ralph Apel <r.apel at r-apel.de> 0:1.4.2-2jpp
77f746
- Fix macro misprint
77f746
- Add maven2-plugin BRs
77f746
77f746
* Wed Jul 18 2007 Ralph Apel <r.apel at r-apel.de> 0:1.4.2-1jpp
77f746
- Upgrade to 1.4.2
77f746
- Build with maven2
77f746
- Add poms and depmap frags
77f746
- Add gcj_support option
77f746
77f746
* Mon Jan 30 2006 Ralph Apel <r.apel at r-apel.de> 0:1.0-0.rc5.1jpp
77f746
- First JPackage release.