13 Star 0 Fork 2

ocs-upgrade/apache-commons-logging

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
apache-commons-logging.spec 3.73 KB
一键复制 编辑 原始数据 按行查看 历史
ocs-bot 提交于 2024-09-20 16:52 . Upgrade to version 1.3.4
%bcond_with bootstrap
Summary: Apache Commons Logging
Name: apache-commons-logging
Version: 1.3.4
Release: 1%{?dist}
License: ASL 2.0
URL: http://commons.apache.org/logging
Source0: http://www.apache.org/dist/commons/logging/source/commons-logging-%{version}-src.tar.gz
Source1: commons-logging-api-1.1.pom
Patch3000: 0001-Generate-different-Bundle-SymbolicName-for-different.patch
Patch3001: 0002-Port-to-maven-jar-plugin-3.0.0.patch
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: maven-local
BuildRequires: mvn(javax.servlet:servlet-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildRequires: mvn(org.apache.maven.plugins:maven-failsafe-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
%endif
BuildArch: noarch
ExclusiveArch: %{java_arches} noarch
%description
The commons-logging package provides a simple, component oriented
interface (org.apache.commons.logging.Log) together with wrappers for
logging systems. The user can choose at runtime which system they want
to use. In addition, a small number of basic implementations are
provided to allow users to use the package standalone.
commons-logging was heavily influenced by Avalon's Logkit and Log4J. The
commons-logging abstraction is meant to minimize the differences between
the two, and to allow a developer to not tie himself to a particular
logging implementation.
%{?javadoc_package}
%prep
%autosetup -p1 -n commons-logging-%{version}-src
%pom_remove_dep -r :avalon-framework
%pom_remove_dep -r :logkit
%pom_remove_dep -r :log4j
rm src/main/java/org/apache/commons/logging/impl/AvalonLogger.java
rm src/main/java/org/apache/commons/logging/impl/Log4JLogger.java
rm src/main/java/org/apache/commons/logging/impl/LogKitLogger.java
rm -r src/test/java/org/apache/commons/logging/{avalon,log4j,logkit}
rm src/test/java/org/apache/commons/logging/pathable/{Parent,Child}FirstTestCase.java
%pom_xpath_set "pom:properties/pom:commons.osgi.import" '*;resolution:=optional'
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :maven-scm-publish-plugin
sed -i 's/\r//' RELEASE-NOTES.txt LICENSE.txt NOTICE.txt
%mvn_file ":commons-logging{*}" "commons-logging@1" "%{name}@1"
%mvn_alias ":commons-logging{*}" "org.apache.commons:commons-logging@1" "apache:commons-logging@1"
rm -rf src/test/java/org/apache/commons/logging/log4j/log4j12
%build
%mvn_build -- -Dmaven.compiler.source=1.7 -Dmaven.compiler.target=1.7 -Dcommons.osgi.symbolicName=org.apache.commons.logging
%mvn_artifact %{SOURCE1} target/commons-logging-%{version}-api.jar
%mvn_artifact commons-logging:commons-logging-adapters:%{version} target/commons-logging-%{version}-adapters.jar
%install
%mvn_install
%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%doc PROPOSAL.html RELEASE-NOTES.txt
%changelog
* Fri Sep 20 2024 Upgrade Robot <[email protected]> - 1.3.4-1
- Upgrade to version 1.3.4
* Fri Aug 16 2024 OpenCloudOS Release Engineering <[email protected]> - 1.2-7
- Rebuilt for loongarch release
* Fri Sep 08 2023 OpenCloudOS Release Engineering <[email protected]> - 1.2-6
- Rebuilt for OpenCloudOS Stream 23.09
* Fri Apr 28 2023 OpenCloudOS Release Engineering <[email protected]> - 1.2-5
- Rebuilt for OpenCloudOS Stream 23.05
* Wed Apr 19 2023 Zhao Zhen <[email protected]> - 1.2-4
- switched to non-bootstrap building
* Wed Apr 12 2023 Zhao Zhen <[email protected]> - 1.2-3
- rebuilding for opencloudos
* Thu Mar 23 2023 Shuo Wang <[email protected]> - 1.2-2
- re-build
* Thu Mar 23 2023 Shuo Wang <[email protected]> - 1.2-1
- initial build
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ocs-upgrade/apache-commons-logging.git
[email protected]:ocs-upgrade/apache-commons-logging.git
ocs-upgrade
apache-commons-logging
apache-commons-logging
master

搜索帮助