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