1 #/******************************************************************************
3 # * Copyright (C) 2012-2016 Icinga Development Team (https://www.icinga.org/) *
5 # * This program is free software; you can redistribute it and/or *
6 # * modify it under the terms of the GNU General Public License *
7 # * as published by the Free Software Foundation; either version 2 *
8 # * of the License, or (at your option) any later version. *
10 # * This program is distributed in the hope that it will be useful, *
11 # * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 # * GNU General Public License for more details. *
15 # * You should have received a copy of the GNU General Public License *
16 # * along with this program; if not, write to the Free Software Foundation *
17 # * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
18 # ******************************************************************************/
22 # make sure that _rundir is working on older systems
23 %if ! %{defined _rundir}
24 %define _rundir %{_localstatedir}/run
27 %define _libexecdir %{_prefix}/lib/
29 %if "%{_vendor}" == "redhat"
30 %define apachename httpd
31 %define apacheconfdir %{_sysconfdir}/httpd/conf.d
32 %define apacheuser apache
33 %define apachegroup apache
36 %if %(uname -m) != "x86_64"
37 %define march_flag -march=i686
45 %if "%{_vendor}" == "suse"
46 %define apachename apache2
47 %define apacheconfdir %{_sysconfdir}/apache2/conf.d
48 %define apacheuser wwwrun
49 %define apachegroup www
50 %if 0%{?suse_version} >= 1310
57 %define icinga_user icinga
58 %define icinga_group icinga
59 %define icingacmd_group icingacmd
60 %define icingaweb2name icingaweb2
61 %define icingaweb2version 2.0.0
63 %define icingaclassicconfdir %{_sysconfdir}/icinga
65 %define logmsg logger -t %{name}/rpm
67 Summary: Network monitoring application
70 Release: %{revision}%{?dist}
72 Group: Applications/System
73 Source: https://github.com/Icinga/%{name}/archive/v%{version}.tar.gz
74 URL: https://www.icinga.org/
75 BuildRoot: %{_tmppath}/%{name}-%{version}-build
76 Requires: %{name}-bin = %{version}-%{release}
79 Meta package for Icinga 2 Core, DB IDO and Web.
82 Summary: Icinga 2 binaries and libraries
83 Group: Applications/System
85 %if "%{_vendor}" == "suse"
87 Provides: monitoring_daemon
88 Recommends: monitoring-plugins
89 %if 0%{?suse_version} >= 1310
90 BuildRequires: libyajl-devel
93 BuildRequires: libedit-devel
94 BuildRequires: ncurses-devel
95 %if "%{_vendor}" == "suse" && 0%{?suse_version} < 1210
96 BuildRequires: gcc47-c++
97 BuildRequires: libstdc++47-devel
98 BuildRequires: libopenssl1-devel
100 BuildRequires: gcc-c++
101 BuildRequires: libstdc++-devel
102 BuildRequires: openssl-devel
105 BuildRequires: flex >= 2.5.35
109 BuildRequires: wxGTK3-devel
112 %if 0%{?build_icinga_org} && "%{_vendor}" == "redhat" && (0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
113 # el5 and el6 require packages.icinga.org
114 BuildRequires: boost153-devel
116 %if 0%{?build_icinga_org} && "%{_vendor}" == "suse" && 0%{?suse_version} < 1310
117 # sles 11 sp3 requires packages.icinga.org
118 BuildRequires: boost153-devel
120 BuildRequires: boost-devel >= 1.41
125 BuildRequires: systemd
129 Requires: %{name}-libs = %{version}-%{release}
132 Icinga 2 is a general-purpose network monitoring application.
133 Provides binaries for Icinga 2 Core.
136 Summary: Common Icinga 2 configuration
137 Group: Applications/System
138 %if "%{_vendor}" == "redhat"
139 Requires(pre): shadow-utils
140 Requires(post): shadow-utils
142 %if "%{_vendor}" == "suse"
143 Recommends: logrotate
147 Provides common directories, uid and gid among Icinga 2 related
152 Summary: Documentation for Icinga 2
153 Group: Applications/System
154 Requires: %{name} = %{version}-%{release}
157 Provides documentation for Icinga 2.
161 Summary: Libraries for Icinga 2
162 Group: Applications/System
163 Requires: %{name}-common = %{version}-%{release}
166 Provides internal libraries for the daemon or studio.
170 Summary: IDO MySQL database backend for Icinga 2
171 Group: Applications/System
172 %if "%{_vendor}" == "suse"
173 BuildRequires: libmysqlclient-devel
174 %if 0%{?suse_version} >= 1310
175 BuildRequires: mysql-devel
179 BuildRequires: mysql-devel
182 Requires: %{name} = %{version}-%{release}
184 %description ido-mysql
185 Icinga 2 IDO mysql database backend. Compatible with Icinga 1.x
186 IDOUtils schema >= 1.12
190 Summary: IDO PostgreSQL database backend for Icinga 2
191 Group: Applications/System
192 BuildRequires: postgresql-devel
193 Requires: %{name} = %{version}-%{release}
195 %description ido-pgsql
196 Icinga 2 IDO PostgreSQL database backend. Compatible with Icinga 1.x
197 IDOUtils schema >= 1.12
200 %package classicui-config
201 Summary: Icinga 2 Classic UI Standalone configuration
202 Group: Applications/System
203 BuildRequires: %{apachename}
204 Requires: %{apachename}
205 Requires: %{name} = %{version}-%{release}
206 %if "%{_vendor}" == "suse"
207 Recommends: icinga-www
209 Provides: icinga-classicui-config
210 Conflicts: icinga-gui-config
212 %description classicui-config
213 Icinga 1.x Classic UI Standalone configuration with locations
216 %if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
217 %global selinux_variants mls targeted
218 %{!?_selinux_policy_version: %global _selinux_policy_version %(sed -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp 2>/dev/null)}
219 %global modulename %{name}
222 Summary: SELinux policy module supporting icinga2
223 Group: System Environment/Base
224 BuildRequires: checkpolicy, selinux-policy-devel, /usr/share/selinux/devel/policyhelp, hardlink
225 %if "%{_selinux_policy_version}" != ""
226 Requires: selinux-policy >= %{_selinux_policy_version}
228 Requires: %{name} = %{version}-%{release}
229 Requires(post): /usr/sbin/semodule, /sbin/restorecon
230 Requires(postun): /usr/sbin/semodule, /sbin/restorecon
233 SELinux policy module supporting icinga2
239 Summary: Studio for Icinga 2
240 Group: Applications/System
241 Requires: %{name}-libs = %{version}-%{release}
245 Provides a GUI for the Icinga 2 API.
250 %setup -q -n %{name}-%{version}
253 CMAKE_OPTS="-DCMAKE_INSTALL_PREFIX=/usr \
254 -DCMAKE_INSTALL_SYSCONFDIR=/etc \
255 -DCMAKE_INSTALL_LOCALSTATEDIR=/var \
256 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
257 -DCMAKE_VERBOSE_MAKEFILE=ON \
258 -DBoost_NO_BOOST_CMAKE=ON \
259 -DICINGA2_RUNDIR=%{_rundir} \
260 -DICINGA2_USER=%{icinga_user} \
261 -DICINGA2_GROUP=%{icinga_group} \
262 -DICINGA2_COMMAND_GROUP=%{icingacmd_group}"
264 CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_STUDIO=true"
266 %if "%{_vendor}" == "redhat"
267 %if 0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6"
268 # Boost_VERSION 1.41.0 vs 101400 - disable build tests
269 # details in https://dev.icinga.org/issues/5033
270 CMAKE_OPTS="$CMAKE_OPTS -DBOOST_LIBRARYDIR=/usr/lib/boost153 \
271 -DBOOST_INCLUDEDIR=/usr/include/boost153 \
272 -DBoost_ADDITIONAL_VERSIONS='1.53;1.53.0' \
273 -DBoost_NO_SYSTEM_PATHS=TRUE \
274 -DBUILD_TESTING=FALSE \
275 -DBoost_NO_BOOST_CMAKE=TRUE"
277 %if 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6"
278 CMAKE_OPTS="$CMAKE_OPTS -DBUILD_TESTING=FALSE"
282 %if "%{_vendor}" != "suse"
283 CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_PLUGINDIR=%{_libdir}/nagios/plugins"
285 %if 0%{?suse_version} < 1310
286 CMAKE_OPTS="$CMAKE_OPTS -DBOOST_LIBRARYDIR=/usr/lib/boost153 \
287 -DBOOST_INCLUDEDIR=/usr/include/boost153 \
288 -DBoost_ADDITIONAL_VERSIONS='1.53;1.53.0' \
289 -DBoost_NO_SYSTEM_PATHS=TRUE \
290 -DBUILD_TESTING=FALSE \
291 -DBoost_NO_BOOST_CMAKE=TRUE"
293 CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_PLUGINDIR=%{_prefix}/lib/nagios/plugins"
297 CMAKE_OPTS="$CMAKE_OPTS -DUSE_SYSTEMD=ON"
300 cmake $CMAKE_OPTS -DCMAKE_C_FLAGS:STRING="%{optflags} %{?march_flag}" -DCMAKE_CXX_FLAGS:STRING="%{optflags} %{?march_flag}" .
304 %if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
306 for selinuxvariant in %{selinux_variants}
308 make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile
309 mv %{modulename}.pp %{modulename}.pp.${selinuxvariant}
310 make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile clean
317 DESTDIR="%{buildroot}"
319 # install classicui config
320 install -D -m 0644 etc/icinga/icinga-classic.htpasswd %{buildroot}%{icingaclassicconfdir}/passwd
321 install -D -m 0644 etc/icinga/cgi.cfg %{buildroot}%{icingaclassicconfdir}/cgi.cfg
322 install -D -m 0644 etc/icinga/icinga-classic-apache.conf %{buildroot}%{apacheconfdir}/icinga.conf
324 # remove features-enabled symlinks
325 rm -f %{buildroot}/%{_sysconfdir}/%{name}/features-enabled/*.conf
327 # enable suse rc links
328 %if "%{_vendor}" == "suse"
330 ln -sf /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
332 ln -sf ../../%{_initrddir}/%{name} "%{buildroot}%{_sbindir}/rc%{name}"
334 mkdir -p "%{buildroot}%{_localstatedir}/adm/fillup-templates/"
335 mv "%{buildroot}%{_sysconfdir}/sysconfig/%{name}" "%{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}"
338 %if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
340 for selinuxvariant in %{selinux_variants}
342 install -d %{buildroot}%{_datadir}/selinux/${selinuxvariant}
343 install -p -m 644 %{modulename}.pp.${selinuxvariant} \
344 %{buildroot}%{_datadir}/selinux/${selinuxvariant}/%{modulename}.pp
348 /usr/sbin/hardlink -cv %{buildroot}%{_datadir}/selinux
352 mkdir -p "%{buildroot}%{_datadir}/icinga2-studio"
353 install -p -m 644 icinga-studio/icinga.ico %{buildroot}%{_datadir}/icinga2-studio
355 mkdir -p "%{buildroot}%{_datadir}/applications"
356 echo "[Desktop Entry]
358 Comment=API viewer for Icinga 2
359 TryExec=icinga-studio
361 Icon=/usr/share/icinga2-studio/icinga.ico
365 Categories=GTK;Utility;
366 Keywords=Monitoring;" > %{buildroot}%{_datadir}/applications/icinga2-studio.desktop
370 [ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
373 getent group %{icinga_group} >/dev/null || %{_sbindir}/groupadd -r %{icinga_group}
374 getent group %{icingacmd_group} >/dev/null || %{_sbindir}/groupadd -r %{icingacmd_group}
375 getent passwd %{icinga_user} >/dev/null || %{_sbindir}/useradd -c "icinga" -s /sbin/nologin -r -d %{_localstatedir}/spool/%{name} -G %{icingacmd_group} -g %{icinga_group} %{icinga_user}
377 %if "%{_vendor}" == "suse"
379 %service_add_pre %{name}.service
383 %if "%{_vendor}" == "suse"
385 %verify_permissions -e %{_rundir}/%{name}/cmd
391 %if "%{_vendor}" == "suse"
393 %if 0%{?suse_version} >= 1310
394 %set_permissions %{_rundir}/%{name}/cmd
401 %if "%{_vendor}" == "suse"
404 %service_add_post %{name}.service
406 %fillup_and_insserv %{name}
409 # initial installation, enable default features
410 for feature in checker notification mainlog; do
411 ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
420 %systemd_post %{name}.service
422 /sbin/chkconfig --add %{name}
427 # initial installation, enable default features
428 for feature in checker notification mainlog; do
429 ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
440 %if "%{_vendor}" == "suse"
441 %if 0%{?using_systemd}
442 %service_del_postun %{name}.service
444 %restart_on_update %{name}
452 %systemd_postun_with_restart %{name}.service
454 if [ "$1" -ge "1" ]; then
455 /sbin/service %{name} condrestart >/dev/null 2>&1 || :
462 if [ "$1" = "0" ]; then
463 # deinstallation of the package - remove enabled features
464 rm -rf %{_sysconfdir}/%{name}/features-enabled
471 %if "%{_vendor}" == "suse"
474 %service_del_preun %{name}.service
476 %stop_on_removal %{name}
485 %systemd_preun %{name}.service
487 if [ "$1" = "0" ]; then
488 /sbin/service %{name} stop > /dev/null 2>&1 || :
489 /sbin/chkconfig --del %{name} || :
501 # initial installation, enable ido-mysql feature
502 ln -sf ../features-available/ido-mysql.conf %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf
508 if [ "$1" = "0" ]; then
509 # deinstallation of the package - remove feature
510 rm -f %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf
518 # initial installation, enable ido-pgsql feature
519 ln -sf ../features-available/ido-pgsql.conf %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf
525 if [ "$1" = "0" ]; then
526 # deinstallation of the package - remove feature
527 rm -f %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf
532 %post classicui-config
535 # initial installation, enable features
536 for feature in statusdata compatlog command; do
537 ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
543 %postun classicui-config
544 if [ "$1" = "0" ]; then
545 # deinstallation of the package - remove feature
546 for feature in statusdata compatlog command; do
547 rm -f %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
553 %if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
555 for selinuxvariant in %{selinux_variants}
557 /usr/sbin/semodule -s ${selinuxvariant} -i \
558 %{_datadir}/selinux/${selinuxvariant}/%{modulename}.pp &> /dev/null || :
560 /sbin/fixfiles -R icinga2-bin restore &> /dev/null || :
561 /sbin/fixfiles -R icinga2-common restore &> /dev/null || :
562 /sbin/semanage port -a -t icinga2_port_t -p tcp 5665 &> /dev/null || :
565 if [ $1 -eq 0 ] ; then
566 /sbin/semanage port -d -t icinga2_port_t -p tcp 5665 &> /dev/null || :
567 for selinuxvariant in %{selinux_variants}
569 /usr/sbin/semodule -s ${selinuxvariant} -r %{modulename} &> /dev/null || :
571 /sbin/fixfiles -R icinga2-bin restore &> /dev/null || :
572 /sbin/fixfiles -R icinga2-common restore &> /dev/null || :
578 %defattr(-,root,root,-)
582 %defattr(-,root,root,-)
583 %doc COPYING COPYING.Exceptions README.md NEWS AUTHORS ChangeLog
585 %dir %{_libdir}/%{name}/sbin
586 %{_libdir}/%{name}/sbin/%{name}
588 %exclude %{_datadir}/%{name}/include
589 %{_mandir}/man8/%{name}.8.gz
591 %attr(0750,%{icinga_user},%{icingacmd_group}) %{_localstatedir}/cache/%{name}
592 %attr(0750,%{icinga_user},%{icingacmd_group}) %dir %{_localstatedir}/log/%{name}
593 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/log/%{name}/crash
594 %attr(0750,%{icinga_user},%{icingacmd_group}) %dir %{_localstatedir}/log/%{name}/compat
595 %attr(0750,%{icinga_user},%{icingacmd_group}) %dir %{_localstatedir}/log/%{name}/compat/archives
596 %attr(0750,%{icinga_user},%{icinga_group}) %{_localstatedir}/lib/%{name}
598 %attr(0750,%{icinga_user},%{icingacmd_group}) %ghost %{_rundir}/%{name}
599 %attr(2750,%{icinga_user},%{icingacmd_group}) %ghost %{_rundir}/%{name}/cmd
602 %defattr(-,root,root,-)
603 %doc COPYING COPYING.Exceptions README.md NEWS AUTHORS ChangeLog
604 %exclude %{_libdir}/%{name}/libdb_ido_mysql*
605 %exclude %{_libdir}/%{name}/libdb_ido_pgsql*
606 %dir %{_libdir}/%{name}
607 %{_libdir}/%{name}/*.so*
610 %defattr(-,root,root,-)
611 %doc COPYING COPYING.Exceptions README.md NEWS AUTHORS ChangeLog tools/syntax
612 %attr(0750,%{icinga_user},%{icingacmd_group}) %dir %{_localstatedir}/log/%{name}
613 %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
614 %{_sysconfdir}/bash_completion.d/%{name}
616 %attr(644,root,root) %{_unitdir}/%{name}.service
618 %attr(755,root,root) %{_sysconfdir}/init.d/%{name}
620 %if "%{_vendor}" == "suse"
621 %{_sbindir}/rc%{name}
622 %{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
624 %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
626 %attr(0750,root,%{icinga_group}) %dir %{_sysconfdir}/%{name}
627 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/conf.d
628 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/features-available
629 %exclude %{_sysconfdir}/%{name}/features-available/ido-*.conf
630 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/features-enabled
631 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/repository.d
632 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/scripts
633 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/repository.d
634 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/zones.d
635 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/%{name}.conf
636 %config(noreplace) %attr(0640,root,%{icinga_group}) %{_sysconfdir}/%{name}/init.conf
637 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/constants.conf
638 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/zones.conf
639 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/conf.d/*.conf
640 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/features-available/*.conf
641 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/repository.d/*
642 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/zones.d/*
643 %config(noreplace) %{_sysconfdir}/%{name}/scripts/*
644 %dir %{_libexecdir}/%{name}
645 %{_libexecdir}/%{name}/prepare-dirs
646 %{_libexecdir}/%{name}/safe-reload
647 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}
648 %attr(0770,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}/perfdata
649 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}/tmp
650 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_datadir}/%{name}/include
651 %{_datadir}/%{name}/include
654 %defattr(-,root,root,-)
655 %{_datadir}/doc/%{name}
656 %docdir %{_datadir}/doc/%{name}
659 %defattr(-,root,root,-)
660 %doc COPYING COPYING.Exceptions README.md NEWS AUTHORS ChangeLog
661 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/features-available/ido-mysql.conf
662 %{_libdir}/%{name}/libdb_ido_mysql*
663 %{_datadir}/icinga2-ido-mysql
666 %defattr(-,root,root,-)
667 %doc COPYING COPYING.Exceptions README.md NEWS AUTHORS ChangeLog
668 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/features-available/ido-pgsql.conf
669 %{_libdir}/%{name}/libdb_ido_pgsql*
670 %{_datadir}/icinga2-ido-pgsql
672 %files classicui-config
673 %defattr(-,root,root,-)
674 %attr(0751,%{icinga_user},%{icinga_group}) %dir %{icingaclassicconfdir}
675 %config(noreplace) %{icingaclassicconfdir}/cgi.cfg
676 %config(noreplace) %{apacheconfdir}/icinga.conf
677 %config(noreplace) %attr(0640,root,%{apachegroup}) %{icingaclassicconfdir}/passwd
679 %if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
681 %defattr(-,root,root,0755)
683 %{_datadir}/selinux/*/%{modulename}.pp
688 %defattr(-,root,root,-)
689 %{_bindir}/icinga-studio
690 %{_datadir}/icinga2-studio
691 %{_datadir}/applications/icinga2-studio.desktop