Blame SPECS/apache-commons-logging.spec

66df0a
66df0a
%global base_name  logging
66df0a
%global short_name commons-%{base_name}
66df0a
66df0a
Name:           apache-%{short_name}
66df0a
Version:        1.1.2
66df0a
Release:        7%{?dist}
66df0a
Summary:        Apache Commons Logging
66df0a
License:        ASL 2.0
66df0a
Group:          Development/Libraries
66df0a
URL:            http://commons.apache.org/%{base_name}
66df0a
Source0:        http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
66df0a
Source2:        http://mirrors.ibiblio.org/pub/mirrors/maven2/%{short_name}/%{short_name}-api/1.1/%{short_name}-api-1.1.pom
66df0a
66df0a
BuildArch:      noarch
66df0a
BuildRequires:  maven-local
66df0a
BuildRequires:  java-devel >= 1:1.6.0
66df0a
BuildRequires:  jpackage-utils >= 0:1.6
66df0a
BuildRequires:  avalon-framework >= 4.3
66df0a
BuildRequires:  avalon-logkit
66df0a
BuildRequires:  apache-commons-parent >= 26-7
66df0a
BuildRequires:  maven-dependency-plugin
66df0a
BuildRequires:  maven-failsafe-plugin
66df0a
BuildRequires:  maven-plugin-build-helper
66df0a
BuildRequires:  maven-release-plugin
66df0a
BuildRequires:  maven-site-plugin
66df0a
BuildRequires:  maven-resources-plugin
66df0a
BuildRequires:  servlet
66df0a
66df0a
# This should go away with F-17
66df0a
Provides:       jakarta-%{short_name} = 0:%{version}-%{release}
66df0a
Obsoletes:      jakarta-%{short_name} <= 0:1.0.4
66df0a
66df0a
%description
66df0a
The commons-logging package provides a simple, component oriented
66df0a
interface (org.apache.commons.logging.Log) together with wrappers for
66df0a
logging systems. The user can choose at runtime which system they want
66df0a
to use. In addition, a small number of basic implementations are
66df0a
provided to allow users to use the package standalone.
66df0a
commons-logging was heavily influenced by Avalon's Logkit and Log4J. The
66df0a
commons-logging abstraction is meant to minimize the differences between
66df0a
the two, and to allow a developer to not tie himself to a particular
66df0a
logging implementation.
66df0a
66df0a
%package        javadoc
66df0a
Summary:        API documentation for %{name}
66df0a
Group:          Documentation
66df0a
66df0a
Obsoletes:      jakarta-%{short_name}-javadoc <= 0:1.0.4
66df0a
66df0a
%description    javadoc
66df0a
%{summary}.
66df0a
66df0a
# -----------------------------------------------------------------------------
66df0a
66df0a
%prep
66df0a
%setup -q -n %{short_name}-%{version}-src
66df0a
66df0a
# SecurityAllowedTestCase fails, probably due to environmental hazard
66df0a
# See: rhbz#1056462, https://issues.apache.org/jira/browse/LOGGING-156
66df0a
find -name SecurityAllowedTestCase.java -delete
66df0a
66df0a
# Sent upstream https://issues.apache.org/jira/browse/LOGGING-143
66df0a
%pom_remove_dep :avalon-framework
66df0a
%pom_add_dep avalon-framework:avalon-framework-api:4.3
66df0a
%pom_add_dep avalon-framework:avalon-framework-impl:4.3:test
66df0a
66df0a
%pom_remove_plugin :cobertura-maven-plugin
66df0a
%pom_remove_plugin :maven-scm-publish-plugin
66df0a
66df0a
# Upstream is changing Maven groupID and OSGi Bundle-SymbolicName back
66df0a
# and forth, even between minor releases (such as 1.1.1 and 1.1.2).
66df0a
# In case of Maven we can provide an alias, so that's not a big
66df0a
# problem.  But there is no alias mechanism for OSGi bundle names.
66df0a
#
66df0a
# I'll use Bundle-SymbolicName equal to "org.apache.commons.logging"
66df0a
# because that's what upstream decided to use in future and because
66df0a
# that's what most of Eclipse plugin are already using.  See also
66df0a
# rhbz#949842 and LOGGING-151.  mizdebsk, 9 Apr 2013
66df0a
%pom_xpath_set pom:commons.osgi.symbolicName org.apache.commons.logging
66df0a
66df0a
sed -i 's/\r//' RELEASE-NOTES.txt LICENSE.txt NOTICE.txt
66df0a
66df0a
%mvn_file ":%{short_name}{*}" "%{short_name}@1" "%{name}@1"
66df0a
%mvn_alias ":%{short_name}{*}" "org.apache.commons:%{short_name}@1"
66df0a
66df0a
%build
66df0a
%mvn_build
66df0a
66df0a
# -----------------------------------------------------------------------------
66df0a
66df0a
%install
66df0a
%mvn_install
66df0a
66df0a
install -p -m 644 target/%{short_name}-api-%{version}.jar %{buildroot}/%{_javadir}/%{name}-api.jar
66df0a
install -p -m 644 target/%{short_name}-adapters-%{version}.jar %{buildroot}/%{_javadir}/%{name}-adapters.jar
66df0a
66df0a
pushd %{buildroot}/%{_javadir}
66df0a
for jar in %{name}-*; do
66df0a
    ln -sf ${jar} `echo ${jar}| sed "s|apache-||g"`
