!1 兼容性生态新引入predixy

From: @lyn1001
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2021-07-23 02:04:05 +00:00 committed by Gitee
commit b6c9b737da
3 changed files with 55 additions and 0 deletions

BIN
1.0.5.tar.gz Normal file

Binary file not shown.

51
predixy.spec Normal file
View File

@ -0,0 +1,51 @@
Name: predixy
Version: 1.0.5
Release: 1
Summary: High performance and full featured proxy for redis sentinel and redis cluster
License: BSD-3-Clause
URL: https://github.com/joyieldInc/predixy
Source: https://github.com/joyieldInc/%{name}/archive/refs/tags/%{version}.tar.gz
BuildRequires: make gcc-g++ libstdc++-static
Requires: redis
%description
Predixy is a high performance and fully featured proxy for redis sentinel and redis cluster.
%prep
%setup -q
%build
make %{?_smp_mflags}
%install
install -d -m 0755 %{buildroot}/%{_bindir}
install -d -m 0755 %{buildroot}/usr/local/%{name}
install -d -m 0755 %{buildroot}/usr/local/%{name}/bin
install -d -m 0755 %{buildroot}/usr/local/%{name}/doc
install -d -m 0755 %{buildroot}/usr/local/%{name}/test
install -d -m 0755 %{buildroot}/%{_sysconfdir}/%{name}/
cp -arf src/predixy %{buildroot}/usr/local/%{name}/bin
cp -arf doc/* %{buildroot}/usr/local/%{name}/doc
cp -arf test/* %{buildroot}/usr/local/%{name}/test
cp -arf conf/* %{buildroot}/%{_sysconfdir}/%{name}/
cp LICENSE README.md README_CN.md %{buildroot}/usr/local/%{name}
pushd %{buildroot}/usr/local/%{name}/bin
ls | awk '{print $1}'| for line in `xargs`;do
ln -s /usr/local/%{name}/bin/${line} %{buildroot}%{_bindir}/${line}
done
popd
pushd %{buildroot}/usr/local/%{name}
%{__ln_s} %{_sysconfdir}/%{name} conf
popd
%files
%doc README.md README_CN.md LICENSE
/usr/local/%{name}
%{_sysconfdir}/%{name}
%{_bindir}/*
%changelog
* Sat Jul 17 2021 liyanan <liyanan32@huawei.com> - 1.0.5-1
- package init

4
predixy.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: joyieldInc/predixy
tag_prefix: ""
separator: "."