-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathredis-metrics.spec.in
52 lines (36 loc) · 987 Bytes
/
redis-metrics.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
%define prefix /opt/work
%define debug_package %{nil}
Summary: Utility of collect redis metrics to open-falcon
Name: redis-metrics
Version: @@VERSION@@
Release: @@RELEASE@@
License: GPL
URL: https://github.com/mesos-utility/redis-metrics/
Group: Applications/System
Source0: https://github.com/mesos-utility/redis-metrics/archive/redis-metrics-%{version}.tar.gz
BuildRoot: /var/tmp/%name-%{PACKAGE_VERSION}-root
Provides: %{name}-%{version}
requires: libnl3
%description
redis-metrics is a utility of collect redis metrics to open-falcon.
%prep
%setup -n %{name}-%{version}
%build
make bin
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p ${RPM_BUILD_ROOT}/%{prefix}
make rpm-install BUILD_ROOT=${RPM_BUILD_ROOT}/%{prefix}/%{name} MANDIR=${RPM_BUILD_ROOT}/%{prefix}/%{name}
%files
%defattr(-,root,root)
%{prefix}/%{name}/*
#%post
#/sbin/chkconfig --add %{name}
#
#%preun
#/sbin/chkconfig --del %{name}
#
%clean
rm -rf $RPM_BUILD_DIR/%{prefix}
rm -rf $RPM_BUILD_ROOT
%changelog