File openstack-swift-doc.spec of Package openstack-swift-doc
#
# 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 swift
%define version_unconverted 2.19.3.dev3
Name: openstack-%{component}-doc
Version: 2.19.3~dev3
Release: 0
Summary: OpenStack Storage (Swift) - Documentation
License: Apache-2.0
Group: Documentation/HTML
URL: http://openstack.org/projects/compute/
Source: http://tarballs.openstack.org/swift/swift-stable-rocky.tar.gz
BuildRequires: openstack-suse-macros
BuildRequires: python-PasteDeploy
BuildRequires: python-Sphinx
BuildRequires: python-eventlet
BuildRequires: python-netifaces
BuildRequires: python-openstackdocstheme
BuildRequires: python-oslosphinx
BuildRequires: python-pbr
BuildRequires: python-simplejson
BuildRequires: python-swiftclient
BuildRequires: python-webob
BuildRequires: python-xattr
BuildRequires: python-xml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
OpenStack Object Storage (swift) aggregates commodity servers to work
together in clusters for reliable, redundant, and large-scale storage
of static objects.
This package contains documentation files for openstack-swift.
%prep
%setup -q -n %{component}-%{version_unconverted}
%openstack_cleanup_prep
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
%build
PBR_VERSION=%version_unconverted PYTHONPATH=. sphinx-build -b html doc/source doc/build/html
rm doc/build/html/.buildinfo # Remove unneeded files
%install
%files
%defattr(-,root,root,-)
%doc LICENSE doc/build/html
%changelog