Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Cloud:OpenStack:Upstream:2024.1
openstack-cinder
openstack-cinder.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openstack-cinder.spec of Package openstack-cinder
# # spec file for package openstack-cinder # # Copyright (c) 2024 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/ # %global with_doc 1 %if 0%{?rhel} || 0%{?fedora} %global rdo 1 %endif %global service cinder Name: openstack-cinder Version: 24.1.1~dev19 Release: 0 Epoch: 0 Summary: OpenStack Block Storage (Cinder) License: Apache-2.0 URL: https://docs.openstack.org/cinder Source0: cinder-stable-2024.1.tar.gz Source1: openstack-cinder.logrotate Source2: openstack-cinder-api.service Source3: openstack-cinder-scheduler.service Source4: openstack-cinder-volume.service Source5: openstack-cinder-backup.service Source6: openstack-cinder.sudoers Source7: openstack-cinder.tmpfiles Source8: openstack-cinder.defaultconf Source50: openstack-cinder.README.config BuildRequires: openstack-macros BuildRequires: python3-barbicanclient BuildRequires: python3-glanceclient BuildRequires: python3-novaclient BuildRequires: python3-swiftclient BuildRequires: python311-PyMySQL BuildRequires: python311-SQLAlchemy BuildRequires: python311-SQLAlchemy-Utils BuildRequires: python311-boto3 BuildRequires: python311-castellan BuildRequires: python311-cryptography BuildRequires: python311-cursive BuildRequires: python311-ddt BuildRequires: python311-decorator BuildRequires: python311-defusedxml BuildRequires: python311-fixtures BuildRequires: python311-google-api-python-client BuildRequires: python311-keystonemiddleware BuildRequires: python311-lxml BuildRequires: python311-oauth2client BuildRequires: python311-os-brick BuildRequires: python311-oslo.config BuildRequires: python311-oslo.db BuildRequires: python311-oslo.i18n BuildRequires: python311-oslo.log BuildRequires: python311-oslo.policy BuildRequires: python311-oslo.reports BuildRequires: python311-oslo.upgradecheck BuildRequires: python311-oslo.utils BuildRequires: python311-oslo.versionedobjects BuildRequires: python311-oslo.vmware BuildRequires: python311-oslotest BuildRequires: python311-osprofiler BuildRequires: python311-paramiko BuildRequires: python311-psycopg2 BuildRequires: python311-pyparsing BuildRequires: python311-requests BuildRequires: python311-retrying BuildRequires: python311-rtslib-fb BuildRequires: python311-setuptools BuildRequires: python311-sqlalchemy-migrate BuildRequires: python311-tabulate BuildRequires: python311-taskflow BuildRequires: python311-testresources BuildRequires: python311-testscenarios BuildRequires: python311-testtools BuildRequires: python311-tooz BuildRequires: python311-zstd BuildRequires: sudo Requires: logrotate Requires: python3-cinder = %{epoch}:%{version}-%{release} BuildArch: noarch %if 0%{?suse_version} BuildRequires: python311-moto BuildRequires: systemd-rpm-macros %{?systemd_requires} %else BuildRequires: systemd Requires(post): systemd Requires(postun): systemd Requires(preun): systemd %endif %if 0%{?suse_version} Requires(pre): pwdutils %endif %if 0%{?rdo} Requires(pre): shadow-utils %endif %description OpenStack Volume (codename Cinder) provides services to manage and access block storage volumes for use by Virtual Machine instances. %package -n python3-cinder Summary: OpenStack Volume Python libraries Group: Development/Languages/Python Requires: python3-barbicanclient Requires: python3-glanceclient Requires: python3-keystoneclient Requires: python3-novaclient Requires: python3-swiftclient Requires: python311-Paste Requires: python311-PasteDeploy Requires: python311-Routes Requires: python311-SQLAlchemy Requires: python311-WebOb Requires: python311-boto3 Requires: python311-castellan Requires: python311-cryptography Requires: python311-cursive Requires: python311-decorator Requires: python311-defusedxml Requires: python311-eventlet Requires: python311-google-api-python-client Requires: python311-httplib2 Requires: python311-iso8601 Requires: python311-jsonschema Requires: python311-keystoneauth1 Requires: python311-keystonemiddleware Requires: python311-lxml Requires: python311-oauth2client Requires: python311-os-brick Requires: python311-oslo.concurrency Requires: python311-oslo.config Requires: python311-oslo.context Requires: python311-oslo.db Requires: python311-oslo.i18n Requires: python311-oslo.log Requires: python311-oslo.messaging Requires: python311-oslo.middleware Requires: python311-oslo.policy Requires: python311-oslo.privsep Requires: python311-oslo.reports Requires: python311-oslo.rootwrap Requires: python311-oslo.serialization Requires: python311-oslo.service Requires: python311-oslo.upgradecheck Requires: python311-oslo.utils Requires: python311-oslo.versionedobjects Requires: python311-oslo.vmware Requires: python311-osprofiler Requires: python311-paramiko Requires: python311-psutil Requires: python311-pyparsing Requires: python311-pytz Requires: python311-requests Requires: python311-retrying Requires: python311-rtslib-fb Requires: python311-simplejson Requires: python311-six Requires: python311-sqlalchemy-migrate Requires: python311-stevedore Requires: python311-tabulate Requires: python311-taskflow Requires: python311-tooz Requires: python311-zstd Requires: sudo %description -n python3-cinder OpenStack Volume (codename Cinder) provides services to manage and access block storage volumes for use by Virtual Machine instances. This package contains the Cinder Python library. %if 0%{?with_doc} %package doc Summary: Documentation for OpenStack Volume Service Group: Documentation/HTML BuildRequires: python311-Sphinx BuildRequires: python311-eventlet BuildRequires: python311-openstackdocstheme BuildRequires: python311-sphinx-feature-classification BuildRequires: python311-sphinxcontrib-apidoc %description doc OpenStack Volume (codename Cinder) provides services to manage and access block storage volumes for use by Virtual Machine instances. This package contains the documentation. %endif %package api Summary: OpenStack Volume service (Cinder) - API Group: Development/Languages/Python Requires: python3-cinder = %{epoch}:%{version}-%{release} %description api OpenStack Volume (codename Cinder) provides services to manage and access block storage volumes for use by Virtual Machine instances. This package contains the %{name} API server. %package scheduler Summary: OpenStack Volume service (Cinder) - Scheduler Group: Development/Languages/Python Requires: %{name} = %{epoch}:%{version}-%{release} %description scheduler OpenStack Volume (codename Cinder) provides services to manage and access block storage volumes for use by Virtual Machine instances. This package contains the %{name} scheduler server. %package volume Summary: OpenStack Volume service (Cinder) - Volume Group: Development/Languages/Python Requires: %{name} = %{epoch}:%{version}-%{release} %if 0%{?suse_version} Requires: nfs-client %else Requires: nfs-utils %endif %description volume OpenStack Volume (codename Cinder) provides services to manage and access block storage volumes for use by Virtual Machine instances. This package contains the %{name} volume server. %package backup Summary: OpenStack Volume service (Cinder) - Backup Group: Development/Languages/Python Requires: %{name} = %{epoch}:%{version}-%{release} %description backup OpenStack Volume (codename Cinder) provides services to manage and access block storage volumes for use by Virtual Machine instances. This package contains the %{name} backup server. %prep %autosetup -p1 -n cinder-24.1.1.dev19 %py_req_cleanup sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg # We do not want to depend on hacking for unit tests rm -f cinder/tests/unit/test_hacking.py %build %{py3_build} # build documentation %if 0%{?with_doc} export PYTHONPATH="$( pwd ):$PYTHONPATH" PBR_VERSION=24.1.1.dev19 %sphinx_build --keep-going -b html doc/source doc/build/html || : PBR_VERSION=24.1.1.dev19 %sphinx_build --keep-going -b man doc/source doc/build/man || : rm -rf doc/build/html/.{doctrees,buildinfo} %endif # generate the sample config files PYTHONPATH=. oslo-config-generator --config-file tools/config/cinder-config-generator.conf --output-file etc/cinder/cinder.conf # generate the sample policy PYTHONPATH=. oslopolicy-sample-generator --config-file=tools/config/cinder-policy-generator.conf --output etc/cinder/policy.json %install %{py3_install} # Setup directories install -d -m 750 %{buildroot}%{_localstatedir}/{lib,log,cache}/%{service} install -d -m 755 %{buildroot}%{_sysconfdir}/%{service} install -d -m 755 %{buildroot}%{_sysconfdir}/%{service}/%{service}.conf.d install -d -m 755 %{buildroot}%{_sysconfdir}/%{service}/%{service}-volume.conf.d # install tmpfiles install -D -m 644 %{SOURCE7} %{buildroot}/%_tmpfilesdir/%name.conf # install config files install -d -m 755 %{buildroot}%{_sysconfdir}/%{service} install -p -D -m 644 etc/%{service}/{cinder.conf,api-paste.ini,policy.json,resource_filters.json,rootwrap.conf} %{buildroot}%{_sysconfdir}/%{service}/ cp -a etc/cinder/rootwrap.d/ %{buildroot}%{_sysconfdir}/%{service}/ install -p -D -m 640 %{SOURCE50} %{buildroot}%{_sysconfdir}/%{service}/README.config install -p -D -m 640 %{SOURCE8} %{buildroot}%{_sysconfdir}/cinder/cinder.conf.d/010-cinder.conf # install systemd service files install -p -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/openstack-%{service}-api.service install -p -D -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/openstack-%{service}-scheduler.service install -p -D -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/openstack-%{service}-volume.service install -p -D -m 644 %{SOURCE5} %{buildroot}%{_unitdir}/openstack-%{service}-backup.service # install symlinks on SUSE %if 0%{?suse_version} mkdir -p %{buildroot}%{_sbindir} ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-api ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-scheduler ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-volume ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-backup %endif # Install sudoers install -p -D -m 440 %{SOURCE6} %{buildroot}%{_sysconfdir}/sudoers.d/openstack-cinder # Install logrotate install -p -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/openstack-%{service} # man pages %if 0%{?with_doc} mkdir -p %{buildroot}%{_mandir}/man1 install -p -D -m 644 doc/build/man/*.1 %{buildroot}%{_mandir}/man1/ %endif # Remove duplicate config files under /usr/etc/ rm -rf %{buildroot}%{_prefix}/%{_sysconfdir} %pre %openstack_pre_user_group_create cinder cinder /sbin/nologin exit 0 %post %tmpfiles_create %{_tmpfilesdir}/%{name}.conf %check %if 0%{?rdo} # requires python-moto package which is missing in RDO rm -f cinder/tests/unit/backup/drivers/test_backup_s3.py %endif stestr run %post api %systemd_post %{name}-api.service %preun api %systemd_preun %{name}-api.service %postun api %systemd_postun_with_restart %{name}-api.service %post scheduler %systemd_post %{name}-scheduler.service %preun scheduler %systemd_preun %{name}-scheduler.service %postun scheduler %systemd_postun_with_restart %{name}-scheduler.service %post volume %systemd_post %{name}-volume.service %preun volume %systemd_preun %{name}-volume.service %postun volume %systemd_postun_with_restart %{name}-volume.service %post backup %systemd_post %{name}-backup.service %preun backup %systemd_preun %{name}-backup.service %postun backup %systemd_postun_with_restart %{name}-backup.service %files %license LICENSE %dir %attr(0750, root, cinder) %{_sysconfdir}/cinder %dir %attr(0750, root, cinder) %{_sysconfdir}/cinder/cinder.conf.d/ %{_sysconfdir}/%{service}/README.config %config(noreplace) %attr(-, root, %{service}) %{_sysconfdir}/%{service}/%{service}.conf %config(noreplace) %attr(-, root, %{service}) %{_sysconfdir}/%{service}/api-paste.ini %config(noreplace) %attr(-, root, %{service}) %{_sysconfdir}/%{service}/rootwrap.conf %config(noreplace) %attr(0640, root, %{service}) %{_sysconfdir}/cinder/cinder.conf.d/010-cinder.conf %config(noreplace) %{_sysconfdir}/logrotate.d/openstack-%{service} %config(noreplace) %{_sysconfdir}/sudoers.d/openstack-%{service} %config(noreplace) %{_sysconfdir}/%{service}/policy.json %config(noreplace) %{_sysconfdir}/%{service}/resource_filters.json %_tmpfilesdir/%name.conf %dir %attr(0750, %{service}, root) %{_sysconfdir}/%{service}/rootwrap.d/ %dir %attr(0750, %{service}, root) %{_localstatedir}/log/%{service} %dir %attr(0750, %{service}, root) %{_localstatedir}/lib/%{service} %{_bindir}/cinder-manage %{_bindir}/cinder-rootwrap %{_bindir}/cinder-rtstool %{_bindir}/cinder-volume-usage-audit %{_bindir}/cinder-status %if 0%{?with_doc} %{_mandir}/man1/cinder-manage.1.gz %{_mandir}/man1/cinder-status.1.gz %endif %files -n python3-cinder %license LICENSE %{python3_sitelib}/cinder* %if 0%{?with_doc} %files doc %license LICENSE %doc doc/build/html %endif %files api %license LICENSE %{_bindir}/cinder-api %{_bindir}/cinder-wsgi %{_unitdir}/openstack-cinder-api.service %if 0%{?suse_version} %{_sbindir}/rc%{name}-api %endif %files scheduler %license LICENSE %{_bindir}/cinder-scheduler %{_unitdir}/openstack-cinder-scheduler.service %if 0%{?suse_version} %{_sbindir}/rc%{name}-scheduler %endif %files volume %license LICENSE %dir %{_sysconfdir}/%{service}/%{service}-volume.conf.d/ %config %{_sysconfdir}/%{service}/rootwrap.d/volume.filters %{_bindir}/cinder-volume %{_unitdir}/openstack-cinder-volume.service %if 0%{?suse_version} %{_sbindir}/rc%{name}-volume %endif %files backup %license LICENSE %{_bindir}/cinder-backup %{_unitdir}/openstack-cinder-backup.service %if 0%{?suse_version} %{_sbindir}/rc%{name}-backup %endif %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