A new user interface for you! Read more...

File openqrm.spec of Package openQRM

#
# spec file for package openqrm
#
# Copyright (c) 2013 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:           openqrm
Version:        4.5
Release:        0
Summary:        Next generation data-center management platform
License:        GPLv2
Group:          Networking/Admin
Url:            http://www.openqrm.com/
Source0:        %{name}-%{version}.tar.bz2
Source1:        adodb498.tgz
Source2:        busybox-1.11.3.tar.gz
Source3:        dropbear-0.52.tar.gz
Source4:        hwdata-knoppix_0.172-5.tar.gz
Source5:        hwsetup_1.2-7.tar.gz
Source6:        kudzu-knoppix_1.1.67-2.tar.gz
Source7:        kvm-nic-bios-1.0.tgz
Source8:        openqrm-api-docu-4.5.tgz
Source9:        openqrm-cloud-soap-api-4.5.1.4.tgz
Source10:       openqrm-plugin-sshterm-components-1.0.tgz
Source11:       partimage-0.6.4-static.tar.bz2
Source12:       veth-1.0.tar.gz
Source13:       %{name}-rpmlintrc
#Source14: %{name}.conf.default
#Source15: %{name}.conf.vhost
#Source16: %{name}.conf.nonsuse
Patch0:         %{name}-requirement.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1:         %{name}-softwarepackages.patch
BuildRequires:  bzip2
BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  pciutils-devel
BuildRequires:  rsync
BuildRequires:  tar
BuildRequires:  unzip
BuildRequires:  wget
BuildRequires:  zlib-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
#Requires : apache2, php5, php5-mysql, libphp-adodb, mysql-server, syslinux
Requires:       apache2 php5 php5-mysql mysql syslinux
%if 0%{?suse_version} > 1100
BuildRequires:  rpcbind
%else
BuildRequires:  portmap
%endif
%if 0%{?suse_version}
BuildRequires:  openSUSE-release
#BuildRequires: distribution-release
%endif
%if 0%{?suse_version} > 1020
BuildRequires:  fdupes
%endif
%if 0%{?suse_version}
BuildRequires:  apache2-devel
%endif
%if 0%{?fedora_version} ||  0%{?rhel_version} || 0%{?centos_version}
BuildRequires:  httpd-devel
%endif
%if 0%{?mandriva_version}
BuildRequires:  apache-devel
%endif
%if 0%{?suse_version}
%define apxs    /usr/sbin/apxs2
%else
%define apxs    /usr/sbin/apxs
%endif
%define apache_libexecdir       %(%{apxs} -q LIBEXECDIR)
%define apache_sysconfdir       %(%{apxs} -q SYSCONFDIR)

%description
OpenQRM is the next generation data-center management platform.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
cd src
export CFLAGS=%{optflags}
mkdir -p ../buildtmp/openqrm-build/adodb/source
mkdir -p ../buildtmp/openqrm-build/busybox/source
mkdir -p ../buildtmp/openqrm-build/dropbear/source
#mkdir -p ../buildtmp/openqrm-build/exec-port-monitor/source
mkdir -p ../buildtmp/openqrm-build/hwdata-knoppix/source
mkdir -p ../buildtmp/openqrm-build/hwsetup/source
#mkdir -p ../buildtmp/openqrm-build/initroot/source
mkdir -p ../buildtmp/openqrm-build/kudzu-knoppix/source
mkdir -p ../buildtmp/openqrm-build/kvm-nic-bios/source
mkdir -p ../buildtmp/openqrm-build/openqrm-api-docu/source
#mkdir -p ../buildtmp/openqrm-build/openqrm-client/source
mkdir -p ../buildtmp/openqrm-build/openqrm-cloud-soap-api/source
mkdir -p ../buildtmp/openqrm-build/partimage/source
mkdir -p ../buildtmp/openqrm-build/sshterm-component/source
mkdir -p ../buildtmp/openqrm-build/veth/source
cp -v %{SOURCE1} ../buildtmp/openqrm-build/adodb/source/.
cp -v %{SOURCE2} ../buildtmp/openqrm-build/busybox/source/.
cp -v %{SOURCE3} ../buildtmp/openqrm-build/dropbear/source/.
#cp -v %{SOURCE1} ../buildtmp/openqrm-build/exec-port-monitor/source/.
cp -v %{SOURCE4} ../buildtmp/openqrm-build/hwdata-knoppix/source/.
cp -v %{SOURCE5} ../buildtmp/openqrm-build/hwsetup/source/.
#cp -v %{SOURCE1} ../buildtmp/openqrm-build/initroot/source/.
cp -v %{SOURCE6} ../buildtmp/openqrm-build/kudzu-knoppix/source/.
cp -v %{SOURCE7} ../buildtmp/openqrm-build/kvm-nic-bios/source/.
cp -v %{SOURCE8} ../buildtmp/openqrm-build/openqrm-api-docu/source/.
#cp -v %{SOURCE1} ../buildtmp/openqrm-build/openqrm-client/source/.
cp -v %{SOURCE9} ../buildtmp/openqrm-build/openqrm-cloud-soap-api/source/.
cp -v %{SOURCE11} ../buildtmp/openqrm-build/partimage/source/.
cp -v %{SOURCE10} ../buildtmp/openqrm-build/sshterm-component/source/.
cp -v %{SOURCE12} ../buildtmp/openqrm-build/veth/source/.
#make %{?jobs:-j%jobs}
make

