-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathFastCFS-vote.spec.in
91 lines (68 loc) · 2.44 KB
/
FastCFS-vote.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
%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.2
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.5
Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id
Requires: libserverframe >= 1.2.5
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.5
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)