1f0da8
%bcond_without  avalon
1f0da8
1f0da8
Name:           apache-commons-logging
1f0da8
Version:        1.2
1f0da8
Release:        13%{?dist}
1f0da8
Summary:        Apache Commons Logging
1f0da8
License:        ASL 2.0
1f0da8
URL:            http://commons.apache.org/logging
1f0da8
BuildArch:      noarch
1f0da8
1f0da8
Source0:        http://www.apache.org/dist/commons/logging/source/commons-logging-%{version}-src.tar.gz
1f0da8
Source2:        http://mirrors.ibiblio.org/pub/mirrors/maven2/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.pom
1f0da8
1f0da8
Patch0:         0001-Generate-different-Bundle-SymbolicName-for-different.patch
1f0da8
Patch1:         0002-Port-to-maven-jar-plugin-3.0.0.patch
1f0da8
1f0da8
BuildRequires:  maven-local
1f0da8
%if %{with avalon}
1f0da8
BuildRequires:  mvn(avalon-framework:avalon-framework-api)
1f0da8
BuildRequires:  mvn(avalon-framework:avalon-framework-impl)
1f0da8
BuildRequires:  mvn(logkit:logkit)
1f0da8
%endif
1f0da8
BuildRequires:  mvn(javax.servlet:servlet-api)
1f0da8
BuildRequires:  mvn(junit:junit)
1f0da8
BuildRequires:  mvn(log4j:log4j:12)
1f0da8
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
1f0da8
BuildRequires:  mvn(org.apache.maven.plugins:maven-failsafe-plugin)
1f0da8
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
1f0da8
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
1f0da8
1f0da8
%description
1f0da8
The commons-logging package provides a simple, component oriented
1f0da8
interface (org.apache.commons.logging.Log) together with wrappers for
1f0da8
logging systems. The user can choose at runtime which system they want
1f0da8
to use. In addition, a small number of basic implementations are
1f0da8
provided to allow users to use the package standalone.
1f0da8
commons-logging was heavily influenced by Avalon's Logkit and Log4J. The
1f0da8
commons-logging abstraction is meant to minimize the differences between
1f0da8
the two, and to allow a developer to not tie himself to a particular
1f0da8
logging implementation.
1f0da8
1f0da8
%{?javadoc_package}
1f0da8
1f0da8
%prep
1f0da8
%autosetup -p1 -n commons-logging-%{version}-src
1f0da8
1f0da8
%if %{with avalon}
1f0da8
# Sent upstream https://issues.apache.org/jira/browse/LOGGING-143
1f0da8
%pom_remove_dep :avalon-framework
1f0da8
%pom_add_dep avalon-framework:avalon-framework-api:4.3:provided
1f0da8
%pom_add_dep avalon-framework:avalon-framework-impl:4.3:test
1f0da8
%pom_xpath_inject "pom:dependency[pom:artifactId='logkit']" '<scope>provided</scope>'
1f0da8
1f0da8
%else
1f0da8
%pom_remove_dep -r :avalon-framework
1f0da8
%pom_remove_dep -r :logkit
1f0da8
rm -r src/test/java/org/apache/commons/logging/{avalon,logkit}
1f0da8
rm src/main/java/org/apache/commons/logging/impl/AvalonLogger.java
1f0da8
rm src/main/java/org/apache/commons/logging/impl/LogKitLogger.java
1f0da8
%endif
1f0da8
1f0da8
%pom_remove_plugin :cobertura-maven-plugin
1f0da8
%pom_remove_plugin :maven-scm-publish-plugin
1f0da8
1f0da8
sed -i 's/\r//' RELEASE-NOTES.txt LICENSE.txt NOTICE.txt
1f0da8
1f0da8
# for compatibility reasons
1f0da8
%mvn_file ":commons-logging{*}" "commons-logging@1" "%{name}@1"
1f0da8
%mvn_alias ":commons-logging{*}" "org.apache.commons:commons-logging@1" "apache:commons-logging@1"
1f0da8
1f0da8
# Remove log4j12 tests
1f0da8
rm -rf src/test/java/org/apache/commons/logging/log4j/log4j12
1f0da8
1f0da8
%build
1f0da8
%mvn_build
1f0da8
1f0da8
# The build produces more artifacts from one pom
1f0da8
%mvn_artifact %{SOURCE2} target/commons-logging-%{version}-api.jar
1f0da8
%mvn_artifact commons-logging:commons-logging-adapters:%{version} target/commons-logging-%{version}-adapters.jar
1f0da8
1f0da8
%install
1f0da8
%mvn_install
1f0da8
1f0da8
%files -f .mfiles
1f0da8
%license LICENSE.txt NOTICE.txt
1f0da8
%doc PROPOSAL.html RELEASE-NOTES.txt
1f0da8
1f0da8
%changelog
1f0da8
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-13
1f0da8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1f0da8
1f0da8
* Mon Jan 29 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-12
1f0da8
- Cleanup spec file
1f0da8
1f0da8
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-11
1f0da8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1f0da8
1f0da8
* Wed Mar 22 2017 Michael Simacek <msimacek@redhat.com> - 1.2-10
1f0da8
- Avoid %%add_maven_depmap
1f0da8
1f0da8
* Mon Feb 13 2017 Michael Simacek <msimacek@redhat.com> - 1.2-9
1f0da8
- Fix conditional
1f0da8
1f0da8
* Fri Feb 10 2017 Michael Simacek <msimacek@redhat.com> - 1.2-8
1f0da8
- Use log4j12
1f0da8
- Add avalon conditional
1f0da8
1f0da8
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-7
1f0da8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1f0da8
1f0da8
* Tue May 31 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-6
1f0da8
- Port to maven-jar-plugin 3.0.0
1f0da8
1f0da8
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-5
1f0da8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1f0da8
1f0da8
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
1f0da8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1f0da8
1f0da8
* Mon Mar  9 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-3
1f0da8
- Add aliases for apache groupId
1f0da8
1f0da8
* Tue Jul 29 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-2
1f0da8
- Generate different Bundle-SymbolicName for different JARs
1f0da8
- Resolves: rhbz#1123055
1f0da8
1f0da8
* Sun Jul 20 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-1
1f0da8
- Update to upstream version 1.2
1f0da8
1f0da8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-13
1f0da8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1f0da8
1f0da8
* Tue May 13 2014 Michael Simacek <msimacek@redhat.com> - 1.1.3-12
1f0da8
- Disable tests that use log4j12
1f0da8
1f0da8
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.3-11
1f0da8
- Use Requires: java-headless rebuild (#1067528)
1f0da8
1f0da8
* Thu Feb 20 2014 Michael Simacek <msimacek@redhat.com> - 1.1.3-10
1f0da8
- Set logkit dependency scope to provided
1f0da8
1f0da8
* Thu Feb 20 2014 Michael Simacek <msimacek@redhat.com> - 1.1.3-9
1f0da8
- Set avalon dependency scope to provided
1f0da8
1f0da8
* Wed Jan 22 2014 Michal Srb <msrb@redhat.com> - 1.1.3-8
1f0da8
- Run all the tests agains
1f0da8
1f0da8
* Sun Aug 11 2013 Michal Srb <msrb@redhat.com> - 1.1.3-7
1f0da8
- Make this package noarch again (Resolves: rhbz#995756)
1f0da8
1f0da8
* Tue Aug 06 2013 Michal Srb <msrb@redhat.com> - 1.1.3-6
1f0da8
- Temporarily remove test which fails in koji
1f0da8
1f0da8
* Mon Aug 05 2013 Michal Srb <msrb@redhat.com> - 1.1.3-5
1f0da8
- Add missing BR: maven-dependency-plugin, build-helper-maven-plugin
1f0da8
1f0da8
* Mon Aug 05 2013 Michal Srb <msrb@redhat.com> - 1.1.3-4
1f0da8
- Add missing BR: maven-failsafe-plugin
1f0da8
1f0da8
* Mon Aug 05 2013 Michal Srb <msrb@redhat.com> - 1.1.3-3
1f0da8
- Adapt to current guidelines
1f0da8
1f0da8
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-2
1f0da8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1f0da8
1f0da8
* Tue May 21 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1.3-1
1f0da8
- Update to upstream version 1.1.3
1f0da8
- Remove OSGi Bundle-SymbolicName patch (accepted upstream)
1f0da8
1f0da8
* Tue Apr  9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1.2-2
1f0da8
- Set OSGi Bundle-SymbolicName to org.apache.commons.logging
1f0da8
- Resolves: rhbz#949842
1f0da8
1f0da8
* Mon Apr  8 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1.2-1
1f0da8
- Update to upstream version 1.1.2
1f0da8
- Convert POM to POM macros
1f0da8
- Remove OSGi manifest patch; fixed upstream
1f0da8
1f0da8
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-23
1f0da8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1f0da8
1f0da8
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.1.1-22
1f0da8
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
1f0da8
- Replace maven BuildRequires with maven-local
1f0da8
1f0da8
* Thu Nov 22 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1.1-21
1f0da8
- Install NOTICE file
1f0da8
- Resolves: rhbz#879581
1f0da8
1f0da8
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-20
1f0da8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1f0da8
1f0da8
* Tue May 1 2012 Alexander Kurtakov <akurtako@redhat.com> 1.1.1-19
1f0da8
- Bring back jakarta-commons-logging provides/obsoletes - the comment was misleading.
1f0da8
1f0da8
* Mon Apr 30 2012 Alexander Kurtakov <akurtako@redhat.com> 1.1.1-18
1f0da8
- Fix build with latest libs.
1f0da8
- Adapt to current guidelines.
1f0da8
1f0da8
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-17
1f0da8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1f0da8
1f0da8
* Thu Apr 21 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-16
1f0da8
- Build with maven 3
1f0da8
- Fix build for avalon-framework
1f0da8
1f0da8
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-15
1f0da8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1f0da8
1f0da8
* Thu Dec 16 2010 Alexander Kurtakov <akurtako@redhat.com> 1.1.1-14
1f0da8
- Bring back commons-logging* symlinks.
1f0da8
1f0da8
* Thu Dec 16 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-13
1f0da8
- Replace tomcat6 BR with servlet25 only
1f0da8
- Cleanups according to new packaging guidelines
1f0da8
- Install maven metadata for -api jar
1f0da8
- Versionless jars/javadocs
1f0da8
1f0da8
* Tue Nov  9 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-12
1f0da8
- Add depmaps for api and adapters subpackages
1f0da8
- Use apache-commons-parent BR instead of maven-*
1f0da8
- Replace tomcat5 BR with tomcat6
1f0da8
- Reenable tests
1f0da8
1f0da8
* Thu Jul  8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-11
1f0da8
- Add license to javadoc subpackage
1f0da8
1f0da8
* Wed Jun 9 2010 Alexander Kurtakov <akurtako@redhat.com> 1.1.1-10
1f0da8
- Add osgi manifest entries.
1f0da8
1f0da8
* Fri May 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-9
1f0da8
- Correct depmap filename for backward compatibility
1f0da8
1f0da8
* Mon May 17 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-8
1f0da8
- Fix wrong depmap JPP name to short_name
1f0da8
- Add obsoletes to javadoc subpackage
1f0da8
1f0da8
* Wed May 12 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-7
1f0da8
- Fix symlink problems introduced previously in r5
1f0da8
1f0da8
* Tue May 11 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-6
1f0da8
- Add one more add_to_maven_depmap for backward compatibility
1f0da8
1f0da8
* Mon May 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-5
1f0da8
- Fix up add_to_maven_depmap
1f0da8
- Add jpackage-utils Requires for javadoc
1f0da8
- Cleanup install a bit
1f0da8
1f0da8
* Fri May  7 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-4
1f0da8
- Fix provides
1f0da8
1f0da8
* Thu May  6 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-3
1f0da8
- Revert to using default permissions
1f0da8
- Drop "Package" from summary, improve javadoc summary text
1f0da8
1f0da8
* Thu May  6 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-2
1f0da8
- Fix EOLs on docs
1f0da8
- Create javadoc symlinks during install
1f0da8
- Use version macro in Source0 URL, use _mavenpomdir macro
1f0da8
1f0da8
* Thu May  6 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-1
1f0da8
- Rename and rebase from jakarta-commons-logging