1 Star 0 Fork 151

tancz1/FastCFS

forked from happyfish100/FastCFS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
FastCFS-vote.spec.in 2.44 KB
一键复制 编辑 原始数据 按行查看 历史
happyfish100 提交于 2024-01-30 11:40 . upgrade version to 5.2.0
%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.2.0
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.2
Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id
Requires: libserverframe >= 1.2.2
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.2
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 <[email protected]>
- first RPM release (1.0)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/tancz1/FastCFS.git
[email protected]:tancz1/FastCFS.git
tancz1
FastCFS
FastCFS
master

搜索帮助