summaryrefslogtreecommitdiffstats
path: root/netdata.spec.in
blob: f2e41dfe7c85545649a3067cb7cf656dd1441f8b (plain)
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
Summary:	Linux real time system monitoring, over the web
Name:		@PACKAGE_NAME@
Version:	@PACKAGE_RPM_VERSION@
Release:	@PACKAGE_RPM_RELEASE@%{?release_suffix}%{?dist}
License:	GPLv2+
URL:		http://firehol.org
Source:		%{name}-@PACKAGE_VERSION@.tar.bz2

BuildRequires:	libmnl-devel
BuildRequires:	libnetfilter_acct-devel
BuildRequires:	zlib-devel
Requires:	libmnl
Requires:	libnetfilter_acct
Requires:	zlib

BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
Real-time performance monitoring, in the greatest possible detail!

%pre
getent group netdata > /dev/null || groupadd -r netdata
getent passwd netdata > /dev/null || useradd -r -g netdata -c netdata -s /sbin/nologin -d / netdata

%global ovirt_create_user_engine \
%_ovirt_create_user %{engine_user} %{engine_uid} %{engine_group} %{engine_gid} "%{ovirt_user_description}" %{engine_state}


%prep
%setup -q -n %{name}-@PACKAGE_VERSION@

%build
%configure \
	--docdir="%{_docdir}/%{name}-%{version}" \
	--enable-plugin-nfacct \
	--with-zlib \
	--with-math \
	--with-user=netdata \
	%{?conf}
make %{?_smp_mflags}

%install
rm -rf "%{buildroot}"
make %{?_smp_mflags} install DESTDIR="%{buildroot}"
find "%{buildroot}" -name .keep -exec rm {} \;

%files
%attr(-, netdata, netdata) %dir %{_localstatedir}/cache/%{name}/
%attr(-, netdata, netdata) %dir %{_localstatedir}/log/%{name}/
%config(noreplace) %{_sysconfdir}/%{name}/
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_libexecdir}/%{name}/

%changelog
* Tue Mar 22 2016 Costa Tsaousis <costa@tsaousis.gr> - 1.0.0-1
- First public release.
* Sun Nov 15 2015 Alon Bar-Lev <alonbl@redhat.com> - 0.0.0-1
- Initial add.