%bcond_without jp_minimal Name: log4j Version: 2.11.1 Release: 5%{?dist} Summary: Java logging package BuildArch: noarch License: ASL 2.0 URL: http://logging.apache.org/%{name} Source0: http://www.apache.org/dist/logging/%{name}/%{version}/apache-%{name}-%{version}-src.tar.gz BuildRequires: maven-local BuildRequires: mvn(com.fasterxml.jackson.core:jackson-core) BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind) BuildRequires: mvn(com.lmax:disruptor) BuildRequires: mvn(com.sun.mail:javax.mail) BuildRequires: mvn(org.apache.commons:commons-compress) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.logging:logging-parent:pom:) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.fusesource.jansi:jansi) BuildRequires: mvn(org.jctools:jctools-core) BuildRequires: mvn(org.osgi:osgi.core) BuildRequires: mvn(org.slf4j:slf4j-api) BuildRequires: mvn(org.slf4j:slf4j-ext) %if %{without jp_minimal} BuildRequires: mvn(com.datastax.cassandra:cassandra-driver-core) BuildRequires: mvn(com.fasterxml.jackson.core:jackson-core) BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind) BuildRequires: mvn(com.fasterxml.jackson.dataformat:jackson-dataformat-xml) BuildRequires: mvn(com.fasterxml.jackson.dataformat:jackson-dataformat-yaml) BuildRequires: mvn(com.fasterxml.woodstox:woodstox-core) BuildRequires: mvn(com.lmax:disruptor) BuildRequires: mvn(commons-logging:commons-logging) BuildRequires: mvn(com.sun.mail:javax.mail) BuildRequires: mvn(javax.servlet:javax.servlet-api) BuildRequires: mvn(javax.servlet.jsp:jsp-api) BuildRequires: mvn(org.apache.commons:commons-compress) BuildRequires: mvn(org.apache.commons:commons-csv) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.logging:logging-parent:pom:) BuildRequires: mvn(org.apache.tomcat:tomcat-catalina) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.eclipse.jetty:jetty-util) BuildRequires: mvn(org.eclipse.persistence:javax.persistence) BuildRequires: mvn(org.fusesource.jansi:jansi) BuildRequires: mvn(org.jboss.spec.javax.jms:jboss-jms-api_1.1_spec) BuildRequires: mvn(org.jctools:jctools-core) BuildRequires: mvn(org.lightcouch:lightcouch) BuildRequires: mvn(org.osgi:osgi.core) BuildRequires: mvn(org.slf4j:slf4j-api) BuildRequires: mvn(org.slf4j:slf4j-ext) BuildRequires: mvn(org.zeromq:jeromq) BuildRequires: mvn(sun.jdk:jconsole) # Explicit requires for javapackages-tools since log4j-jmx script # uses /usr/share/java-utils/java-functions Requires: javapackages-tools %endif Obsoletes: %{name}-osgi < 2.9.1-4 Obsoletes: %{name}-liquibase < 2.9.1-4 %description Log4j is a tool to help the programmer output log statements to a variety of output targets. %package slf4j Summary: Binding between LOG4J 2 API and SLF4J %description slf4j Binding between LOG4J 2 API and SLF4J. %package jcl Summary: Apache Log4j Commons Logging Bridge %description jcl Apache Log4j Commons Logging Bridge. %if %{without jp_minimal} %package osgi Summary: Apache Log4J Core OSGi Bundles %description osgi Apache Log4J Core OSGi Bundles. %package taglib Summary: Apache Log4j Tag Library %description taglib Apache Log4j Tag Library for Web Applications. %package jmx-gui Summary: Apache Log4j JMX GUI Requires: java-devel %description jmx-gui Swing-based client for remotely editing the log4j configuration and remotely monitoring StatusLogger output. Includes a JConsole plug-in. %package web Summary: Apache Log4j Web %description web Support for Log4j in a web servlet container. %package bom Summary: Apache Log4j BOM %description bom Apache Log4j 2 Bill of Material %package nosql Summary: Apache Log4j NoSql %description nosql Use NoSQL databases such as MongoDB and CouchDB to append log messages. %endif %package javadoc Summary: API documentation for %{name} Obsoletes: %{name}-manual < %{version} %description javadoc %{summary}. %prep %setup -q -n apache-%{name}-%{version}-src %pom_remove_plugin -r :maven-site-plugin %pom_remove_plugin -r :maven-remote-resources-plugin %pom_remove_plugin -r :maven-doap-plugin %pom_remove_plugin -r :maven-source-plugin %pom_remove_plugin -r :maven-toolchains-plugin # remove all the stuff we'll build ourselves find -name "*.jar" -o -name "*.class" -delete rm -rf docs/api %pom_disable_module %{name}-samples %pom_disable_module %{name}-distribution # Apache Flume is not in Fedora yet %pom_disable_module %{name}-flume-ng # artifact for upstream testing of log4j itself, shouldn't be distributed %pom_disable_module %{name}-perf # needs java 9 to build %pom_disable_module %{name}-api-java9 %pom_disable_module %{name}-core-java9 %pom_remove_dep -r :%{name}-api-java9 %pom_remove_dep -r :%{name}-core-java9 %pom_remove_plugin -r :maven-dependency-plugin # unavailable com.conversantmedia:disruptor rm log4j-core/src/main/java/org/apache/logging/log4j/core/async/DisruptorBlockingQueueFactory.java %pom_remove_dep -r com.conversantmedia:disruptor # kafka not available rm -r log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/kafka %pom_remove_dep -r :kafka-clients # not compatible with fedora's version %pom_disable_module %{name}-liquibase # we don't have slf4j 1.8 yet %pom_disable_module %{name}-slf4j18-impl # we don't have commons-dbcp2 %pom_disable_module %{name}-jdbc-dbcp2 # We have mongodb 4 %pom_disable_module %{name}-mongodb2 %pom_disable_module %{name}-mongodb3 # System scoped dep provided by JDK %pom_remove_dep :jconsole %{name}-jmx-gui %pom_add_dep sun.jdk:jconsole %{name}-jmx-gui # old AID is provided by felix, we want osgi-core %pom_change_dep -r org.osgi:org.osgi.core org.osgi:osgi.core # BOM package shouldn't require Apache RAT %pom_remove_plugin :apache-rat-plugin %{name}-bom # tests are disabled %pom_remove_plugin :maven-failsafe-plugin %if %{with jp_minimal} %pom_disable_module %{name}-taglib %pom_disable_module %{name}-jmx-gui %pom_disable_module %{name}-bom %pom_disable_module %{name}-web %pom_disable_module %{name}-iostreams %pom_disable_module %{name}-jul %pom_disable_module %{name}-core-its %pom_disable_module %{name}-jpa %pom_disable_module %{name}-couchdb %pom_disable_module %{name}-cassandra %pom_disable_module %{name}-appserver %pom_remove_dep -r :jackson-dataformat-yaml %pom_remove_dep -r :jackson-dataformat-xml %pom_remove_dep -r :woodstox-core %pom_remove_dep -r :javax.persistence %pom_remove_dep -r :jboss-jms-api_1.1_spec %pom_remove_dep -r :jeromq %pom_remove_dep -r :commons-csv rm -r log4j-core/src/main/java/org/apache/logging/log4j/core/{jackson,config/yaml,parser} rm -r log4j-core/src/main/java/org/apache/logging/log4j/core/appender/{db,mom,nosql} rm log4j-core/src/main/java/org/apache/logging/log4j/core/layout/*{Csv,Jackson,Xml,Yaml,Json,Gelf}*.java rm log4j-api/src/main/java/org/apache/logging/log4j/util/Activator.java %endif %mvn_alias :%{name}-1.2-api %{name}:%{name} # Note that packages using the compatibility layer still need to have log4j-core # on the classpath to run. This is there to prevent build-classpath from putting # whole dir on the classpath which results in loading incorrect provider %mvn_file ':{%{name}-1.2-api}' %{name}/@1 %{name} %mvn_package ':%{name}-slf4j-impl' slf4j %mvn_package ':%{name}-to-slf4j' slf4j %mvn_package ':%{name}-taglib' taglib %mvn_package ':%{name}-jcl' jcl %mvn_package ':%{name}-jmx-gui' jmx-gui %mvn_package ':%{name}-web' web %mvn_package ':%{name}-bom' bom %mvn_package ':%{name}-cassandra' nosql %mvn_package ':%{name}-couchdb' nosql %mvn_package :log4j-core-its __noinstall %build # missing test deps (mockejb) %mvn_build -f %install %mvn_install %if %{without jp_minimal} %jpackage_script org.apache.logging.log4j.jmx.gui.ClientGUI '' '' %{name}/%{name}-jmx-gui:%{name}/%{name}-core %{name}-jmx false %endif %files -f .mfiles %dir %{_javadir}/%{name} %doc LICENSE.txt NOTICE.txt %files slf4j -f .mfiles-slf4j %files jcl -f .mfiles-jcl %if %{without jp_minimal} %files taglib -f .mfiles-taglib %files web -f .mfiles-web %files bom -f .mfiles-bom %files nosql -f .mfiles-nosql %files jmx-gui -f .mfiles-jmx-gui %{_bindir}/%{name}-jmx %endif %files javadoc -f .mfiles-javadoc %doc LICENSE.txt NOTICE.txt %changelog * Thu Jul 25 2019 Fedora Release Engineering - 2.11.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jun 11 2019 Miro Hrončok - 2.11.1-4 - Drop log4j-taglib, log4j-web, log4j-bom, log4j-nosql and log4j-jmx-gui * Fri Feb 01 2019 Fedora Release Engineering - 2.11.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Aug 31 2018 Severin Gehwolf - 2.11.1-2 - Add explicit requirement on javapackages-tools for log4j-jmx script. See RHBZ#1600426. * Tue Aug 07 2018 Michael Simacek - 2.11.1-1 - Update to upstream version 2.11.1 * Fri Jul 13 2018 Fedora Release Engineering - 2.9.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon May 28 2018 Michael Simacek - 2.9.1-4 - Disable liquibase to fix FTBFS * Thu Feb 08 2018 Fedora Release Engineering - 2.9.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Oct 13 2017 Michael Simacek - 2.9.1-2 - Update to upstream version 2.9.1 * Mon Sep 18 2017 Michael Simacek - 2.9.0-1 - Update to upstream version 2.9.0 * Wed Jul 26 2017 Fedora Release Engineering - 2.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Apr 06 2017 Michael Simacek - 2.8.2-1 - Update to upstream version 2.8.2 * Wed Mar 29 2017 Michael Simacek - 2.8.1-1 - Update to upstream version 2.8.1 * Wed Mar 15 2017 Michael Simacek - 2.7-4 - Add jp_minimal conditional * Fri Feb 10 2017 Fedora Release Engineering - 2.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 01 2017 Michael Simacek - 2.7-2 - Cleanup osgi parts - Add conditional for nosql * Wed Nov 09 2016 Michael Simacek - 2.7-1 - Update to upstream version 2.7 - Remove stuff marked as "Remove in F24" * Thu Jun 23 2016 Michael Simacek - 2.6.1-1 - Update to upstream version 2.6.1 * Thu Jun 16 2016 Mikolaj Izdebski - 2.5-4 - Remove RAT depenency from BOM package * Mon May 23 2016 Michael Simacek - 2.5-3 - Remove maven-remote-resources-plugin to fix FTBFS * Mon Feb 15 2016 Michael Simacek - 2.5-2 - Split log4j-liquibase into separate subpackage * Mon Feb 15 2016 Michael Simacek - 2.5-1 - Update to upstream version 2.5 * Thu Feb 04 2016 Fedora Release Engineering - 2.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Jun 2 2015 Mikolaj Izdebski - 2.3-1 - Update to upstream version 2.3 * Thu Feb 26 2015 Mikolaj Izdebski - 2.2-1 - Update to upstream version 2.2 * Mon Jan 19 2015 Michael Simacek - 2.0-2 - Remove site-plugin from all poms * Fri Jul 18 2014 Michael Simacek 2.0-1 - Update to upstream version 2.0 - Remove osgi subpackage (osgi parts were moved to corresponding artifacts) - Add web, bom, nosql subpackages (new) * Sat Jun 07 2014 Fedora Release Engineering - 2.0-0.3.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri May 16 2014 Mikolaj Izdebski - 2.0-0.2.rc1 - Drop provides for log4j-manual * Fri May 09 2014 Michael Simacek - 0:2.0-0.1.rc1 - Update to upstream version 2.0-rc1 - Split into subpackages - Remove logfactor and chainsaw scripts which are no longer shipped - Remove XML catalogs which are no longer shipped * Tue Mar 04 2014 Stanislav Ochotnicky - 0:1.2.17-16 - Use Requires: java-headless rebuild (#1067528) * Thu Feb 20 2014 Michael Simacek - 0:1.2.17-15 - Set javamail and geronimo-jms dependency scopes to provided (removes requires) * Sat Aug 03 2013 Fedora Release Engineering - 0:1.2.17-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Jul 11 2013 Michal Srb - 0:1.2.17-13 - Enable tests - Fix BR * Tue May 14 2013 Ville Skyttä - 0:1.2.17-12 - Add DTD public id to XML and SGML catalogs. * Mon Apr 29 2013 Mikolaj Izdebski - 0:1.2.17-11 - Remove unneeded BR: maven-idea-plugin * Thu Apr 11 2013 Mikolaj Izdebski - 0:1.2.17-10 - Fix manpage names, thanks to Michal Srb for reporting * Mon Apr 8 2013 Mikolaj Izdebski - 0:1.2.17-9 - Reindex sources in more sensible way - Add manual pages; resolves: rhbz#949413 * Thu Feb 14 2013 Fedora Release Engineering - 0:1.2.17-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Feb 06 2013 Java SIG - 0:1.2.17-7 - Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild - Replace maven BuildRequires with maven-local * Mon Jan 21 2013 Mikolaj Izdebski - 0:1.2.17-6 - Build aggregated javadocs with xmvn * Fri Jan 18 2013 Michal Srb - 0:1.2.17-5 - Build with xmvn * Mon Sep 24 2012 Mikolaj Izdebski - 0:1.2.17-4 - Generate javadocs without maven skin * Thu Jul 19 2012 Fedora Release Engineering - 0:1.2.17-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jun 14 2012 Stanislav Ochotnicky - 0:1.2.17-2 - Remove "uses" OSGI directives from MANIFEST (related #826776) * Mon Jun 04 2012 Stanislav Ochotnicky - 0:1.2.17-1 - Update to latest version - Change OSGI bundle symbolic name to org.apache.log4j - Resolves #826776 * Fri Jan 13 2012 Fedora Release Engineering - 0:1.2.16-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Oct 28 2011 Alexander Kurtakov 0:1.2.16-10 - Remove duplicate import-package declaration. - Adapt to current guidelines. - Remove no longer needed patches. * Tue Feb 08 2011 Fedora Release Engineering - 0:1.2.16-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Jan 18 2011 Ville Skyttä - 0:1.2.16-8 - Drop executable file mode bits from icons. * Fri Dec 17 2010 Stanislav Ochotnicky - 0:1.2.16-7 - Use package instead of install mvn target to fix build * Thu Dec 16 2010 Alexander Kurtakov 0:1.2.16-6 - Do not require jaxp_parser_impl. Maven build is not using it all and it's provided by every Java5 JVM. * Thu Dec 9 2010 Stanislav Ochotnicky - 0:1.2.16-5 - Add patch to fix ant groupId - Versionless jars & javadocs * Tue Sep 7 2010 Stanislav Ochotnicky - 0:1.2.16-4 - Fix BRs to include ant-junit - Fix changed path for javadocs after build run * Thu Jul 8 2010 Stanislav Ochotnicky - 0:1.2.16-3 - Add license to javadoc and manual subpackages * Fri May 28 2010 Stanislav Ochotnicky - 0:1.2.16-2 - Install pom file - Trim changelog - Add jpackage-utils to javadoc Requires * Mon May 17 2010 Stanislav Ochotnicky - 0:1.2.16-1 - Complete re-working of whole ebuild to work with maven - Rebase to new version - Drop gcj support * Sat Jul 25 2009 Fedora Release Engineering - 0:1.2.14-6.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 0:1.2.14-5.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Jul 9 2008 Tom "spot" Callaway - 0:1.2.14-4.3 - drop repotag * Thu May 29 2008 Tom "spot" Callaway - 0:1.2.14-4jpp.2 - fix license tag * Tue Feb 19 2008 Fedora Release Engineering - 0:1.2.14-4jpp.1 - Autorebuild for GCC 4.3 * Sat May 26 2007 Vivek Lakshmanan 0:1.2.14-3jpp.1 - Upgrade to 1.2.14 - Modify the categories for the .desktop files so they are only displayed under the development/programming menus - Resolves: bug 241447 * Fri May 11 2007 Jason Corley 0:1.2.14-3jpp - rebuild through mock and centos 4 - replace vendor and distribution with macros * Fri Apr 20 2007 Ralph Apel - 0:1.2.14-2jpp - Patch to allow build of org.apache.log4j.jmx.* with mx4j - Restore Vendor: and Distribution: * Sat Feb 17 2007 Fernando Nasser - 0:1.2.14-1jpp - Upgrade * Mon Feb 12 2007 Ralph Apel - 0:1.2.13-4jpp - Add bootstrap option to build core * Wed Aug 09 2006 Vivek Lakshmanan - 0:1.2.13-3jpp.2 - Remove patch for BZ #157585 because it doesnt seem to be needed anymore. * Tue Aug 08 2006 Vivek Lakshmanan - 0:1.2.13-3jpp.1 - Re-sync with latest from JPP. - Update patch for BZ #157585 to apply cleanly. - Partially adopt new naming convention. * Sat Jul 22 2006 Jakub Jelinek - 0:1.2.13-2jpp_2fc - Rebuilt * Fri Jul 21 2006 Vivek Lakshmanan - 0:1.2.13-2jpp_1fc - Merge spec and patches with latest from JPP. - Clean source tar ball off prebuilt jars and classes. - Use classpathx-jaf and jms for buildrequires for the time being. * Wed Jul 12 2006 Jesse Keating - 0:1.2.8-7jpp_9fc - rebuild * Mon Mar 6 2006 Jeremy Katz - 0:1.2.8-7jpp_8fc - fix scriptlet spew * Wed Dec 21 2005 Jesse Keating 0:1.2.8-7jpp7fc - rebuilt again * Fri Dec 09 2005 Jesse Keating - rebuilt * Thu Nov 3 2005 Archit Shah 0:1.2.8-7jpp_6fc - Reenable building of example that uses rmic * Wed Jun 22 2005 Gary Benson 0:1.2.8-7jpp_5fc - Reenable building of classes that require jms. - Remove classes and jarfiles from the tarball. * Mon May 23 2005 Gary Benson 0:1.2.8-7jpp_4fc - Work around chainsaw failure (#157585). * Tue Jan 11 2005 Gary Benson 0:1.2.8-7jpp_3fc - Reenable building of classes that require javax.swing (#130006). * Thu Nov 4 2004 Gary Benson 0:1.2.8-7jpp_2fc - Build into Fedora.