]> arthur.barton.de Git - netdata.git/blob - netdata.spec.in
spec: disable nfacct plugin on rhel
[netdata.git] / netdata.spec.in
1 Summary:        Linux real time system monitoring, over the web
2 Name:           @PACKAGE_NAME@
3 Version:        @PACKAGE_RPM_VERSION@
4 Release:        @PACKAGE_RPM_RELEASE@%{?release_suffix}%{?dist}
5 License:        GPLv2+
6 URL:            http://firehol.org
7 Source:         %{name}-@PACKAGE_VERSION@.tar.bz2
8
9 BuildRequires:  libmnl-devel
10 BuildRequires:  zlib-devel
11 Requires:       libmnl
12 Requires:       zlib
13 %if !0%{?rhel}
14 BuildRequires:  libnetfilter_acct-devel
15 Requires:       libnetfilter_acct
16 %endif
17
18 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
19
20 %description
21 Real-time performance monitoring, in the greatest possible detail!
22
23 %pre
24 getent group netdata > /dev/null || groupadd -r netdata
25 getent passwd netdata > /dev/null || useradd -r -g netdata -c netdata -s /sbin/nologin -d / netdata
26
27 %global ovirt_create_user_engine \
28 %_ovirt_create_user %{engine_user} %{engine_uid} %{engine_group} %{engine_gid} "%{ovirt_user_description}" %{engine_state}
29
30
31 %prep
32 %setup -q -n %{name}-@PACKAGE_VERSION@
33
34 %build
35 %configure \
36         --docdir="%{_docdir}/%{name}-%{version}" \
37         --with-zlib \
38         --with-math \
39         --with-user=netdata \
40 %if !0%{?rhel}
41         --enable-plugin-nfacct \
42 %endif
43         %{?conf}
44 make %{?_smp_mflags}
45
46 %install
47 rm -rf "%{buildroot}"
48 make %{?_smp_mflags} install DESTDIR="%{buildroot}"
49 find "%{buildroot}" -name .keep -exec rm {} \;
50
51 %files
52 %attr(-, netdata, netdata) %dir %{_localstatedir}/cache/%{name}/
53 %attr(-, netdata, netdata) %dir %{_localstatedir}/log/%{name}/
54 %config(noreplace) %{_sysconfdir}/%{name}/
55 %{_datadir}/%{name}/
56 %{_libexecdir}/%{name}/
57 %{_sbindir}/%{name}
58
59 %changelog
60 * Tue Mar 22 2016 Costa Tsaousis <costa@tsaousis.gr> - 1.0.0-1
61 - First public release.
62 * Sun Nov 15 2015 Alon Bar-Lev <alonbl@redhat.com> - 0.0.0-1
63 - Initial add.