%install
#mkdir -p %{buildroot}%{_prefix}/lib
make install DESTINATION_DIR=%{buildroot}
# apache2 config
#%if 0%{?suse_version}
#mkdir -p %{buildroot}/%{apache_sysconfdir}/conf.d
#cp -avL %{SOURCE14} %{buildroot}/%{apache_sysconfdir}/conf.d/%{name}.conf
#mkdir -p %{buildroot}/%{apache_sysconfdir}/vhosts.d/conf.d
#cp -avL %{SOURCE15} %{buildroot}/%{apache_sysconfdir}/vhosts.d/conf.d/%{name}.conf
#%else
#mkdir -p %{buildroot}/%{apache_sysconfdir}/../conf.d
#cp -avL %{SOURCE16} %{buildroot}/%{apache_sysconfdir}/../conf.d/%{name}.conf
#%endif
#%if 0%{?suse_version} > 1020
#%fdupes -s %{buildroot}
#%endif
#%post
mkdir -p %{buildroot}%{_sysconfdir}/init.d
ln -sf /usr/lib/openqrm/etc/init.d/openqrm-client %{buildroot}%{_initddir}/openqrm-client
ln -sf /usr/lib/openqrm/etc/init.d/openqrm-server %{buildroot}%{_initddir}/openqrm-server
#ln -sf /usr/lib/openqrm/etc/init.d/openqrm-server.postinstall %{buildroot}%{_initddir}/openqrm-server.postinstall
#ln -sf /usr/lib/openqrm/etc/init.d/openqrm-server.preremove %{buildroot}%{_initddir}/openqrm-server.preremove
# added where links
ln -sf /usr/lib/openqrm/plugins/aoe-storage/etc/init.d/openqrm-plugin-aoe-storage %{buildroot}%{_initddir}/openqrm-plugin-aoe-storage
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/aoe-storage
ln -sf /usr/lib/openqrm/plugins/citrix/etc/init.d/openqrm-plugin-citrix %{buildroot}%{_initddir}/openqrm-plugin-citrix
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/citrix
ln -sf /usr/lib/openqrm/plugins/cloud/etc/init.d/openqrm-plugin-cloud %{buildroot}%{_initddir}/openqrm-plugin-cloud
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/cloud
ln -sf /usr/lib/openqrm/plugins/dhcpd/etc/init.d/openqrm-plugin-dhcpd %{buildroot}%{_initddir}/openqrm-plugin-dhcpd
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/dhcpd
ln -sf /usr/lib/openqrm/plugins/dns/etc/init.d/openqrm-plugin-dns %{buildroot}%{_initddir}/openqrm-plugin-dns
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/dns
ln -sf /usr/lib/openqrm/plugins/highavailability/etc/init.d/openqrm-plugin-highavailability %{buildroot}%{_initddir}/openqrm-plugin-highavailability
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/highavailability
ln -sf /usr/lib/openqrm/plugins/image-shelf/etc/init.d/openqrm-plugin-image-shelf %{buildroot}%{_initddir}/openqrm-plugin-image-shelf
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/image-shelf
ln -sf /usr/lib/openqrm/plugins/iscsi-storage/etc/init.d/openqrm-plugin-iscsi-storage %{buildroot}%{_initddir}/openqrm-plugin-iscsi-storage
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/iscsi-storage
ln -sf /usr/lib/openqrm/plugins/kvm/etc/init.d/openqrm-plugin-kvm %{buildroot}%{_initddir}/openqrm-plugin-kvm
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/kvm
ln -sf /usr/lib/openqrm/plugins/linux-vserver/etc/init.d/openqrm-plugin-linux-vserver %{buildroot}%{_initddir}/openqrm-plugin-linux-vserver
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/linux-vserver
ln -sf /usr/lib/openqrm/plugins/linuxcoe/etc/init.d/openqrm-plugin-linuxcoe %{buildroot}%{_initddir}/openqrm-plugin-linuxcoe
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/linuxcoe
ln -sf /usr/lib/openqrm/plugins/local-server/etc/init.d/openqrm-plugin-local-server %{buildroot}%{_initddir}/openqrm-plugin-local-server
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/local-server
ln -sf /usr/lib/openqrm/plugins/local-storage/etc/init.d/openqrm-plugin-local-storage %{buildroot}%{_initddir}/openqrm-plugin-local-storage
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/local-storage
ln -sf /usr/lib/openqrm/plugins/lvm-storage/etc/init.d/openqrm-plugin-lvm-storage %{buildroot}%{_initddir}/openqrm-plugin-lvm-storage
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/lvm-storage
ln -sf /usr/lib/openqrm/plugins/nagios2/etc/init.d/openqrm-plugin-nagios2 %{buildroot}%{_initddir}/openqrm-plugin-nagios2
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/nagios2
ln -sf /usr/lib/openqrm/plugins/nagios3/etc/init.d/openqrm-plugin-nagios3 %{buildroot}%{_initddir}/openqrm-plugin-nagios3
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/nagios3
ln -sf /usr/lib/openqrm/plugins/netapp-storage/etc/init.d/openqrm-plugin-netapp-storage %{buildroot}%{_initddir}/openqrm-plugin-netapp-storage
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/netapp-storage
ln -sf /usr/lib/openqrm/plugins/nfs-storage/etc/init.d/openqrm-plugin-nfs-storage %{buildroot}%{_initddir}/openqrm-plugin-nfs-storage
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/nfs-storage
ln -sf /usr/lib/openqrm/plugins/puppet/etc/init.d/openqrm-plugin-puppet %{buildroot}%{_initddir}/openqrm-plugin-puppet
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/puppet
ln -sf /usr/lib/openqrm/plugins/sshterm/etc/init.d/openqrm-plugin-sshterm %{buildroot}%{_initddir}/openqrm-plugin-sshterm
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/sshterm
ln -sf /usr/lib/openqrm/plugins/tftpd/etc/init.d/openqrm-plugin-tftpd %{buildroot}%{_initddir}/openqrm-plugin-tftpd
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/tftpd
ln -sf /usr/lib/openqrm/plugins/vmware-esx/etc/init.d/openqrm-plugin-vmware-esx %{buildroot}%{_initddir}/openqrm-plugin-vmware-esx
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/vmware-esx
ln -sf /usr/lib/openqrm/plugins/vmware-server/etc/init.d/openqrm-plugin-vmware-server %{buildroot}%{_initddir}/openqrm-plugin-vmware-server
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/vmware-server
ln -sf /usr/lib/openqrm/plugins/vmware-server2/etc/init.d/openqrm-plugin-vmware-server2 %{buildroot}%{_initddir}/openqrm-plugin-vmware-server2
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/vmware-server2
ln -sf /usr/lib/openqrm/plugins/windows/etc/init.d/openqrm-plugin-windows %{buildroot}%{_initddir}/openqrm-plugin-windows
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/windows
ln -sf /usr/lib/openqrm/plugins/xen/etc/init.d/openqrm-plugin-xen %{buildroot}%{_initddir}/openqrm-plugin-xen
#mkdir -p %{buildroot}%{_localstatedir}/www/openqrm/base/plugins/xen
%if 0%{?suse_version} > 1020
%fdupes -s %{buildroot}
%endif

