File icinga-mobile.spec of Package icinga-mobile
#
# spec file for package
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: icinga-mobile
Version: 0.2.0
Release: 2
License: GPL-3.0
Summary: Mobile Interface for Icinga
Url: http://www.icinga.org/
Group: System/Monitoring
Source: %{name}-%{version}.tar.gz
BuildRequires: apache2 make fdupes java
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: apache2
Suggests: icinga
BuildArch: noarch
%description
Interface for Icinga monitoring especially designed for mobile devices
%prep
%setup -q -n %{name}
%build
./configure --with-web-user=abuild \
--with-web-group=abuild \
--with-web-apache-path=%{_sysconfdir}/apache2/conf.d \
--prefix=%{_datadir}/%{name}
%{__make} compile
%install
%makeinstall
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf.d
%{__make} DESTDIR=$RPM_BUILD_ROOT install-apache-config
chmod -x $RPM_BUILD_ROOT%{_datadir}/%{name}/index.html
chmod -x $RPM_BUILD_ROOT%{_datadir}/%{name}/lib/sencha/ext-touch.js
%fdupes $RPM_BUILD_ROOT%{_datadir}/%{name}
%post
service apache2 restart
%postun
service apache2 restart
%files
%defattr(-,root,root)
%doc doc/GPL
%config %{_sysconfdir}/apache2/conf.d/%{name}.conf
%{_datadir}/%{name}
%changelog