59 lines
1.9 KiB
RPMSpec
59 lines
1.9 KiB
RPMSpec
Name: predixy
|
|
Version: 1.0.5
|
|
Release: 3
|
|
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
|
|
Patch0: Fix-build-error-GCC12.patch
|
|
BuildRequires: make gcc-c++ libstdc++-static
|
|
Requires: redis
|
|
%description
|
|
Predixy is a high performance and fully featured proxy for redis sentinel and redis cluster.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%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
|
|
* Tue Jul 25 2023 yaoxin <yao_xin001@hoperun.com> - 1.0.5-3
|
|
- fix build error caused by gcc update to 12.3.0
|
|
|
|
* Fri Aug 6 2021 liyanan <liyanan32@huawei.com> - 1.0.5-2
|
|
- Modify buildrequire form gcc-g++ to gcc-c++
|
|
|
|
* Sat Jul 17 2021 liyanan <liyanan32@huawei.com> - 1.0.5-1
|
|
- package init
|