#%preun
##/etc/init.d/openqrm-plugin-aoe-storage stop
#rm /etc/init.d/openqrm-client
#rm /etc/init.d/openqrm-server
#rm /etc/init.d/openqrm-server.postinstall
#rm /etc/init.d/openqrm-server.preremove

%files
%defattr(-,root,root)
%dir %{_prefix}/lib/openqrm
%dir %{_prefix}/lib/openqrm/plugins
%{_prefix}/lib/openqrm/bin
%{_prefix}/lib/openqrm/etc
%{_prefix}/lib/openqrm/include
%{_prefix}/lib/openqrm/sbin
%{_prefix}/lib/openqrm/tftpboot
%{_prefix}/lib/openqrm/web
#%if 0%{?suse_version}
#%dir %{apache_sysconfdir}/conf.d
#%config (noreplace) %{apache_sysconfdir}/conf.d/%{name}.conf
#%dir %{apache_sysconfdir}/vhosts.d/conf.d
#%config (noreplace) %{apache_sysconfdir}/vhosts.d/conf.d/%{name}.conf
#%else
#%dir %{apache_sysconfdir}/../conf.d
#%config (noreplace) %{apache_sysconfdir}/../conf.d/%{name}.conf
#%endif
%{_sysconfdir}/init.d/openqrm-client
%{_sysconfdir}/init.d/openqrm-server
#/etc/init.d/openqrm-server.postinstall
#/etc/init.d/openqrm-server.preremove

