icinga2/icinga2.spec

82 lines
1.9 KiB
Plaintext
Raw Normal View History

2012-05-26 14:42:03 +02:00
Summary: network monitoring application
2012-05-26 23:12:46 +02:00
Name: icinga2
Version: 0.0.2
2012-05-26 23:12:46 +02:00
Release: 1%{?dist}
2012-05-26 14:42:03 +02:00
License: GPL
2012-05-26 23:12:46 +02:00
Group: Applications/System
2012-05-27 16:21:50 +02:00
Source: %{name}-%{version}.tar.gz
2012-05-26 14:42:03 +02:00
URL: http://www.icinga.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
2013-08-16 16:17:14 +02:00
BuildRequires: asciidoc
BuildRequires: docbook-simple
BuildRequires: doxygen
2012-05-26 14:42:03 +02:00
BuildRequires: openssl-devel
BuildRequires: gcc-c++
2013-08-16 16:17:14 +02:00
BuildRequires: libstdc++-devel
BuildRequires: libtool-ltdl-devel
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: flex
BuildRequires: bison
2013-08-27 19:36:03 +02:00
# TODO: figure out how to handle boost on el5
2012-05-27 16:21:50 +02:00
BuildRequires: boost
BuildRequires: boost-devel
BuildRequires: boost-test
2012-05-26 14:42:03 +02:00
%description
2012-05-27 16:21:50 +02:00
Icinga is a general-purpose network monitoring application.
2012-05-26 14:42:03 +02:00
%prep
2012-05-27 16:21:50 +02:00
%setup -q -n %{name}-%{version}
2012-05-26 14:42:03 +02:00
%build
sh autogen.sh
2012-05-27 16:21:50 +02:00
%configure
make %{?_smp_mflags}
2012-05-26 14:42:03 +02:00
%install
2012-05-27 16:21:50 +02:00
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
2012-05-26 14:42:03 +02:00
# dist config
mv %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf.dist %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
2012-05-26 14:42:03 +02:00
%clean
2012-05-27 16:21:50 +02:00
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
2012-05-26 14:42:03 +02:00
%files
%defattr(-,root,root)
2013-08-16 16:58:31 +02:00
%doc README AUTHORS ChangeLog COPYING COPYING.Exceptions
%{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%attr(755,-,-) %{_sysconfdir}/init.d/%{name}
2013-08-16 14:52:34 +02:00
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/doc/%{name}
%{_datadir}/%{name}
%{_datadir}/%{name}/itl
%{_mandir}/man8/%{name}.8.gz
2013-08-16 16:58:31 +02:00
%{_localstatedir}/cache/%{name}
%{_localstatedir}/log/%{name}
%{_localstatedir}/run/%{name}
%{_localstatedir}/lib/%{name}
%{_localstatedir}/spool/%{name}
%{_localstatedir}/spool/%{name}/perfdata
%changelog
* Sat May 04 2013 Michael Friedrich <michael.friedrich@netways.de> - 0.0.2-1
- new initscript in initdir
- itl is installed into datadir
- man pages in mandir
- use name macro to avoid typos
* Fri Nov 19 2012 Gunnar Beutner <gunnar.beutner@netways.de> - 0.0.1-1
- initial version