Blame SPECS/apache-commons-logging.spec

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