%package plugin-aoe-storage
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-aoe-storage
OpenQRM is the next generation data-center management platform.
%files plugin-aoe-storage
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/aoe-storage
#
#%post plugin-aoe-storage
#ln -sf %{_prefix}/lib/openqrm/plugins/aoe-storage/etc/init.d/openqrm-plugin-aoe-storage %{_sysconfdir}/init.d/openqrm-plugin-aoe-storage
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/aoe-storage
#
#%preun plugin-aoe-storage
##/etc/init.d/openqrm-plugin-aoe-storage stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-aoe-storage
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/aoe-storage
%{_sysconfdir}/init.d/openqrm-plugin-aoe-storage
#%dir %{_localstatedir}/www/openqrm/base/plugins/aoe-storage

%package plugin-citrix
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-citrix
OpenQRM is the next generation data-center management platform.
%files plugin-citrix
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/citrix
#
#%post plugin-citrix
#ln -sf %{_prefix}/lib/openqrm/plugins/citrix/etc/init.d/openqrm-plugin-citrix %{_sysconfdir}/init.d/openqrm-plugin-citrix
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/citrix
#
#%preun plugin-citrix
##/etc/init.d/openqrm-plugin-citrix stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-citrix
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/citrix
%{_sysconfdir}/init.d/openqrm-plugin-citrix
#%dir %{_localstatedir}/www/openqrm/base/plugins/citrix

%package plugin-cloud
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm
Requires:       screen

%description plugin-cloud
OpenQRM is the next generation data-center management platform.
%files plugin-cloud
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/cloud
#
#%post plugin-cloud
#ln -sf %{_prefix}/lib/openqrm/plugins/cloud/etc/init.d/openqrm-plugin-cloud %{_sysconfdir}/init.d/openqrm-plugin-cloud
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/cloud
#
#%preun plugin-cloud
##/etc/init.d/openqrm-plugin-cloud stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-cloud
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/cloud
%{_sysconfdir}/init.d/openqrm-plugin-cloud
#%dir %{_localstatedir}/www/openqrm/base/plugins/cloud

%package plugin-dhcpd
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       dhcp-server
Requires:       openqrm

