Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Cloud:OpenStack:Kilo
openstack-sahara
openstack-sahara.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openstack-sahara.spec of Package openstack-sahara
# # spec file for package openstack-sahara # # Copyright (c) 2015 SUSE LINUX 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/ # %define component sahara %define groupname %{component} %define username %{component} %define version_unconverted 2015.1.3.dev3 Name: openstack-%{component} Version: 2015.1.3~a0~dev3 Release: 0 Summary: OpenStack Data Processing (Sahara) License: Apache-2.0 Group: System/Management Url: https://launchpad.net/sahara Source: http://tarballs.openstack.org/sahara/sahara-stable-kilo.tar.gz Source1: %{name}.init Source2: %{name}.logrotate %if 0%{?suse_version} > 1230 Source10: %name.conf BuildRequires: systemd %endif %if 0%{?suse_version} && 0%{?suse_version} <= 1110 BuildRequires: -brp-check-suse %endif BuildRequires: crudini BuildRequires: fdupes BuildRequires: openstack-suse-macros BuildRequires: python-devel BuildRequires: python-pbr >= 0.5.21 # Documentation requirements: BuildRequires: python-Babel >= 1.3 BuildRequires: python-Sphinx BuildRequires: python-oslosphinx BuildRequires: python-sphinxcontrib-httpdomain Requires: logrotate Requires: python >= 2.6.8 Requires: python-sahara = %{version} Requires(pre): pwdutils BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else BuildArch: noarch %endif %description Sahara project aims to provide users with simple means to provision a Hadoop cluster at OpenStack by specifying several parameters like Hadoop version, cluster topology, nodes hardware details and a few more. %package -n python-sahara Summary: OpenStack Data Processing (Sahara) - Python module Group: Development/Languages/Python Requires: python >= 2.6.8 Requires: python-Babel >= 1.3 Requires: python-Flask >= 0.10 Requires: python-SQLAlchemy >= 0.9.7 Requires: python-WebOb >= 1.2.3 Requires: python-alembic >= 0.7.2 Requires: python-cinderclient >= 1.1.0 Requires: python-eventlet >= 0.16.1 Requires: python-heatclient >= 0.3.0 Requires: python-iso8601 >= 0.1.9 Requires: python-jsonschema >= 2.0.0 Requires: python-keystoneclient >= 1.2.0 Requires: python-keystonemiddleware >= 1.5.0 Requires: python-kombu >= 2.4.8 Requires: python-lockfile >= 0.8 Requires: python-neutronclient >= 2.4.0 Requires: python-novaclient >= 2.22.0 Requires: python-oslo.config >= 1.9.3 Requires: python-oslo.db >= 1.7.0 Requires: python-oslo.i18n >= 1.5.0 Requires: python-oslo.messaging >= 1.8.0 Requires: python-oslo.log >= 1.0.0 Requires: python-oslo.middleware >= 1.0.0 Requires: python-oslo.policy >= 0.3.1 Requires: python-oslo.rootwrap >= 1.6.0 Requires: python-oslo.serialization >= 1.4.0 Requires: python-oslo.utils >= 1.4.0 Requires: python-paramiko >= 1.13.0 Requires: python-pbr >= 0.6 Requires: python-posix_ipc Requires: python-requests >= 2.2.0 Requires: python-saharaclient >= 0.8.0 Requires: python-six >= 1.9.0 Requires: python-sqlalchemy-migrate >= 0.9.5 Requires: python-stevedore >= 1.3.0 Requires: python-swiftclient >= 2.2.0 %description -n python-sahara This package contains the core Python module of OpenStack Sahara. %package api Summary: OpenStack Data Processing (Sahara) - API Group: System/Management Requires: %{name} = %{version} %description api This package contains the OpenStack Sahara API. %package engine Summary: OpenStack Data Processing (Sahara) - Engine Group: System/Management Requires: %{name} = %{version} %description engine This package contains the OpenStack Sahara API. %package test Summary: OpenStack Data Processing (Sahara) - Testsuite Group: Development/Languages/Python Requires: %{name} = %{version} %if 0%{?suse_version} && 0%{?suse_version} <= 1110 Requires: python-discover %endif Requires: python-fixtures >= 0.3.14 Requires: python-mock >= 1.0 Requires: python-oslotest >= 1.5.1 Requires: python-paramiko >= 1.13.0 Requires: python-testrepository >= 0.0.18 Requires: python-testscenarios >= 0.4 Requires: python-testtools >= 0.9.36 %if 0%{?suse_version} && 0%{?suse_version} <= 1110 Requires: python-unittest2 %endif Requires: python-sphinxcontrib-httpdomain %description test This package contains testsuite files for %{name}. %prep %setup -q -n %{component}-%{version_unconverted} %openstack_cleanup_prep #NOTE(saschpe): Kill sahara Sphinx extension, we're only building manpages: sed -i -e "s|'sahara.doc.resources'||" -e "s|'ext.resources'||" doc/source/conf.py %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %endif %build python setup.py build python setup.py build_sphinx -b man %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} ### directories install -d -m 700 %{buildroot}%{_localstatedir}/run/%{component} %if 0%{?suse_version} > 1230 install -D -m 644 %{SOURCE10} %{buildroot}/%_tmpfilesdir/%name.conf %endif install -d -m 755 %{buildroot}%{_localstatedir}/{lib,log}/%{component} install -d -m 750 %{buildroot}%{_localstatedir}/cache/%{component} ### configuration files install -d %{buildroot}%{_sysconfdir}/%{component}/ mv etc/sahara/sahara.conf{.sample-basic,} install -p -m 644 etc/sahara/*.conf %{buildroot}%{_sysconfdir}/%{component}/ crudini --set %{buildroot}/etc/%{component}/sahara.conf DEFAULT verbose True crudini --set %{buildroot}/etc/%{component}/sahara.conf DEFAULT log_dir /var/log/sahara crudini --set %{buildroot}/etc/%{component}/sahara.conf DEFAULT rpc_backend sahara.openstack.common.rpc.impl_kombu crudini --set %{buildroot}/etc/%{component}/sahara.conf database connection 'sqlite:///var/lib/sahara/sahara.db' crudini --set %{buildroot}/etc/%{component}/sahara.conf keystone_authtoken signing_dir /var/cache/%component/keystone-signing crudini --set %{buildroot}/etc/%{component}/sahara.conf keystone_authtoken admin_tenant_name '%%SERVICE_TENANT_NAME%%' crudini --set %{buildroot}/etc/%{component}/sahara.conf keystone_authtoken admin_user sahara crudini --set %{buildroot}/etc/%{component}/sahara.conf keystone_authtoken admin_password '%%SERVICE_PASSWORD%%' ### bash-completion/logrotate/etc. install -p -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} ### init scripts mkdir -p %{buildroot}%{_sbindir} %{buildroot}%{_initddir} for i in all api engine; do install -m 755 %{SOURCE1} %{buildroot}%{_initddir}/%{name}-$i sed -i -e "s/__NAME__/$i/g" %{buildroot}%{_initddir}/%{name}-$i ln -s ../..%{_initddir}/%{name}-$i %{buildroot}%{_sbindir}/rc%{name}-$i done ### documentation install -d %{buildroot}%{_mandir}/man1 install -m 644 doc/build/man/*.1 %{buildroot}%{_mandir}/man1 ### test subpackage %openstack_test_package_install %fdupes %{buildroot}%{_localstatedir}/lib/%{name}-test ### misc %fdupes %{buildroot}%{python_sitelib}/%{component} %pre %openstack_pre_user_group_create %{username} %{groupname} %post %{fillup_and_insserv -f %{name}-all} %preun %stop_on_removal %{name}-all %postun %restart_on_update %{name}-all %insserv_cleanup %post api %{fillup_and_insserv -f %{name}-api} %preun api %stop_on_removal %{name}-api %postun api %restart_on_update %{name}-api %insserv_cleanup %post engine %{fillup_and_insserv -f %{name}-engine} %preun engine %stop_on_removal %{name}-engine %postun engine %restart_on_update %{name}-engine %insserv_cleanup %files %defattr(-,root,root) %doc LICENSE README.rst %dir %attr(0750, %{username}, %{groupname}) %{_localstatedir}/cache/%{component} %dir %attr(0755, %{username}, %{groupname}) %{_localstatedir}/lib/%{component} %dir %attr(0750, %{username}, %{groupname}) %{_localstatedir}/log/%{component} %if 0%{?suse_version} > 1230 %_tmpfilesdir/%name.conf %else %dir %attr(0700, %{username}, %{groupname}) %{_localstatedir}/run/%{component} %endif %dir %{_sysconfdir}/%{component} %config(noreplace) %attr(0640, root, %{groupname}) %{_sysconfdir}/%{component}/sahara.conf %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %config %{_sysconfdir}/%{component}/rootwrap.conf %{_bindir}/%{component}-all %{_initddir}/%{name}-all %{_sbindir}/rc%{name}-all %{_bindir}/%{component}-db-manage %{_bindir}/_%{component}-subprocess %{_bindir}/%{component}-rootwrap %{_bindir}/%{component}-templates %{_datadir}/%{component} %{_mandir}/man1/%{component}.1%{?ext_man} %files -n python-%{component} %defattr(-,root,root,-) %doc LICENSE %{python_sitelib}/%{component}/ %{python_sitelib}/%{component}-*.egg-info %files api %defattr(-,root,root,-) %doc LICENSE %{_initddir}/%{name}-api %{_sbindir}/rc%{name}-api %{_bindir}/%{component}-api %files engine %defattr(-,root,root,-) %doc LICENSE %{_initddir}/%{name}-engine %{_sbindir}/rc%{name}-engine %{_bindir}/%{component}-engine %files test %defattr(-,root,root) %{_localstatedir}/lib/%{name}-test/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor