96 Star 656 Fork 146

GVPhappyfish100/FastCFS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
FastCFS-vote.spec.in 2.44 KB
一键复制 编辑 原始数据 按行查看 历史
happyfish100 提交于 2024-06-11 10:00 . upgrade version to 5.3.1
%define FastCFSVoteClient FastCFS-vote-client
%define FastCFSVoteDevel FastCFS-vote-devel
%define FastCFSVoteConfig FastCFS-vote-config
%define CommitVersion %(echo $COMMIT_VERSION)
Name: FastCFS-vote
Version: 5.3.1
Release: 1%{?dist}
Summary: the vote client library and config files of FastCFS. FastCFS is a high performance cloud native distributed file system for databases, KVM and K8s
License: AGPL v3.0
Group: Arch/Tech
URL: http://github.com/happyfish100/FastCFS/
Source: http://github.com/happyfish100/FastCFS/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libserverframe-devel >= 1.2.4
Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id
Requires: libserverframe >= 1.2.4
Requires: FastCFS-vote-server = %{version}-%{release}
Requires: %{FastCFSVoteClient} = %{version}-%{release}
Requires: %{FastCFSVoteConfig} >= 3.5.0
%description
the vote client library and config files of FastCFS.
FastCFS is a high performance distributed file system which can be used as the back-end storage of databases and cloud platforms.
commit version: %{CommitVersion}
%package -n %{FastCFSVoteDevel}
Requires: %{FastCFSVoteClient} = %{version}-%{release}
Summary: header files of FastCFS vote client
%package -n %{FastCFSVoteClient}
Requires: libserverframe >= 1.2.4
Summary: FastCFS vote client
%package -n %{FastCFSVoteConfig}
Summary: FastCFS vote config files for sample
%description -n %{FastCFSVoteDevel}
This package provides the header files of libfcfsvoteclient
commit version: %{CommitVersion}
%description -n %{FastCFSVoteClient}
FastCFS vote client
commit version: %{CommitVersion}
%description -n %{FastCFSVoteConfig}
FastCFS vote config files for sample
commit version: %{CommitVersion}
%prep
%setup -q
%build
./make.sh --module=voteclient clean && ./make.sh --module=voteclient
%install
rm -rf %{buildroot}
DESTDIR=$RPM_BUILD_ROOT ./make.sh --module=voteclient install
VOTE_CONFDIR=%{buildroot}/etc/fastcfs/vote/
mkdir -p $VOTE_CONFDIR
cp src/vote/conf/*.conf $VOTE_CONFDIR
%post
%preun
%postun
%clean
rm -rf %{buildroot}
%files
%files -n %{FastCFSVoteClient}
/usr/lib64/libfcfsvoteclient.so*
/usr/bin/fvote_cluster_stat
%files -n %{FastCFSVoteDevel}
%defattr(-,root,root,-)
/usr/include/fastcfs/vote/*
%files -n %{FastCFSVoteConfig}
%defattr(-,root,root,-)
%config(noreplace) /etc/fastcfs/vote/*.conf
%changelog
* Thu Apr 22 2021 YuQing <384681@qq.com>
- first RPM release (1.0)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/fastdfs100/FastCFS.git
git@gitee.com:fastdfs100/FastCFS.git
fastdfs100
FastCFS
FastCFS
master

搜索帮助

Cb406eda 1850385 E526c682 1850385