%description plugin-dhcpd
OpenQRM is the next generation data-center management platform.
%files plugin-dhcpd
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/dhcpd
#
#%post plugin-dhcpd
#ln -sf %{_prefix}/lib/openqrm/plugins/dhcpd/etc/init.d/openqrm-plugin-dhcpd %{_sysconfdir}/init.d/openqrm-plugin-dhcpd
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/dhcpd
#
#%preun plugin-dhcpd
##/etc/init.d/openqrm-plugin-dhcpd stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-dhcpd
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/dhcpd
%{_sysconfdir}/init.d/openqrm-plugin-dhcpd
#%dir %{_localstatedir}/www/openqrm/base/plugins/dhcpd

%package plugin-dns
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-dns
OpenQRM is the next generation data-center management platform.
%files plugin-dns
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/dns
#
#%post plugin-dns
#ln -sf %{_prefix}/lib/openqrm/plugins/dns/etc/init.d/openqrm-plugin-dns %{_sysconfdir}/init.d/openqrm-plugin-dns
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/dns
#
#%preun plugin-dns
##/etc/init.d/openqrm-plugin-dns stop
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/dns
%{_sysconfdir}/init.d/openqrm-plugin-dns
#%dir %{_localstatedir}/www/openqrm/base/plugins/dns

%package plugin-highavailability
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-highavailability
OpenQRM is the next generation data-center management platform.
%files plugin-highavailability
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/highavailability
#
#%post plugin-highavailability
#ln -sf %{_prefix}/lib/openqrm/plugins/highavailability/etc/init.d/openqrm-plugin-highavailability %{_sysconfdir}/init.d/openqrm-plugin-highavailability
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/highavailability
#
#%preun plugin-highavailability
##/etc/init.d/openqrm-plugin-highavailability stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-highavailability
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/highavailability
%{_sysconfdir}/init.d/openqrm-plugin-highavailability
#%dir %{_localstatedir}/www/openqrm/base/plugins/highavailability

%package plugin-image-shelf
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-image-shelf
OpenQRM is the next generation data-center management platform.
%files plugin-image-shelf
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/image-shelf
#
#%post plugin-image-shelf
#ln -sf %{_prefix}/lib/openqrm/plugins/image-shelf/etc/init.d/openqrm-plugin-image-shelf %{_sysconfdir}/init.d/openqrm-plugin-image-shelf
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/image-shelf
#
#%preun plugin-image-shelf
##/etc/init.d/openqrm-plugin-image-shelf stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-image-shelf
#rm -fr %{_localstatedir}/www/openqrm/plugins/image-shelf
%{_sysconfdir}/init.d/openqrm-plugin-image-shelf
#%dir %{_localstatedir}/www/openqrm/base/plugins/image-shelf

%package plugin-iscsi-storage
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-iscsi-storage
OpenQRM is the next generation data-center management platform.
%files plugin-iscsi-storage
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/iscsi-storage
#
#%post plugin-iscsi-storage
#ln -sf %{_prefix}/lib/openqrm/plugins/iscsi-storage/etc/init.d/openqrm-plugin-iscsi-storage %{_sysconfdir}/init.d/openqrm-plugin-iscsi-storage
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/iscsi/storage
#
#%preun plugin-iscsi-storage
##/etc/init.d/openqrm-plugin-iscsi-storage stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-iscsi-storage
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/iscsi-storage
%{_sysconfdir}/init.d/openqrm-plugin-iscsi-storage
#%dir %{_localstatedir}/www/openqrm/base/plugins/iscsi-storage

%package plugin-kvm
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-kvm
OpenQRM is the next generation data-center management platform.
%files plugin-kvm
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/kvm
#
#%post plugin-kvm
#ln -sf %{_prefix}/lib/openqrm/plugins/kvm/etc/init.d/openqrm-plugin-kvm %{_sysconfdir}/init.d/openqrm-plugin-kvm
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/kvm
#
#%preun plugin-kvm
##/etc/init.d/openqrm-plugin-kvm stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-kvm
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/kvm
%{_sysconfdir}/init.d/openqrm-plugin-kvm
#%dir %{_localstatedir}/www/openqrm/base/plugins/kvm

