Name: log4j Version: 2.0 Release: 1%{?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.h2database:h2) BuildRequires: mvn(com.lmax:disruptor) BuildRequires: mvn(commons-httpclient:commons-httpclient) BuildRequires: mvn(commons-logging:commons-logging) BuildRequires: mvn(com.sun.mail:javax.mail) BuildRequires: mvn(javax.jmdns:jmdns) BuildRequires: mvn(javax.servlet:javax.servlet-api) BuildRequires: mvn(javax.servlet.jsp:jsp-api) BuildRequires: mvn(javax.servlet:servlet-api) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache:apache:pom:) BuildRequires: mvn(org.apache.commons:commons-lang3) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.felix:org.apache.felix.framework) BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jms_1.1_spec) BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) BuildRequires: mvn(org.apache.velocity:velocity) BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin) BuildRequires: mvn(org.easymock:easymock) BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi) BuildRequires: mvn(org.eclipse.persistence:org.eclipse.persistence.jpa) BuildRequires: mvn(org.fusesource.jansi:jansi) BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.1-api) BuildRequires: mvn(org.hsqldb:hsqldb) BuildRequires: mvn(org.lightcouch:lightcouch) BuildRequires: mvn(org.mongodb:mongo-java-driver) BuildRequires: mvn(org.slf4j:slf4j-api) BuildRequires: mvn(org.slf4j:slf4j-ext) BuildRequires: mvn(org.springframework:spring-core) BuildRequires: mvn(org.springframework:spring-test) BuildRequires: mvn(org.apache.maven.plugins:maven-failsafe-plugin) BuildRequires: mvn(com.fasterxml.jackson.dataformat:jackson-dataformat-xml) BuildRequires: mvn(com.fasterxml.jackson.dataformat:jackson-dataformat-yaml) BuildRequires: mvn(org.jboss.spec.javax.jms:jboss-jms-api_1.1_spec) Obsoletes: %{name}-osgi < %{version}-%{release} %description Log4j is a tool to help the programmer output log statements to a variety of output targets. %package osgi Summary: Apache Log4J Core OSGi Bundles %description osgi Apache Log4J Core OSGi Bundles. %package slf4j Summary: Binding between LOG4J 2 API and SLF4J %description slf4j Binding between LOG4J 2 API and SLF4J. %package taglib Summary: Apache Log4j Tag Library %description taglib Apache Log4j Tag Library for Web Applications. %package jcl Summary: Apache Log4j Commons Logging Bridge %description jcl Apache Log4j Commons Logging Bridge. %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. %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 :maven-site-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 # jmh not available %pom_disable_module %{name}-perf # System scoped dep provided by JDK %pom_remove_dep :jconsole %{name}-jmx-gui %pom_add_dep sun.jdk:jconsole %{name}-jmx-gui # Different AID, provided by equinox %pom_remove_dep :org.osgi.core pom.xml %{name}-core %{name}-api # Classpath hell, equinox must come before felix %pom_remove_dep org.eclipse.osgi:org.eclipse.osgi %{name}-core %pom_add_dep org.eclipse.osgi:org.eclipse.osgi:any:provided %{name}-core # Old version of specification %pom_remove_dep :javax.persistence %{name}-core %pom_add_dep org.hibernate.javax.persistence:hibernate-jpa-2.1-api:any:provided %{name}-core # Do not generate requires on optional dependencies %pom_xpath_inject "pom:dependency[pom:optional='true' and not(pom:scope)]" 'provided' %{name}-core # Required at compile-time not just test, but we don't want requires %pom_xpath_set "pom:dependency[pom:groupId='org.eclipse.persistence']/pom:scope" provided %{name}-core %pom_xpath_set "pom:dependency[pom:groupId='org.eclipse.osgi']/pom:scope" provided %{name}-core %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}-nosql' nosql %build # missing test deps (mockejb) %mvn_build -f %install %mvn_install %jpackage_script org.apache.logging.log4j.jmx.gui.ClientGUI '' '' %{name}/%{name}-jmx-gui:%{name}/%{name}-core %{name}-jmx false # TODO: Remove this in F-24 %preun if [ $1 -eq 0 ]; then if [ -x xmlcatalog -a -w %{_sysconfdir}/xml/catalog ]; then xmlcatalog --noout --del \ file://%{_datadir}/sgml/%{name}/log4j.dtd \ %{_sysconfdir}/xml/catalog > /dev/null || : fi fi # TODO: Remove this in F-24 %postun # Note that we're using versioned catalog, so this is always ok. if [ -x install-catalog -a -d %{_sysconfdir}/sgml ]; then install-catalog --remove \ %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.cat \ %{_datadir}/sgml/%{name}/catalog > /dev/null || : fi %files -f .mfiles %dir %{_javadir}/%{name} %doc LICENSE.txt NOTICE.txt %files slf4j -f .mfiles-slf4j %files taglib -f .mfiles-taglib %files jcl -f .mfiles-jcl %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 %files javadoc -f .mfiles-javadoc %doc LICENSE.txt NOTICE.txt %changelog * 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.