Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Ardana:8:CentOS
openstack-zaqar
openstack-zaqar.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openstack-zaqar.spec of Package openstack-zaqar
# # 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 zaqar %define groupname %{component} %define username %{component} %define version_unconverted 5.0.2.dev2 Name: openstack-%{component} Version: 5.0.2~dev2 Release: 0 Summary: OpenStack Message Bus (Zaqar) License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/stackforge/zaqar Source: http://tarballs.openstack.org/zaqar/zaqar-stable-pike.tar.gz Source1: %{name}.conf Source2: %{name}.logrotate # systemd service files Source10: %{name}-server.service Source11: %{name}-gc.service Source50: README.config BuildRequires: openstack-suse-macros BuildRequires: python-devel BuildRequires: python-oslo.config BuildRequires: python-pbr BuildRequires: systemd-rpm-macros %{?systemd_requires} Requires: logrotate Requires: python-zaqar = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires(pre): pwdutils BuildArch: noarch %description Zaqar is an OpenStack project that provides Identity, Token, Catalog and Policy services for use specifically by projects in the OpenStack family. %package -n python-zaqar Summary: OpenStack Message Bus (Zaqar) - Python module Group: Development/Languages/Python Requires: python >= 2.7 Requires: python-Babel >= 2.3.4 Requires: python-WebOb >= 1.2.3 Requires: python-enum34 Requires: python-falcon >= 0.1.6 Requires: python-futurist >= 0.11.0 Requires: python-iso8601 >= 0.1.11 Requires: python-jsonschema >= 2.0.0 Requires: python-keystoneclient >= 0.6.0 Requires: python-keystonemiddleware >= 4.0.0 Requires: python-msgpack-python >= 0.4.0 Requires: python-netaddr >= 0.7.12 Requires: python-oslo.cache >= 1.5.0 Requires: python-oslo.config >= 3.9.0 Requires: python-oslo.context >= 2.2.0 Requires: python-oslo.i18n >= 2.1.0 Requires: python-oslo.log >= 1.14.0 Requires: python-oslo.policy >= 0.5.0 Requires: python-oslo.serialization >= 1.10.0 Requires: python-oslo.utils >= 3.5.0 Requires: python-pymongo >= 3.0.2 Requires: python-python-memcached >= 1.56 Requires: python-requests >= 2.8.1 Requires: python-six >= 1.9.0 Requires: python-stevedore >= 1.9.0 %description -n python-zaqar Zaqar is an OpenStack project that provides Identity, Token, Catalog and Policy services for use specifically by projects in the OpenStack family. This package contains the core Python module of OpenStack Zaqar. %package gc Summary: OpenStack Message Bus (Zaqar) - GC Group: System/Management Requires: %{name} = %{version} %description gc This package contains the OpenStack Zaqar GC Service. %package server Summary: OpenStack Message Bus (Zaqar) - Server Group: System/Management Requires: %{name} = %{version} %description server This package contains the OpenStack Zaqar Server Service. %package test Summary: OpenStack Message Bus (Zaqar) - Testsuite Group: Development/Languages/Python Requires: %{name} = %{version} Requires: python-ddt >= 1.0.1 Requires: python-fixtures >= 1.3.1 Requires: python-httpretty >= 0.8.0 Requires: python-mock >= 1.2 Requires: python-oslotest >= 1.10.0 Requires: python-python-subunit >= 0.0.18 Requires: python-testrepository >= 0.0.18 Requires: python-testtools >= 1.4.0 %description test The OpenStack Zaqar testsuite. It is used to verify the functionality of OpenStack Zaqar. %prep %setup -q -n %{component}-%{version_unconverted} %openstack_cleanup_prep %build python setup.py build #python setup.py build_sphinx -b man oslo-config-generator --config-file etc/oslo-config-generator/zaqar.conf %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} ### directories install -d -m 750 %{buildroot}%{_localstatedir}/{lib,log}/zaqar install -D -m 644 %{SOURCE1} %{buildroot}/%_tmpfilesdir/%name.conf ### configuration files install -d -m 755 %{buildroot}%{_sysconfdir}/%{component} install -d -m 755 %{buildroot}%{_sysconfdir}/%{component}/%{component}.conf.d/ install -m 644 etc/zaqar.conf.sample %{buildroot}%{_sysconfdir}/zaqar/zaqar.conf install -m 644 etc/logging.conf.sample %{buildroot}%{_sysconfdir}/zaqar/logging.conf install -p -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} ### README.config cp %{SOURCE50} %{buildroot}%{_sysconfdir}/%{component}/ # Install systemd unit services mkdir -p %{buildroot}%{_sbindir} %{buildroot}%{_unitdir} install -p -D -m 444 %{SOURCE10} %{buildroot}%{_unitdir}/%{name}-server.service install -p -D -m 444 %{SOURCE11} %{buildroot}%{_unitdir}/%{name}-gc.service ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-server ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-gc ### test subpackage %openstack_test_package_install %pre %openstack_pre_user_group_create %{username} %{groupname} %post %tmpfiles_create %{_tmpfilesdir}/%{name}.conf %pre gc %service_add_pre %{name}-gc.service %post gc %service_add_post %{name}-gc.service %preun gc %service_del_preun %{name}-gc.service %postun gc %restart_on_update %{name}-gc.service %service_del_postun %{name}-gc.service %pre server %service_add_pre %{name}-server.service %post server %service_add_post %{name}-server.service %preun server %service_del_preun %{name}-server.service %postun server %restart_on_update %{name}-server.service %service_del_postun %{name}-server.service %files %defattr(-,root,root) %doc README.rst LICENSE ChangeLog %dir %_tmpfilesdir %_tmpfilesdir/%name.conf %dir %attr(0750, %{username}, %{groupname}) %{_localstatedir}/lib/%{component} %dir %attr(0750, %{username}, %{groupname}) %{_localstatedir}/log/%{component} %dir %attr(0750, root, %{groupname}) %{_sysconfdir}/%{component} %dir %attr(0750, root, %{groupname}) %{_sysconfdir}/%{component}/%{component}.conf.d/ %config(noreplace) %attr(0640, root, %{groupname}) %{_sysconfdir}/%{component}/%{component}.conf %config(noreplace) %attr(0640, root, %{groupname}) %{_sysconfdir}/%{component}/logging.conf %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %{_sysconfdir}/%{component}/README.config #%{_mandir}/man1/zaqar* %{_bindir}/zaqar-sql-db-manage %files -n python-zaqar %defattr(-,root,root,-) %{python_sitelib}/%{component} %{python_sitelib}/%{component}-*.egg-info %files gc %defattr(-,root,root,-) %{_bindir}/zaqar-gc %{_unitdir}/%{name}-gc.service %{_sbindir}/rc%{name}-gc %files server %defattr(-,root,root,-) %{_unitdir}/%{name}-server.service %{_sbindir}/rc%{name}-server %{_bindir}/zaqar-server %files test %defattr(-,root,root) %{_bindir}/zaqar-bench %{_localstatedir}/lib/openstack-%{component}-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