%package plugin-linux-vserver
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-linux-vserver
OpenQRM is the next generation data-center management platform.
%files plugin-linux-vserver
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/linux-vserver
#
#%post plugin-linux-vserver
#ln -sf %{_prefix}/lib/openqrm/plugins/linux-vserver/etc/init.d/openqrm-plugin-linux-vserver %{_sysconfdir}/init.d/openqrm-plugin-linux-vserver
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/linux-vserver
#
#%preun plugin-linux-vserver
##/etc/init.d/openqrm-plugin-linux-vserver
#rm %{_sysconfdir}/init.d/openqrm-plugin-linux-vserver
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/linux-vserver
%{_sysconfdir}/init.d/openqrm-plugin-linux-vserver
#%dir %{_localstatedir}/www/openqrm/base/plugins/linux-vserver

%package plugin-linuxcoe
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-linuxcoe
OpenQRM is the next generation data-center management platform.
%files plugin-linuxcoe
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/linuxcoe
#
#%post plugin-linuxcoe
#ln -sf %{_prefix}/lib/openqrm/plugins/linuxcoe/etc/init.d/openqrm-plugin-linuxcoe %{_sysconfdir}/init.d/openqrm-plugin-linuxcoe
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/linuxcoe
#
#%preun plugin-linuxcoe
##/etc/init.d/openqrm-plugin-linuxcoe
#rm %{_sysconfdir}/init.d/openqrm-plugin-linuxcoe
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/linuxcoe
%{_sysconfdir}/init.d/openqrm-plugin-linuxcoe
#%dir %{_localstatedir}/www/openqrm/base/plugins/linuxcoe

%package plugin-local-server
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-local-server
OpenQRM is the next generation data-center management platform.
%files plugin-local-server
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/local-server
#
#%post plugin-local-server
#ln -sf %{_prefix}/lib/openqrm/plugins/local-server/etc/init.d/openqrm-plugin-local-server %{_sysconfdir}/init.d/openqrm-plugin-local-server
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/local-server
#
#%preun plugin-local-server
##/etc/init.d/openqrm-plugin-local-server stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-local-server
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/local-server
%{_sysconfdir}/init.d/openqrm-plugin-local-server
#%dir %{_localstatedir}/www/openqrm/base/plugins/local-server

%package plugin-local-storage
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-local-storage
OpenQRM is the next generation data-center management platform.
%files plugin-local-storage
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/local-storage
#
#%post plugin-local-storage
#ln -sf %{_prefix}/lib/openqrm/plugins/local-storage/etc/init.d/openqrm-plugin-local-storage %{_sysconfdir}/init.d/openqrm-plugin-local-storage
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/local-storage
#
#%preun plugin-local-storage
##/etc/init.d/openqrm-plugin-local-storage stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-local-storage
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/local-storage
%{_sysconfdir}/init.d/openqrm-plugin-local-storage
#%dir %{_localstatedir}/www/openqrm/base/plugins/local-storage

%package plugin-lvm-storage
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-lvm-storage
OpenQRM is the next generation data-center management platform.
%files plugin-lvm-storage
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/lvm-storage
#
#%post plugin-lvm-storage
#ln -sf %{_prefix}/lib/openqrm/plugins/lvm-storage/etc/init.d/openqrm-plugin-lvm-storage %{_sysconfdir}/init.d/openqrm-plugin-lvm-storage
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/lvm-storage
#
#%preun plugin-lvm-storage
##/etc/init.d/openqrm-plugin-lvm-storage stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-lvm-storage
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/lvm-storage
%{_sysconfdir}/init.d/openqrm-plugin-lvm-storage
#%dir %{_localstatedir}/www/openqrm/base/plugins/lvm-storage

%package plugin-nagios2
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-nagios2
OpenQRM is the next generation data-center management platform.
%files plugin-nagios2
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/nagios2
#
#%post plugin-nagios2
##ln -sfv %{_prefix}/lib/openqrm/plugins/nagios2/etc/init.d/openqrm-plugin-nagios2 %{_sysconfdir}/init.d/openqrm-plugin/nagios2
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/nagios2
#
#%preun plugin-nagios2
##/etc/init.d/openqrm-plugin-nagios2 stop
##rm %{_sysconfdir}/init.d/openqrm-plugin-nagios2
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/nagios2
%{_sysconfdir}/init.d/openqrm-plugin-nagios2
#%dir %{_localstatedir}/www/openqrm/base/plugins/nagios2

