90 Star 643 Fork 145

GVPhappyfish100 / FastCFS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
FastCFS-auth.spec.in 2.59 KB
一键复制 编辑 原始数据 按行查看 历史
happyfish100 提交于 2024-03-11 11:39 . upgrade version to V5.3.0
%define FastCFSAuthClient FastCFS-auth-client
%define FastCFSAuthDevel FastCFS-auth-devel
%define FastCFSAuthConfig FastCFS-auth-config
%define CommitVersion %(echo $COMMIT_VERSION)
Name: FastCFS-auth
Version: 5.3.0
Release: 1%{?dist}
Summary: the auth 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.3
Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id
Requires: libserverframe >= 1.2.3
Requires: FastCFS-auth-server = %{version}-%{release}
Requires: %{FastCFSAuthClient} = %{version}-%{release}
Requires: %{FastCFSAuthConfig} >= 2.0.0
%description
the auth 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 %{FastCFSAuthDevel}
Requires: %{FastCFSAuthClient} = %{version}-%{release}
Summary: header files of FastCFS auth client
%package -n %{FastCFSAuthClient}
Requires: libserverframe >= 1.2.3
Summary: FastCFS auth client
%package -n %{FastCFSAuthConfig}
Summary: FastCFS auth config files for sample
%description -n %{FastCFSAuthDevel}
This package provides the header files of libfcfsauthclient
commit version: %{CommitVersion}
%description -n %{FastCFSAuthClient}
FastCFS auth client
commit version: %{CommitVersion}
%description -n %{FastCFSAuthConfig}
FastCFS auth config files for sample
commit version: %{CommitVersion}
%prep
%setup -q
%build
./make.sh --module=authclient clean && ./make.sh --module=authclient
%install
rm -rf %{buildroot}
DESTDIR=$RPM_BUILD_ROOT ./make.sh --module=authclient install
AUTH_CONFDIR=%{buildroot}/etc/fastcfs/auth/
mkdir -p $AUTH_CONFDIR
cp src/auth/conf/*.conf $AUTH_CONFDIR
cp -R src/auth/conf/keys $AUTH_CONFDIR
%post
%preun
%postun
%clean
rm -rf %{buildroot}
%files
%files -n %{FastCFSAuthClient}
/usr/lib64/libfcfsauthclient.so*
/usr/bin/fcfs_user
/usr/bin/fcfs_pool
/usr/bin/fauth_list_servers
/usr/bin/fauth_cluster_stat
%files -n %{FastCFSAuthDevel}
%defattr(-,root,root,-)
/usr/include/fastcfs/auth/*
%files -n %{FastCFSAuthConfig}
%defattr(-,root,root,-)
%config(noreplace) /etc/fastcfs/auth/*.conf
%config(noreplace) /etc/fastcfs/auth/keys/*
%changelog
* Thu Apr 22 2021 YuQing <384681@qq.com>
- first RPM release (1.0)
C
1
https://gitee.com/fastdfs100/FastCFS.git
git@gitee.com:fastdfs100/FastCFS.git
fastdfs100
FastCFS
FastCFS
master

搜索帮助