diff options
author | Federico Ceratto <federico.ceratto@gmail.com> | 2016-03-30 21:40:42 +0000 |
---|---|---|
committer | Federico Ceratto <federico.ceratto@gmail.com> | 2016-03-30 21:40:42 +0000 |
commit | 9ce153ce7167c11adba8ac225edc7a707e97c6eb (patch) | |
tree | 9f6e849cce2dcc7e5b4e9e6252c843dc2d0787a2 /netdata.spec.in | |
download | netdata-9ce153ce7167c11adba8ac225edc7a707e97c6eb.tar.xz netdata-9ce153ce7167c11adba8ac225edc7a707e97c6eb.zip |
Imported Upstream version 1.0.0upstream/1.0.0
Diffstat (limited to '')
-rw-r--r-- | netdata.spec.in | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/netdata.spec.in b/netdata.spec.in new file mode 100644 index 00000000..f2e41dfe --- /dev/null +++ b/netdata.spec.in @@ -0,0 +1,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. |