90 Star 637 Fork 143

GVPhappyfish100 / FastCFS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
FastCFS.spec.in 4.60 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
happyfish100 提交于 2024-03-11 11:39 . upgrade version to V5.3.0
%define FastCFSFused FastCFS-fused
%define FastCFSUtils FastCFS-utils
%define FastCFSAPI FastCFS-api-libs
%define FastCFSAPITests FastCFS-api-tests
%define FastCFSAuthServer FastCFS-auth-server
%define FastCFSVoteServer FastCFS-vote-server
%define FastCFSAPIDevel FastCFS-api-devel
%define FastCFSFuseConfig FastCFS-fuse-config
%define CommitVersion %(echo $COMMIT_VERSION)
Name: FastCFS
Version: 5.3.0
Release: 1%{?dist}
Summary: 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: fastDIR-devel >= 5.3.0
BuildRequires: faststore-devel >= 5.3.0
BuildRequires: fuse3-devel >= 3.10.5
Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id
Requires: %{FastCFSFused} = %{version}-%{release}
Requires: %{FastCFSUtils} = %{version}-%{release}
Requires: %{FastCFSAPITests} = %{version}-%{release}
%description
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 %{FastCFSFused}
Requires: fuse3 >= 3.10.5
Requires: %{FastCFSAPI} = %{version}-%{release}
Requires: %{FastCFSFuseConfig} >= 1.0.0
Summary: FastCFS fuse
%package -n %{FastCFSUtils}
Requires: %{FastCFSAPI} = %{version}-%{release}
Summary: FastCFS utils
%package -n %{FastCFSAPI}
Requires: fastDIR-client >= 5.3.0
Requires: faststore-client >= 5.3.0
Summary: FastCFS api library
%package -n %{FastCFSAPITests}
Requires: %{FastCFSAPI} = %{version}-%{release}
Requires: %{FastCFSFuseConfig} >= 1.0.0
Summary: FastCFS api tests
%package -n %{FastCFSAPIDevel}
Requires: %{FastCFSAPI} = %{version}-%{release}
Summary: header files of FastCFS api library
%package -n %{FastCFSAuthServer}
Requires: fastDIR-client >= 5.3.0
Requires: FastCFS-auth-config >= 2.0.0
Summary: FastCFS auth server
%package -n %{FastCFSVoteServer}
Requires: libserverframe >= 1.2.3
Requires: FastCFS-vote-config >= 3.5.0
Summary: FastCFS vote server
%package -n %{FastCFSFuseConfig}
Requires: faststore-config >= 1.0.0
Summary: FastCFS fuse config files for sample
%description -n %{FastCFSFused}
FastCFS fuse
commit version: %{CommitVersion}
%description -n %{FastCFSUtils}
FastCFS utils
commit version: %{CommitVersion}
%description -n %{FastCFSAPI}
FastCFS api library
commit version: %{CommitVersion}
%description -n %{FastCFSAPITests}
FastCFS api tests
commit version: %{CommitVersion}
%description -n %{FastCFSAPIDevel}
This package provides the header files of libfcfsapi
commit version: %{CommitVersion}
%description -n %{FastCFSAuthServer}
FastCFS auth server
commit version: %{CommitVersion}
%description -n %{FastCFSVoteServer}
FastCFS vote server
commit version: %{CommitVersion}
%description -n %{FastCFSFuseConfig}
FastCFS fuse config files for sample
commit version: %{CommitVersion}
%prep
%setup -q
%build
./make.sh clean && ./make.sh --exclude=client
%install
rm -rf %{buildroot}
DESTDIR=$RPM_BUILD_ROOT ./make.sh --exclude=client install
FUSE_CONFDIR=%{buildroot}/etc/fastcfs/fcfs/
SYSTEMDIR=%{buildroot}/usr/lib/systemd/system/
mkdir -p $FUSE_CONFDIR
mkdir -p $SYSTEMDIR
cp conf/*.conf $FUSE_CONFDIR
cp systemd/fastcfs.service $SYSTEMDIR
cp systemd/fastauth.service $SYSTEMDIR
cp systemd/fastvote.service $SYSTEMDIR
%post
%preun
%postun
%clean
rm -rf %{buildroot}
%files
%post -n %{FastCFSFused}
mkdir -p /opt/fastcfs/fcfs
mkdir -p /opt/fastcfs/fuse
%files -n %{FastCFSFused}
/usr/bin/fcfs_fused
%config(noreplace) /usr/lib/systemd/system/fastcfs.service
%files -n %{FastCFSUtils}
/usr/bin/fcfs_active_test
/usr/bin/fcfs_pool_stat
%files -n %{FastCFSAPI}
%defattr(-,root,root,-)
/usr/lib64/libfcfsapi.so*
/usr/lib64/libfcfspreload.so*
%files -n %{FastCFSAPITests}
/usr/bin/fcfs_beachmark
/usr/bin/fcfs_test_file_op
/usr/bin/fcfs_test_file_copy
/usr/bin/fcfs_test_papi_copy
/usr/bin/fcfs_test_read_ahead
%files -n %{FastCFSAPIDevel}
%defattr(-,root,root,-)
/usr/include/fastcfs/api/*
%post -n %{FastCFSAuthServer}
mkdir -p /opt/fastcfs/auth
%post -n %{FastCFSVoteServer}
mkdir -p /opt/fastcfs/vote
%files -n %{FastCFSAuthServer}
/usr/bin/fcfs_authd
%config(noreplace) /usr/lib/systemd/system/fastauth.service
%files -n %{FastCFSVoteServer}
/usr/bin/fcfs_voted
%config(noreplace) /usr/lib/systemd/system/fastvote.service
%files -n %{FastCFSFuseConfig}
%defattr(-,root,root,-)
%config(noreplace) /etc/fastcfs/fcfs/*.conf
%changelog
* Fri Jan 1 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

搜索帮助

14c37bed 8189591 565d56ea 8189591