b2b459
b2b459
%global base_name  logging
b2b459
%global short_name commons-%{base_name}
b2b459
b2b459
Name:           apache-%{short_name}
421d88
Version:        1.1.3
789b78
Release:        3%{?dist}
b2b459
Summary:        Apache Commons Logging
b2b459
License:        ASL 2.0
b2b459
URL:            http://commons.apache.org/%{base_name}
b2b459
Source0:        http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
Stanislav Ochotnicky 7db853
Source2:        http://mirrors.ibiblio.org/pub/mirrors/maven2/%{short_name}/%{short_name}-api/1.1/%{short_name}-api-1.1.pom
Stanislav Ochotnicky e6f0c5
Stanislav Ochotnicky 618917
BuildRequires:  maven-local
789b78
BuildRequires:  mvn(avalon-framework:avalon-framework-api)
789b78
BuildRequires:  mvn(avalon-framework:avalon-framework-impl)
789b78
BuildRequires:  mvn(javax.servlet:servlet-api)
789b78
BuildRequires:  mvn(junit:junit)
789b78
BuildRequires:  mvn(log4j:log4j)
789b78
BuildRequires:  mvn(logkit:logkit)
789b78
BuildRequires:  mvn(org.apache.commons:commons-parent)
789b78
bd922d
b2b459
%description
b2b459
The commons-logging package provides a simple, component oriented
b2b459
interface (org.apache.commons.logging.Log) together with wrappers for
b2b459
logging systems. The user can choose at runtime which system they want
b2b459
to use. In addition, a small number of basic implementations are
9a97da
provided to allow users to use the package standalone.
b2b459
commons-logging was heavily influenced by Avalon's Logkit and Log4J. The
b2b459
commons-logging abstraction is meant to minimize the differences between
b2b459
the two, and to allow a developer to not tie himself to a particular
b2b459
logging implementation.
b2b459
b2b459
%package        javadoc
b2b459
Summary:        API documentation for %{name}
b2b459
b2b459
%description    javadoc
8b643a
%{summary}.
b2b459
b2b459
# -----------------------------------------------------------------------------
b2b459
b2b459
%prep
b2b459
%setup -q -n %{short_name}-%{version}-src
b2b459
be4c09
# Sent upstream https://issues.apache.org/jira/browse/LOGGING-143
be4c09
%pom_remove_dep :avalon-framework
be4c09
%pom_add_dep avalon-framework:avalon-framework-api:4.3
be4c09
%pom_add_dep avalon-framework:avalon-framework-impl:4.3:test
5822ed
be4c09
%pom_remove_plugin :cobertura-maven-plugin
be4c09
%pom_remove_plugin :maven-scm-publish-plugin
b2b459
be4c09
sed -i 's/\r//' RELEASE-NOTES.txt LICENSE.txt NOTICE.txt
b2b459
789b78
# for compatibility reasons
789b78
%mvn_file ":%{short_name}{*}" "%{short_name}@1" "%{name}@1"
789b78
%mvn_alias ":%{short_name}{*}" "org.apache.commons:%{short_name}@1"
789b78
b2b459
%build
789b78
%mvn_build
b2b459
b2b459
# -----------------------------------------------------------------------------
b2b459
b2b459
%install
789b78
%mvn_install
81e53d
789b78
install -p -m 644 target/%{short_name}-api-%{version}.jar %{buildroot}/%{_javadir}/%{name}-api.jar
789b78
install -p -m 644 target/%{short_name}-adapters-%{version}.jar %{buildroot}/%{_javadir}/%{name}-adapters.jar
b2b459
789b78
pushd %{buildroot}/%{_javadir}
789b78
for jar in %{name}-*; do
789b78
    ln -sf ${jar} `echo ${jar}| sed "s|apache-||g"`
