3 Star 0 Fork 5

src-openEuler/canal

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
canal.spec 2.51 KB
一键复制 编辑 原始数据 按行查看 历史
zhangxingrong 提交于 2024-08-15 14:37 . add some upstream patchs
Name: canal
Version: 1.1.7
Release: 2
Summary: MySQL Binlog Incremental Subscription & Consuming Components
License: ASL 2.0
URL: https://github.com/alibaba/canal
Source0: https://github.com/alibaba/canal/archive/refs/tags/canal-1.1.7.tar.gz
Patch0001: backport-fixed-issue-#4930-check-embeddedServerstate.patch
Patch0002: backport-fixed-issue-#4923-support-fastJSON-Feature.LargeObject.patch
Patch0003: backport-fixed-issue-#4941-remove-default-passwd.patch
Patch0004: backport-Fixed-bug-where-cp-f-actually-failed.patch
BuildRequires: maven java
Requires: java
BuildArch: noarch
%description
MySQL Binlog Incremental Subscription & Consuming Components
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%package adapter
Summary: Adapter for %{name}
%description adapter
This package contains the adapter components for %{name}.
%prep
%autosetup -n canal-canal-%{version} -p1
find -name "*.jar" -delete
find -name "*.class" -delete
%build
mvn package -Dmaven.test.failure.ignore=true
%install
install -d %{buildroot}%{_datadir}/canal
cp -r deployer/target/canal/bin %{buildroot}%{_datadir}/canal
cp -r deployer/target/canal/conf %{buildroot}%{_datadir}/canal
cp -r deployer/target/canal/lib %{buildroot}%{_datadir}/canal
cp -r deployer/target/canal/logs %{buildroot}%{_datadir}/canal
# Adapter files
install -d %{buildroot}%{_datadir}/canal-adapter
cp -r client-adapter/launcher/target/canal-adapter/* %{buildroot}%{_datadir}/canal-adapter
install -d %{buildroot}%{_javadir}
find . -name "*.jar" | cp --parents `xargs` %{buildroot}%{_javadir}
install -d %{buildroot}%{_datadir}/canal/javadoc
find . -name "*.xml" | cp --parents `xargs` %{buildroot}%{_datadir}/canal/javadoc
%files
%license LICENSE.txt
%{_datadir}/canal/{bin,lib,conf,logs}
%{_javadir}
%files javadoc
%doc README.md
%{_datadir}/canal/javadoc
%files adapter
%{_datadir}/canal-adapter
%changelog
* Thu Aug 15 2024 zhangxingrong <[email protected]> - 1.1.7-2
- fixed issue #4930 , check embeddedServerstate
- fixed issue #4923 , support fastJSON Feature.LargeObject
- fixed issue #4941 , remove default passwd
- Fixed bug where cp -f actually failed,
* Wed Jun 19 2024 luxuexian <[email protected]> - 1.1.7-1
- update to 1.1.7, add canal-adapter subpackage
* Mon Jul 19 2021 huanghaitao <[email protected]> - 1.1.5-1
- package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/canal.git
[email protected]:src-openeuler/canal.git
src-openeuler
canal
canal
master

搜索帮助