Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Ardana:8:CentOS
openstack-murano
openstack-murano.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openstack-murano.spec of Package openstack-murano
# # spec file # # Copyright (c) 2023 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define component murano %define groupname %{component} %define username %{component} %define version_unconverted 4.0.2.dev3 Name: openstack-%{component} Version: 4.0.2~dev3 Release: 0 Summary: OpenStack Application Catalog (murano) License: Apache-2.0 Group: System/Management URL: https://launchpad.net/murano Source0: http://tarballs.openstack.org/murano/murano-stable-pike.tar.gz Source2: %{name}.logrotate Source3: %{name}-api.service Source4: %{name}-engine.service Source10: %name.conf Source50: README.config BuildRequires: fdupes BuildRequires: openstack-suse-macros BuildRequires: openstack-suse-sudo BuildRequires: python-base BuildRequires: python-oslo.concurrency BuildRequires: python-oslo.config BuildRequires: python-setuptools BuildRequires: python-six BuildRequires: systemd-rpm-macros # Documentation build requirements: BuildRequires: crudini BuildRequires: python-Babel BuildRequires: python-Sphinx BuildRequires: python-WebOb BuildRequires: python-openstackdocstheme BuildRequires: python-oslo.db BuildRequires: python-oslo.i18n BuildRequires: python-oslo.log BuildRequires: python-oslo.messaging BuildRequires: python-oslo.policy BuildRequires: python-oslo.utils BuildRequires: python-oslosphinx BuildRequires: python-pbr BuildRequires: python-reno BuildRequires: python-sphinxcontrib-httpdomain %{?systemd_requires} Requires: logrotate Requires(pre): pwdutils Requires: openstack-suse-sudo Requires: python >= 2.7 Requires: python-murano = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description OpenStack Application Catalog. %package -n python-murano Summary: OpenStack Application Catalog (murano) - Python module Group: Development/Languages/Python Requires: python-Babel >= 2.3.4 Requires: python-Paste Requires: python-PasteDeploy >= 1.5.0 Requires: python-PyYAML >= 3.10.0 Requires: python-Routes >= 2.3.1 Requires: python-WebOb >= 1.7.1 Requires: python-alembic >= 0.8.10 Requires: python-congressclient >= 1.3.0 Requires: python-debtcollector >= 1.2.0 Requires: python-eventlet >= 0.18.2 Requires: python-heatclient >= 1.6.1 Requires: python-jsonpatch >= 1.1 Requires: python-jsonschema >= 2.0.0 Requires: python-keystoneauth1 >= 3.1.0 Requires: python-keystoneclient >= 3.8.0 Requires: python-keystonemiddleware >= 4.12.0 Requires: python-kombu >= 4.0.0 Requires: python-mistralclient >= 3.1.0 Requires: python-muranoclient >= 0.8.2 Requires: python-netaddr >= 0.7.13 Requires: python-neutronclient >= 6.3.0 Requires: python-oslo.concurrency >= 3.8.0 Requires: python-oslo.config >= 4.0.0 Requires: python-oslo.context >= 2.14.0 Requires: python-oslo.db >= 4.24.0 Requires: python-oslo.i18n >= 2.1.0 Requires: python-oslo.log >= 3.22.0 Requires: python-oslo.messaging >= 5.24.2 Requires: python-oslo.middleware >= 3.27.0 Requires: python-oslo.policy >= 1.23.0 Requires: python-oslo.serialization >= 1.10.0 Requires: python-oslo.service >= 1.10.0 Requires: python-oslo.utils >= 3.20.0 Requires: python-pbr >= 2.0.0 Requires: python-psutil >= 3.2.2 Requires: python-retrying >= 1.3.1 Requires: python-semantic_version >= 2.3.1 Requires: python-six >= 1.9.0 Requires: python-sqlalchemy >= 1.0.10 Requires: python-stevedore >= 1.20.0 Requires: python-tenacity >= 3.2.1 Requires: python-testtools >= 1.4.0 Requires: python-yaql >= 1.1.0 %description -n python-murano OpenStack Application Catalog. This package contains the core Python module of OpenStack murano. %package api Summary: OpenStack Application Catalog (murano) - API Group: Development/Languages/Python Requires: %{name} = %{version} %description api OpenStack Application Catalog. This package contains the OpenStack murano API. %package engine Summary: OpenStack Application Catalog (murano) - API Group: Development/Languages/Python Requires: %{name} = %{version} %description engine OpenStack Application Catalog. This package contains the OpenStack murano Engine. %package test Summary: OpenStack Application Catalog (murano) - Testsuite Group: Development/Languages/Python Requires: %{name} = %{version} Requires: git-core Requires: python-fixtures >= 3.0.0 Requires: python-mock >= 2.0 Requires: python-nose Requires: python-os-testr >= 0.8.0 Requires: python-oslotest >= 1.10.0 Requires: python-requests >= 2.14.2 Requires: python-testrepository >= 0.0.18 Requires: python-testresources >= 0.2.4 Requires: python-testscenarios >= 0.4 Requires: python-unittest2 %description test The OpenStack murano testsuite. It is used to verify the functionality of OpenStack murano. %prep %setup -q -n %{component}-%{version_unconverted} %openstack_cleanup_prep # BADFIX: this is because the function above is too greedy and breaks # the conf.py for murano by breaking a function, thinking that is a variable # html_last_updated_fmt gets changed and we cant compile the docs :( sed -i -e "s|git_cmd, stdout=subprocess.PIPE|#git_cmd, stdout=subprocess.PIPE|g" doc/source/conf.py doc/source/conf.py sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg %build python setup.py -q build python setup.py build_sphinx -q -b man ### configuration files oslo-config-generator --config-file etc/oslo-config-generator/murano.conf --output-file etc/murano.conf.sample oslo-config-generator --config-file etc/oslo-config-generator/murano-cfapi.conf --output-file etc/murano-cfapi.conf.sample %install python setup.py -q install --skip-build --prefix=%{_prefix} --root=%{buildroot} ### directories install -d -m 750 %{buildroot}%{_localstatedir}/{lib,log}/%{component} install -d -m 750 %{buildroot}%{_localstatedir}/cache/%{component} install -D -m 644 %{SOURCE10} %{buildroot}/%{_tmpfilesdir}/%name.conf install -d -m 755 %{buildroot}%{_sysconfdir}/%{component} install -d -m 755 %{buildroot}%{_sysconfdir}/%{component}/%{component}.conf.d/ ### configuration files install -p -D -m 640 %{SOURCE50} %{buildroot}%{_sysconfdir}/%{component}/README.config install -p -D -m 644 etc/%{component}.conf.sample %{buildroot}%{_sysconfdir}/%{component}/%{component}.conf install -p -D -m 644 etc/%{component}-cfapi.conf.sample %{buildroot}%{_sysconfdir}/%{component}/%{component}-cfapi.conf install -p -D -m 644 etc/%{component}/{%{component}-paste.ini,%{component}-cfapi-paste.ini} %{buildroot}%{_sysconfdir}/%{component}/ # bash-completion/logrotate/etc. install -p -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} ### systemd service files mkdir -p %{buildroot}%{_sbindir} %{buildroot}%{_unitdir} install -p -D -m 444 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}-api.service install -p -D -m 444 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}-engine.service ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-api ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-engine ### documentation install -d %{buildroot}%{_mandir}/man1 install -m 644 doc/build/man/*.1 %{buildroot}%{_mandir}/man1 ### tempest tests cp -a murano_tempest_tests %{buildroot}%{python_sitelib}/ ### test subpackage %openstack_test_package_install %fdupes %{buildroot}%{_localstatedir}/lib/%{name}-test ### misc %fdupes %{buildroot}%{python_sitelib}/%{component} ### set default configuration %define murano_conf %{buildroot}%{_sysconfdir}/%{component}/%{component}.conf.d/010-%{component}.conf crudini --set %{murano_conf} DEFAULT log_dir /var/log/murano crudini --set %{murano_conf} DEFAULT state_path /var/lib/murano crudini --set %{murano_conf} oslo_concurrency lock_path /var/run/murano %pre %openstack_pre_user_group_create %{username} %{groupname} %post %tmpfiles_create %{_tmpfilesdir}/%{name}.conf %pre api %service_add_pre %{name}-api.service %post api %service_add_post %{name}-api.service %preun api %stop_on_removal %{name}-api.service %service_del_preun %{name}-api.service %postun api %service_del_postun %{name}-api.service %pre engine %service_add_pre %{name}-engine.service %post engine %service_add_post %{name}-engine.service %preun engine %stop_on_removal %{name}-engine.service %service_del_preun %{name}-engine.service %postun engine %service_del_postun %{name}-engine.service %files %defattr(-,root,root) %doc LICENSE README.rst %dir %attr(0750, %{username}, %{groupname}) %{_localstatedir}/lib/%{component} %dir %attr(0750, %{username}, %{groupname}) %{_localstatedir}/cache/%{component} %dir %attr(0750, %{username}, %{groupname}) %{_localstatedir}/log/%{component} %{_tmpfilesdir}/%name.conf %dir %{_sysconfdir}/%{component} %dir %{_sysconfdir}/%{component}/%{component}.conf.d/ %{_sysconfdir}/%{component}/README.config %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %config(noreplace) %attr(0640, root, %{groupname}) %{_sysconfdir}/%{component}/%{component}.conf %config(noreplace) %attr(0640, root, %{groupname}) %{_sysconfdir}/%{component}/%{component}.conf.d/010-%{component}.conf %config(noreplace) %attr(0640, root, %{groupname}) %{_sysconfdir}/%{component}/%{component}-cfapi.conf %config %{_sysconfdir}/%{component}/murano-paste.ini %config %{_sysconfdir}/%{component}/murano-cfapi-paste.ini %{_bindir}/%{component}-manage %{_bindir}/%{component}-db-manage %{_mandir}/man1/%{component}.1%{?ext_man} %files -n python-%{component} %defattr(-,root,root,-) %doc LICENSE %{python_sitelib}/%{component}/ %{python_sitelib}/%{component}-*.egg-info %exclude %{python_sitelib}/%{component}/test* %{python_sitelib}/murano_tempest_tests %files api %defattr(-,root,root,-) %doc LICENSE %{_unitdir}/%{name}-api.service %{_sbindir}/rc%{name}-api %{_bindir}/%{component}-api %{_bindir}/%{component}-cfapi %{_bindir}/%{component}-cfapi-db-manage %{_bindir}/murano-wsgi-api %files engine %defattr(-,root,root,-) %doc LICENSE %{_unitdir}/%{name}-engine.service %{_sbindir}/rc%{name}-engine %{_bindir}/%{component}-engine %files test %defattr(-,root,root) %{_localstatedir}/lib/%{name}-test/ %{python_sitelib}/%{component}/test* %{_bindir}/%{component}-test-runner %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