Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Cloud:OpenStack:Zed
openstack-freezer
openstack-freezer.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openstack-freezer.spec of Package openstack-freezer
# # spec file for package openstack-freezer # # 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/ # %if 0%{?rhel} || 0%{?fedora} %global rdo 1 %endif Name: openstack-freezer Version: 13.0.1~dev3 Release: 0 Summary: OpenStack Backup and Restore License: Apache-2.0 Group: Development/Languages/Python URL: https://docs.openstack.org/freezer Source0: freezer-stable-zed.tar.gz Source1: openstack-freezer.logrotate Source2: openstack-freezer-scheduler.service BuildRequires: openstack-macros BuildRequires: openstack-tempest BuildRequires: python3-cinderclient BuildRequires: python3-freezerclient BuildRequires: python3-glanceclient BuildRequires: python3-keystoneclient BuildRequires: python3-neutronclient BuildRequires: python3-novaclient BuildRequires: python3-swiftclient BuildRequires: python39-APScheduler BuildRequires: python39-Babel BuildRequires: python39-PyMySQL BuildRequires: python39-botocore BuildRequires: python39-cryptography BuildRequires: python39-ddt BuildRequires: python39-fixtures BuildRequires: python39-keystoneauth1 BuildRequires: python39-os-brick BuildRequires: python39-oslo.config BuildRequires: python39-oslo.log BuildRequires: python39-oslo.service BuildRequires: python39-oslo.utils BuildRequires: python39-paramiko BuildRequires: python39-pbr BuildRequires: python39-psutil BuildRequires: python39-pymongo BuildRequires: python39-setuptools BuildRequires: python39-stestr Requires: python3-freezer = %{version}-%{release} BuildArch: noarch %if 0%{?suse_version} BuildRequires: systemd-rpm-macros Requires(pre): pwdutils %{?systemd_requires} %endif %if 0%{?rdo} BuildRequires: systemd Requires(post): systemd Requires(postun):systemd Requires(pre): shadow-utils Requires(preun):systemd %endif %description OpenStack Swift incremental backup and restore automation tool for file system, MongoDB, MySQL. LVM snapshot and encryption support. %package -n python3-freezer Summary: Freezer Python libraries Group: Applications/System Requires: python3-cinderclient Requires: python3-freezerclient Requires: python3-glanceclient Requires: python3-keystoneclient Requires: python3-neutronclient Requires: python3-novaclient Requires: python3-swiftclient Requires: python39-APScheduler Requires: python39-Babel Requires: python39-PyMySQL Requires: python39-botocore Requires: python39-cryptography Requires: python39-keystoneauth1 Requires: python39-os-brick Requires: python39-oslo.config Requires: python39-oslo.log Requires: python39-oslo.service Requires: python39-oslo.utils Requires: python39-paramiko Requires: python39-psutil Requires: python39-pymongo Requires: python39-six %description -n python3-freezer OpenStack Swift incremental backup and restore automation tool for file system, MongoDB, MySQL. LVM snapshot and encryption support. This package contains the Freezer python libraries. %package agent Summary: OpenStack Freezer - Agent service Group: Applications/System Requires: %{name} = %{version}-%{release} %description agent OpenStack Swift incremental backup and restore automation tool for file system, MongoDB, MySQL. LVM snapshot and encryption support. This package contains the Freezer agent code. %package scheduler Summary: OpenStack Freezer - Scheduler service Group: Applications/System Requires: %{name} = %{version}-%{release} %description scheduler OpenStack Swift incremental backup and restore automation tool for file system, MongoDB, MySQL. LVM snapshot and encryption support. This package contains the Freezer scheduler agent. %package doc Summary: Documentation for OpenStack Backup Service Group: Documentation/HTML BuildRequires: fdupes BuildRequires: python39-Sphinx BuildRequires: python39-openstackdocstheme BuildRequires: python39-sphinxcontrib-apidoc %description doc OpenStack Swift incremental backup and restore automation tool for file system, MongoDB, MySQL. LVM snapshot and encryption support. This package contains the documentation %prep %autosetup -p1 -n freezer-13.0.1.dev3 %py_req_cleanup %build %{py3_build} PBR_VERSION=13.0.1.dev3 %sphinx_build -b html doc/source doc/build/html # remove the Sphinx-build leftovers rm -rf doc/build/html/.{doctrees,buildinfo} %fdupes doc/build/html/ # config file generation PYTHONPATH=. oslo-config-generator --config-file etc/config-generator.conf \ --output-file etc/scheduler.conf.sample %install %{py3_install} install -d -m 755 %{buildroot}%{_sysconfdir}/freezer install -d -m 755 %{buildroot}%{_localstatedir}/{lib,log}/freezer install -d -m 755 %{buildroot}%{_sysconfdir}/freezer/freezer.conf.d/ install -d -m 750 %{buildroot}%{_sysconfdir}/freezer/scheduler/ install -d -m 750 %{buildroot}%{_sysconfdir}/freezer/scheduler/conf.d/ install -p -D -m 640 etc/scheduler.conf.sample %{buildroot}%{_sysconfdir}/freezer/scheduler.conf install -p -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/openstack-freezer install -p -D -m 755 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}-scheduler.service # install symlinks on SUSE %if 0%{?suse_version} mkdir -p %{buildroot}%{_sbindir} ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-scheduler %endif # remove duplicates %fdupes %{buildroot}%{python3_sitelib} # remove Windows script rm -fr %{buildroot}%{_prefix}/freezer/scripts/vss.ps1 %pre %openstack_pre_user_group_create freezer freezer /sbin/nologin #POST actions %post scheduler %systemd_post %{name}-scheduler.service #PREUN actions %preun scheduler %systemd_preun %{name}-scheduler.service #POSTUN actions %postun scheduler %systemd_postun_with_restart %{name}-scheduler.service %check export OS_TEST_PATH=./freezer/tests/unit %{openstack_stestr_run} %files %license LICENSE %doc README.rst %dir %attr(0750, root, freezer) %{_sysconfdir}/freezer/ %dir %attr(0750, root, freezer) %{_sysconfdir}/freezer/freezer.conf.d/ %dir %attr(0750, root, freezer) %{_sysconfdir}/freezer/scheduler/ %dir %attr(0750, root, freezer) %{_sysconfdir}/freezer/scheduler/conf.d/ %config(noreplace) %attr(0640, root, freezer) %{_sysconfdir}/freezer/scheduler.conf %config(noreplace) %{_sysconfdir}/logrotate.d/openstack-freezer %dir %attr(0755, freezer, freezer) %{_localstatedir}/lib/freezer %dir %attr(0750, freezer, freezer) %{_localstatedir}/log/freezer %files -n python3-freezer %doc README.rst %license LICENSE %{python3_sitelib}/freezer* %{python3_sitelib}/freezer-*.egg-info %files agent %license LICENSE %{_bindir}/freezer-agent %files scheduler %license LICENSE %{_bindir}/freezer-scheduler %{_unitdir}/%{name}-scheduler.service %if 0%{?suse_version} %{_sbindir}/rc%{name}-scheduler %endif %files doc %license LICENSE %doc doc/build/html %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