66df0a
done
66df0a
popd
66df0a
66df0a
install -pm 644 %{SOURCE2} %{buildroot}/%{_mavenpomdir}/JPP-%{short_name}-api.pom
66df0a
66df0a
%add_maven_depmap JPP-%{short_name}-api.pom %{short_name}-api.jar -a "org.apache.commons:commons-logging-api"
66df0a
66df0a
%files -f .mfiles
66df0a
%doc LICENSE.txt NOTICE.txt
66df0a
%doc PROPOSAL.html RELEASE-NOTES.txt
66df0a
%{_javadir}/*%{short_name}-api.jar
66df0a
%{_javadir}/*%{short_name}-adapters.jar
66df0a
66df0a
%files javadoc -f .mfiles-javadoc
66df0a
%doc LICENSE.txt NOTICE.txt
66df0a
66df0a
# -----------------------------------------------------------------------------
66df0a
66df0a
%changelog
66df0a
* Mon Jan 27 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1.2-7
66df0a
- Remove unit test as a workaround for upstream bug LOGGING-156
66df0a
- Resolves: rhbz#1056462
66df0a
66df0a
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.1.2-6
66df0a
- Mass rebuild 2013-12-27
66df0a
66df0a
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1.2-5
66df0a
- Add BuildRequires on apache-commons-parent >= 26-7
66df0a
66df0a
* Tue Aug 27 2013 Michal Srb <msrb@redhat.com> - 1.1.2-4
66df0a
- Migrate away from mvn-rpmbuild (Resolves: #997523)
66df0a
66df0a
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1.2-3
66df0a
- Rebuild to regenerate API documentation
66df0a
- Resolves: CVE-2013-1571
66df0a
66df0a
* Tue Apr  9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1.2-2
66df0a
- Set OSGi Bundle-SymbolicName to org.apache.commons.logging
66df0a
- Resolves: rhbz#949842
66df0a
66df0a
* Mon Apr  8 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1.2-1
66df0a
- Update to upstream version 1.1.2
66df0a
- Convert POM to POM macros
66df0a
- Remove OSGi manifest patch; fixed upstream
66df0a
66df0a
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-23
66df0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
66df0a
66df0a
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.1.1-22
66df0a
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
66df0a
- Replace maven BuildRequires with maven-local
66df0a
66df0a
* Thu Nov 22 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1.1-21
66df0a
- Install NOTICE file
66df0a
- Resolves: rhbz#879581
66df0a
66df0a
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-20
66df0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
66df0a
66df0a
* Tue May 1 2012 Alexander Kurtakov <akurtako@redhat.com> 1.1.1-19
66df0a
- Bring back jakarta-commons-logging provides/obsoletes - the comment was misleading.
66df0a
66df0a
* Mon Apr 30 2012 Alexander Kurtakov <akurtako@redhat.com> 1.1.1-18
66df0a
- Fix build with latest libs.
66df0a
- Adapt to current guidelines.
66df0a
66df0a
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-17
66df0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
66df0a
66df0a
* Thu Apr 21 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-16
66df0a
- Build with maven 3
66df0a
- Fix build for avalon-framework
66df0a
66df0a
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-15
66df0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
66df0a
66df0a
* Thu Dec 16 2010 Alexander Kurtakov <akurtako@redhat.com> 1.1.1-14
66df0a
- Bring back commons-logging* symlinks.
66df0a
66df0a
* Thu Dec 16 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-13
66df0a
- Replace tomcat6 BR with servlet25 only
66df0a
- Cleanups according to new packaging guidelines
66df0a
- Install maven metadata for -api jar
66df0a
- Versionless jars/javadocs
66df0a
66df0a
* Tue Nov  9 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-12
66df0a
- Add depmaps for api and adapters subpackages
66df0a
- Use apache-commons-parent BR instead of maven-*
66df0a
- Replace tomcat5 BR with tomcat6
66df0a
- Reenable tests
66df0a
66df0a
* Thu Jul  8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-11
66df0a
- Add license to javadoc subpackage
66df0a
66df0a
* Wed Jun 9 2010 Alexander Kurtakov <akurtako@redhat.com> 1.1.1-10
66df0a
- Add osgi manifest entries.
66df0a
66df0a
* Fri May 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-9
66df0a
- Correct depmap filename for backward compatibility
66df0a
66df0a
* Mon May 17 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-8
66df0a
- Fix wrong depmap JPP name to short_name
66df0a
- Add obsoletes to javadoc subpackage
66df0a
66df0a
* Wed May 12 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-7
66df0a
- Fix symlink problems introduced previously in r5
66df0a
66df0a
* Tue May 11 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-6
66df0a
- Add one more add_to_maven_depmap for backward compatibility
66df0a
66df0a
* Mon May 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-5
66df0a
- Fix up add_to_maven_depmap
66df0a
- Add jpackage-utils Requires for javadoc
66df0a
- Cleanup install a bit
66df0a
66df0a
* Fri May  7 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-4
66df0a
- Fix provides
66df0a
66df0a
* Thu May  6 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-3
66df0a
- Revert to using default permissions
66df0a
- Drop "Package" from summary, improve javadoc summary text
66df0a
66df0a
* Thu May  6 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-2
66df0a
- Fix EOLs on docs
66df0a
- Create javadoc symlinks during install
66df0a
- Use version macro in Source0 URL, use _mavenpomdir macro
66df0a
66df0a
* Thu May  6 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-1
66df0a
- Rename and rebase from jakarta-commons-logging