Search
j0ke.net Open Build Service
>
Projects
>
virtualization
:
Cloud
:
OpenNebula
>
opennebula
> opennebula.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File opennebula.spec of Package opennebula (Revision 5)
Currently displaying revision
5
,
show latest
# # spec file for package opennebula (Version 2.2.1) # # Copyright (c) 2010 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: opennebula Version: 2.2.1 Release: 1 License: Apache License version 2.0 Summary: Elastic Utility Computing Architecture URL: http://www.opennebula.org Group: Productivity/Networking/System Source: %{name}-%{version}.tar.bz2 Patch: openneb_64bitlib.patch Patch1: openneb_creatPIDdir.patch Patch2: openneb_LSBhead.patch BuildRequires: post-build-checks BuildRequires: gcc-c++ BuildRequires: libcurl-devel BuildRequires: libxml2-devel BuildRequires: libxmlrpc-c-devel >= 1.06 BuildRequires: libopenssl-devel >= 0.9 BuildRequires: openssh BuildRequires: pkg-config BuildRequires: pwgen BuildRequires: ruby >= 1.8.6 BuildRequires: scons >= 0.97 BuildRequires: sqlite3-devel >= 3.5.2 BuildRequires: xmlrpc-c >= 1.06 BuildRequires: mysql-devel %if 0%{?suse_version} > 1020 BuildRequires: fdupes %endif Requires: openssl >= 0.9 Requires: ruby >= 1.8.6 Requires: rubygem-libxml-ruby Requires: openssh Requires: pwgen Requires: sqlite3 >= 3.5.2 Requires: rubygem-nokogiri Requires: rubygem-sqlite3 Requires: xmlrpc-c >= 1.06 Recommends: nfs-kernel-server Recommends: ypserv BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description OpenNebula.org is an open-source project aimed at building the industry standard open source cloud computing tool to manage the complexity and heterogeneity of distributed data center infrastructures. The OpenNebula.org Project is maintained and driven by the community. The OpenNebula.org community has thousands of users, contributors, and supporters, who interact through various online email lists, blogs and innovative projects to support each other. %package devel Summary: Development files for %{name} Group: Development/Libraries/Other Requires: %{name} = %{version} %description devel The %{name} devel package contains man pages and examples. %prep %setup -q %patch %patch1 %patch2 %build scons sqlite_db=/usr xmlrpc=/usr %install export DESTDIR=%{buildroot} install.sh # Move the initscript %{__mkdir} %{buildroot}/etc/init.d %{__mv} %{buildroot}/usr/bin/one %{buildroot}/etc/init.d %if 0%{?suse_version} > 1020 %fdupes $RPM_BUILD_ROOT/var/lib/one %fdupes $RPM_BUILD_ROOT/usr/lib/one %endif %preun %stop_on_removal one %postun %insserv_cleanup %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENSE NOTICE README %dir %{_sysconfdir}/one %dir %{_sysconfdir}/one/auth %config %{_sysconfdir}/one/auth/auth.conf %config %{_sysconfdir}/one/auth/auth_mad %config %{_sysconfdir}/one/defaultrc %dir %{_sysconfdir}/one/ec2query_templates %config %{_sysconfdir}/one/ec2query_templates/m1.small.erb %config %{_sysconfdir}/one/econe.conf %dir %{_sysconfdir}/one/hm %config %{_sysconfdir}/one/hm/hmrc %dir %{_sysconfdir}/one/im_ec2 %config %{_sysconfdir}/one/im_ec2/im_ec2.conf %config %{_sysconfdir}/one/im_ec2/im_ec2rc %dir %{_sysconfdir}/one/im_kvm %dir %{_sysconfdir}/one/im_xen %config %{_sysconfdir}/one/occi-server.conf %dir %{_sysconfdir}/one/occi_templates %config %{_sysconfdir}/one/occi_templates/*.erb %config %{_sysconfdir}/one/oned.conf %dir %{_sysconfdir}/one/tm_dummy %config %{_sysconfdir}/one/tm_dummy/tm_dummy.conf %config %{_sysconfdir}/one/tm_dummy/tm_dummyrc %dir %{_sysconfdir}/one/tm_lvm %config %{_sysconfdir}/one/tm_lvm/tm_lvm.conf %config %{_sysconfdir}/one/tm_lvm/tm_lvmrc %dir %{_sysconfdir}/one/tm_nfs %config %{_sysconfdir}/one/tm_nfs/tm_nfs.conf %config %{_sysconfdir}/one/tm_nfs/tm_nfsrc %dir %{_sysconfdir}/one/tm_ssh %config %{_sysconfdir}/one/tm_ssh/tm_ssh.conf %config %{_sysconfdir}/one/tm_ssh/tm_sshrc %dir %{_sysconfdir}/one/vmm_ec2 %config %{_sysconfdir}/one/vmm_ec2/vmm_ec2.conf %config %{_sysconfdir}/one/vmm_ec2/vmm_ec2rc %dir %{_sysconfdir}/one/vmm_sh %config %{_sysconfdir}/one/vmm_sh/vmm_shrc %dir %{_sysconfdir}/one/vmm_ssh %config %{_sysconfdir}/one/vmm_ssh/vmm_ssh_kvm.conf %config %{_sysconfdir}/one/vmm_ssh/vmm_ssh_xen.conf %config %{_sysconfdir}/one/vmm_ssh/vmm_sshrc %{_datadir}/one/hooks/* %{_bindir}/* /usr/lib/one/* /var/lib/one/* /etc/init.d/one %dir /usr/lib/one %dir /var/lib/one %dir %{_datadir}/one %dir %{_datadir}/one/hooks %files devel %defattr(-,root,root) %{_mandir}/man8/* %{_datadir}/one/examples/* %dir %{_datadir}/one/examples %pre # cloud administrator setup if ! getent passwd oneadmin &> /dev/null ; then echo "Creating oneadmin user" /usr/sbin/groupadd cloud ONEPWD=$(/usr/bin/pwgen 40 1) /usr/sbin/useradd -c "OpenNebula Cloud Admin" -d /var/lib/one -g cloud -p $ONEPWD oneadmin fi %post if [ ! -d /var/lib/one/.ssh ] ; then %{__mkdir} /var/lib/one/.ssh fi # Setup the ssh infrastructure for the cloud if [ ! -f /var/lib/one/.ssh/id_rsa ]; then /usr/bin/ssh-keygen -q -t rsa -f /var/lib/one/.ssh/id_rsa -N '' fi /bin/cp /var/lib/one/.ssh/id_rsa.pub /var/lib/one/.ssh/authorized_keys echo "Host *" >> /var/lib/one/.ssh/config echo " StrictHostKeyChecking no" >> /var/lib/one/.ssh/config # set the ownership of the management scripts /bin/chown -R oneadmin:cloud /var/lib/one if [ ! -d /var/log/one ]; then %{__mkdir} /var/log/one fi if [ ! -d /var/lock/one ]; then %{__mkdir} /var/lock/one fi /bin/chown -R oneadmin:cloud /var/log/one /bin/chown -R oneadmin:cloud /var/lock/one %changelog * Wed Dec 22 2010 Robert Schweikert <rschweikert@novell.com> - - Initial build.