789b78
done
789b78
popd
b2b459
789b78
install -pm 644 %{SOURCE2} %{buildroot}/%{_mavenpomdir}/JPP-%{short_name}-api.pom
b2b459
789b78
%add_maven_depmap JPP-%{short_name}-api.pom %{short_name}-api.jar -a "org.apache.commons:commons-logging-api"
b2b459
789b78
%files -f .mfiles
016af2
%doc LICENSE.txt NOTICE.txt
be4c09
%doc PROPOSAL.html RELEASE-NOTES.txt
789b78
%{_javadir}/*%{short_name}-api.jar
789b78
%{_javadir}/*%{short_name}-adapters.jar
b2b459
b2b459
789b78
%files javadoc -f .mfiles-javadoc
016af2
%doc LICENSE.txt NOTICE.txt
b2b459
b2b459
# -----------------------------------------------------------------------------
b2b459
b2b459
%changelog
789b78
* Mon Aug 05 2013 Michal Srb <msrb@redhat.com> - 1.1.3-3
789b78
- Adapt to current guidelines
789b78
018f71
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-2
018f71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
018f71
421d88
* Tue May 21 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1.3-1
421d88
- Update to upstream version 1.1.3
421d88
- Remove OSGi Bundle-SymbolicName patch (accepted upstream)
421d88
e09d03
* Tue Apr  9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1.2-2
e09d03
- Set OSGi Bundle-SymbolicName to org.apache.commons.logging
e09d03
- Resolves: rhbz#949842
e09d03
be4c09
* Mon Apr  8 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1.2-1
be4c09
- Update to upstream version 1.1.2
be4c09
- Convert POM to POM macros
be4c09
- Remove OSGi manifest patch; fixed upstream
be4c09
a4b1e1
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-23
a4b1e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a4b1e1
Stanislav Ochotnicky 618917
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.1.1-22
Stanislav Ochotnicky 618917
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Stanislav Ochotnicky 618917
- Replace maven BuildRequires with maven-local
Stanislav Ochotnicky 618917
016af2
* Thu Nov 22 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1.1-21
016af2
- Install NOTICE file
016af2
- Resolves: rhbz#879581
016af2
532a09
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-20
532a09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
532a09
bd922d
* Tue May 1 2012 Alexander Kurtakov <akurtako@redhat.com> 1.1.1-19
bd922d
- Bring back jakarta-commons-logging provides/obsoletes - the comment was misleading.
bd922d
7e7d17
* Mon Apr 30 2012 Alexander Kurtakov <akurtako@redhat.com> 1.1.1-18
7e7d17
- Fix build with latest libs.
7e7d17
- Adapt to current guidelines.
7e7d17
847455
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-17
847455
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
847455
Stanislav Ochotnicky e6f0c5
* Thu Apr 21 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-16
Stanislav Ochotnicky e6f0c5
- Build with maven 3
Stanislav Ochotnicky e6f0c5
- Fix build for avalon-framework
Stanislav Ochotnicky e6f0c5
24d1fd
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-15
24d1fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
24d1fd
81e53d
* Thu Dec 16 2010 Alexander Kurtakov <akurtako@redhat.com> 1.1.1-14
81e53d
- Bring back commons-logging* symlinks.
81e53d
Stanislav Ochotnicky 7db853
* Thu Dec 16 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-13
Stanislav Ochotnicky 7db853
- Replace tomcat6 BR with servlet25 only
Stanislav Ochotnicky 7db853
- Cleanups according to new packaging guidelines
Stanislav Ochotnicky 7db853
- Install maven metadata for -api jar
Stanislav Ochotnicky 7db853
- Versionless jars/javadocs
Stanislav Ochotnicky 7db853
Stanislav Ochotnicky 1e01d8
* Tue Nov  9 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-12
Stanislav Ochotnicky 1e01d8
- Add depmaps for api and adapters subpackages
Stanislav Ochotnicky 1e01d8
- Use apache-commons-parent BR instead of maven-*
Stanislav Ochotnicky 1e01d8
- Replace tomcat5 BR with tomcat6
Stanislav Ochotnicky 1e01d8
- Reenable tests
Stanislav Ochotnicky 1e01d8
0d6016
* Thu Jul  8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-11
0d6016
- Add license to javadoc subpackage
0d6016
5822ed
* Wed Jun 9 2010 Alexander Kurtakov <akurtako@redhat.com> 1.1.1-10
5822ed
- Add osgi manifest entries.
5822ed
686fe9
* Fri May 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-9
686fe9
- Correct depmap filename for backward compatibility
686fe9
0c00d3
* Mon May 17 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-8
0c00d3
- Fix wrong depmap JPP name to short_name
9a97da
- Add obsoletes to javadoc subpackage
9a97da
cd4e9a
* Wed May 12 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-7
cd4e9a
- Fix symlink problems introduced previously in r5
cd4e9a
24992d
* Tue May 11 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-6
24992d
- Add one more add_to_maven_depmap for backward compatibility
24992d
8b643a
* Mon May 10 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-5
8b643a
- Fix up add_to_maven_depmap
8b643a
- Add jpackage-utils Requires for javadoc
8b643a
- Cleanup install a bit
8b643a
1be39e
* Fri May  7 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-4
1be39e
- Fix provides
1be39e
b2b459
* Thu May  6 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-3
b2b459
- Revert to using default permissions
b2b459
- Drop "Package" from summary, improve javadoc summary text
b2b459
b2b459
* Thu May  6 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-2
b2b459
- Fix EOLs on docs
b2b459
- Create javadoc symlinks during install
b2b459
- Use version macro in Source0 URL, use _mavenpomdir macro
b2b459
b2b459
* Thu May  6 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.1-1
b2b459
- Rename and rebase from jakarta-commons-logging