1 Star 0 Fork 394

爱学习的二师兄/FastDFS

forked from happyfish100/FastDFS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
fastdfs.spec 2.92 KB
一键复制 编辑 原始数据 按行查看 历史
happyfish100 提交于 2021-01-06 11:54 . add systemd service files
%define FastDFS fastdfs
%define FDFSServer fastdfs-server
%define FDFSClient libfdfsclient
%define FDFSClientDevel libfdfsclient-devel
%define FDFSTool fastdfs-tool
%define FDFSConfig fastdfs-config
%define FDFSVersion 6.0.7
%define CommitVersion %(echo $COMMIT_VERSION)
Name: %{FastDFS}
Version: %{FDFSVersion}
Release: 1%{?dist}
Summary: FastDFS server and client
License: GPL
Group: Arch/Tech
URL: http://perso.orange.fr/sebastien.godard/
Source: http://perso.orange.fr/sebastien.godard/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id
BuildRequires: libfastcommon-devel >= 1.0.44
%description
This package provides tracker & storage of fastdfs
commit version: %{CommitVersion}
%package -n %{FDFSServer}
Requires: libfastcommon >= 1.0.44
Requires: %{FDFSConfig}
Summary: fastdfs tracker & storage
%package -n %{FDFSTool}
Requires: libfastcommon
Requires: %{FDFSConfig}
Summary: fastdfs tools
%package -n %{FDFSClient}
Requires: libfastcommon
Requires: %{FDFSConfig}
Summary: The client dynamic library of fastdfs
%package -n %{FDFSClient}-devel
Requires: %{FDFSClient}
Summary: The client header of fastdfs
%package -n %{FDFSConfig}
Summary: FastDFS config files for sample
%description -n %{FDFSServer}
This package provides tracker & storage of fastdfs
commit version: %{CommitVersion}
%description -n %{FDFSClient}
This package is client dynamic library of fastdfs
commit version: %{CommitVersion}
%description -n %{FDFSClient}-devel
This package is client header of fastdfs client
commit version: %{CommitVersion}
%description -n %{FDFSTool}
This package is tools for fastdfs
commit version: %{CommitVersion}
%description -n %{FDFSConfig}
FastDFS config files for sample
commit version: %{CommitVersion}
%prep
%setup -q
%build
./make.sh clean && ./make.sh
%install
rm -rf %{buildroot}
DESTDIR=$RPM_BUILD_ROOT ./make.sh install
%post
%postun
%clean
#rm -rf %{buildroot}
%files
%files -n %{FDFSServer}
%defattr(-,root,root,-)
/usr/bin/fdfs_trackerd
/usr/bin/fdfs_storaged
%config(noreplace) /usr/lib/systemd/system/fdfs_trackerd.service
%config(noreplace) /usr/lib/systemd/system/fdfs_storaged.service
%files -n %{FDFSClient}
%defattr(-,root,root,-)
/usr/lib64/libfdfsclient*
/usr/lib/libfdfsclient*
%files -n %{FDFSClient}-devel
%defattr(-,root,root,-)
/usr/include/fastdfs/*
%files -n %{FDFSTool}
%defattr(-,root,root,-)
/usr/bin/fdfs_monitor
/usr/bin/fdfs_test
/usr/bin/fdfs_test1
/usr/bin/fdfs_crc32
/usr/bin/fdfs_upload_file
/usr/bin/fdfs_download_file
/usr/bin/fdfs_delete_file
/usr/bin/fdfs_file_info
/usr/bin/fdfs_appender_test
/usr/bin/fdfs_appender_test1
/usr/bin/fdfs_append_file
/usr/bin/fdfs_upload_appender
/usr/bin/fdfs_regenerate_filename
%files -n %{FDFSConfig}
%defattr(-,root,root,-)
%config(noreplace) /etc/fdfs/*.conf
%changelog
* Mon Jun 23 2014 Zaixue Liao <liaozaixue@yongche.com>
- first RPM release (1.0)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/Abob/fastdfs.git
git@gitee.com:Abob/fastdfs.git
Abob
fastdfs
FastDFS
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385