%package plugin-nagios3
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-nagios3
OpenQRM is the next generation data-center management platform.
%files plugin-nagios3
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/nagios3
#
#%post plugin-nagios3
##ln -sf %{_prefix}/lib/openqrm/plugins/nagios3/etc/init.d/openqrm-plugin-nagios3 %{_sysconfdir}/init.d/openqrm-plugin/nagios3
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/nagios3
#
#%preun plugin-nagios3
##/etc/init.d/openqrm-plugin-nagios3 stop
##rm %{_sysconfdir}/init.d/openqrm-plugin-nagios3
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/nagios3
%{_sysconfdir}/init.d/openqrm-plugin-nagios3
#%dir %{_localstatedir}/www/openqrm/base/plugins/nagios3

%package plugin-netapp-storage
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-netapp-storage
OpenQRM is the next generation data-center management platform.
%files plugin-netapp-storage
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/netapp-storage
#
#%post plugin-netapp-storage
#ln -sf %{_prefix}/lib/openqrm/plugins/netapp-storage/etc/init.d/openqrm-plugin-netapp-storage %{_sysconfdir}/init.d/openqrm-plugin-netapp-storage
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/netapp-storage
#
#%preun plugin-netapp-storage
##/etc/init.d/openqrm-plugin-netapp-storage stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-netapp-storage
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/netapp-storage
%{_sysconfdir}/init.d/openqrm-plugin-netapp-storage
#%dir %{_localstatedir}/www/openqrm/base/plugins/netapp-storage

%package plugin-nfs-storage
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-nfs-storage
OpenQRM is the next generation data-center management platform.
%files plugin-nfs-storage
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/nfs-storage
#
#%post plugin-nfs-storage
#ln -sf %{_prefix}/lib/openqrm/plugins/nfs-storage/etc/init.d/openqrm-plugin-nfs-storage %{_sysconfdir}/init.d/openqrm-plugin-nfs-storage
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/nfs-storage
#
#%preun plugin-nfs-storage
##/etc/init.d/openqrm-plugin-nfs-storage stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-nfs-storage
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/nfs-storage
%{_sysconfdir}/init.d/openqrm-plugin-nfs-storage
#%dir %{_localstatedir}/www/openqrm/base/plugins/nfs-storage

%package plugin-puppet
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-puppet
OpenQRM is the next generation data-center management platform.
%files plugin-puppet
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/puppet
#
#%post plugin-puppet
#ln -sf %{_prefix}/lib/openqrm/plugins/puppet/etc/init.d/openqrm-plugin-puppet %{_sysconfdir}/init.d/openqrm-plugin-puppet
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/puppet
#
#%preun plugin-puppet
##/etc/init.d/openqrm-plugin-puppet stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-puppet
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/puppet
%{_sysconfdir}/init.d/openqrm-plugin-puppet
#%dir %{_localstatedir}/www/openqrm/base/plugins/puppet

%package plugin-sshterm
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-sshterm
OpenQRM is the next generation data-center management platform.
%files plugin-sshterm
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/sshterm
#
#%post plugin-sshterm
#ln -sf %{_prefix}/lib/openqrm/plugins/sshterm/etc/init.d/openqrm-plugin-sshterm %{_sysconfdir}/init.d/openqrm-plugin-sshterm
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/sshterm
#
#%preun plugin-sshterm
##/etc/init.d/openqrm-plugin-sshterm stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-sshterm
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/sshterm
%{_sysconfdir}/init.d/openqrm-plugin-sshterm
#%dir %{_localstatedir}/www/openqrm/base/plugins/sshterm

%package plugin-tftpd
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-tftpd
OpenQRM is the next generation data-center management platform.
%files plugin-tftpd
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/tftpd
#
#%post plugin-tftpd
#ln -sf %{_prefix}/lib/openqrm/plugins/tftpd/etc/init.d/openqrm-plugin-tftpd %{_sysconfdir}/init.d/openqrm-plugin-tftpd
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/tftpd
#
#%preun plugin-tftpd
##/etc/init.d/openqrm-plugin-tftpd stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-tftpd
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/tftpd
%{_sysconfdir}/init.d/openqrm-plugin-tftpd
#%dir %{_localstatedir}/www/openqrm/base/plugins/tftpd

