]> arthur.barton.de Git - netdata.git/blob - netdata.spec.in
Merge pull request #17 from alonbl/build
[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:  libnetfilter_acct-devel
11 BuildRequires:  zlib-devel
12 Requires:       libmnl
13 Requires:       libnetfilter_acct
14 Requires:       zlib
15
16 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17
18 %description
19 Linux real time system monitoring, over the web!
20
21 %pre
22 getent group netdata > /dev/null || groupadd -r netdata
23 getent passwd netdata > /dev/null || useradd -r -g netdata -c netdata -s /sbin/nologin -d / netdata
24
25 %global ovirt_create_user_engine \
26 %_ovirt_create_user %{engine_user} %{engine_uid} %{engine_group} %{engine_gid} "%{ovirt_user_description}" %{engine_state}
27
28
29 %prep
30 %setup -q -n %{name}-@PACKAGE_VERSION@
31
32 %build
33 %configure \
34         --docdir="%{_docdir}/%{name}-%{version}" \
35         --enable-plugin-plugin-nfacct \
36         --with-zlib \
37         --with-math \
38         --with-user=netdata \
39         %{?conf}
40 make %{?_smp_mflags}
41
42 %install
43 rm -rf "%{buildroot}"
44 make %{?_smp_mflags} install DESTDIR="%{buildroot}"
45 find "%{buildroot}" -name .keep -exec rm {} \;
46
47 %files
48 %attr(4755, root, root) %{_libexecdir}/%{name}/plugins.d/apps.plugin
49 %attr(-, netdata, netdata) %dir %{_localstatedir}/cache/%{name}/
50 %attr(-, netdata, netdata) %dir %{_localstatedir}/log/%{name}/
51 %{_bindir}/%{name}
52 %{_datadir}/%{name}/
53 %{_libexecdir}/%{name}/
54 %{_sysconfdir}/%{name}/
55
56 %changelog
57 * Sun Nov 15 2015 Alon Bar-Lev <alonbl@redhat.com> - 1.0.0-1
58 - Initial add.