%package plugin-vmware-esx
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-vmware-esx
OpenQRM is the next generation data-center management platform.
%files plugin-vmware-esx
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/vmware-esx
#
#%post plugin-vmware-esx
#ln -sf %{_prefix}/lib/openqrm/plugins/vmware-esx/etc/init.d/openqrm-plugin-vmware-esx %{_sysconfdir}/init.d/openqrm-plugin-vmware-esx
#mkdir -p %{_localstatedir}/www/openqrm/base/plugins/vmware-esx
#
#%preun plugin-vmware-esx
##/etc/init.d/openqrm-plugin-vmware-esx stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-vmware-esx
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/vmware-esx
%{_sysconfdir}/init.d/openqrm-plugin-vmware-esx
#%dir %{_localstatedir}/www/openqrm/base/plugins/vmware-esx

%package plugin-vmware-server
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-vmware-server
OpenQRM is the next generation data-center management platform.
%files plugin-vmware-server
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/vmware-server
#
#%post plugin-vmware-server
#ln -sf %{_prefix}/lib/openqrm/plugins/vmware-server/etc/init.d/openqrm-plugin-vmware-server %{_sysconfdir}/init.d/openqrm-plugin-vmware-server
#mkdir -p %{_sysconfdir}/init.d/openqrm/base/plugins/vmware-server
#
#%preun plugin-vmware-server
##/etc/init.d/openqrm-plugin-vmware-server stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-vmware-server
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/vmware-server
%{_sysconfdir}/init.d/openqrm-plugin-vmware-server
#%dir %{_localstatedir}/www/openqrm/base/plugins/vmware-server

%package plugin-vmware-server2
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-vmware-server2
OpenQRM is the next generation data-center management platform.
%files plugin-vmware-server2
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/vmware-server2
#
#%post plugin-vmware-server2
#ln -sf %{_prefix}/lib/openqrm/plugins/vmware-server2/etc/init.d/openqrm-plugin-vmware-server2 %{_sysconfdir}/init.d/openqrm-plugin-vmware-server2
#mkdir -p %{_sysconfdir}/init.d/openqrm/base/plugins/vmware-server2
#
#%preun plugin-vmware-server2
##/etc/init.d/openqrm-plugin-vmware-server2 stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-vmware-server2
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/openqrm-plugin-vmware-server2
%{_sysconfdir}/init.d/openqrm-plugin-vmware-server2
#%dir %{_localstatedir}/www/openqrm/base/plugins/vmware-server2

%package plugin-windows
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-windows
OpenQRM is the next generation data-center management platform.
%files plugin-windows
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/windows
#
#%post plugin-windows
#ln -sf %{_prefix}/lib/openqrm/plugins/windows/etc/init.d/openqrm-plugin-windows %{_sysconfdir}/init.d/openqrm-plugin-windows
#mkdir -p %{_sysconfdir}/init.d/openqrm/base/plugins/windows
#
#%preun plugin-windows
##/etc/init.d/openqrm-plugin-windows stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-windows
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/windows
%{_sysconfdir}/init.d/openqrm-plugin-windows
#%dir %{_localstatedir}/www/openqrm/base/plugins/windows

%package plugin-xen
Summary:        Next generation data-center management platform
Group:          Networking/Admin
Requires:       openqrm

%description plugin-xen
OpenQRM is the next generation data-center management platform.
%files  plugin-xen
%defattr(-,root,root)
%{_prefix}/lib/openqrm/plugins/xen
#
#%post plugin-xen
#ln -sf %{_prefix}/lib/openqrm/plugins/xen/etc/init.d/openqrm-plugin-xen %{_sysconfdir}/init.d/openqrm-plugin-xen
#mkdir -p %{_sysconfdir}/init.d/openqrm/base/plugins/xen
#
#%preun plugin-xen
##/etc/init.d/openqrm-plugin-xen stop
#rm %{_sysconfdir}/init.d/openqrm-plugin-xen
#rm -fr %{_localstatedir}/www/openqrm/base/plugins/xen
%{_sysconfdir}/init.d/openqrm-plugin-xen
#%dir %{_localstatedir}/www/openqrm/base/plugins/xen

%changelog