2016-10-22 11:21:45 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-openstack-doc-tools
|
|
|
|
#
|
2018-02-23 13:16:39 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-10-22 11:21:45 +00:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%global sname openstack-doc-tools
|
|
|
|
%global module os_doc_tools
|
|
|
|
Name: python-openstack-doc-tools
|
2018-09-04 08:02:41 +00:00
|
|
|
Version: 1.8.0
|
2016-10-22 11:21:45 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: OpenStack Docs Tools
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
2018-09-04 08:02:41 +00:00
|
|
|
URL: https://launchpad.net/%{sname}
|
2018-02-23 13:16:39 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/o/%{sname}/%{sname}-%{version}.tar.gz
|
2016-10-22 11:21:45 +00:00
|
|
|
BuildRequires: openstack-macros
|
2018-09-04 08:02:41 +00:00
|
|
|
BuildRequires: python-Babel
|
|
|
|
BuildRequires: python-PyYAML >= 3.12
|
2016-10-22 11:21:45 +00:00
|
|
|
BuildRequires: python-Sphinx
|
2018-02-23 13:16:39 +00:00
|
|
|
BuildRequires: python-demjson >= 2.2.2
|
2016-10-22 11:21:45 +00:00
|
|
|
BuildRequires: python-devel
|
2018-09-04 08:02:41 +00:00
|
|
|
BuildRequires: python-lxml >= 3.4.1
|
|
|
|
BuildRequires: python-mock
|
|
|
|
BuildRequires: python-openstackdocstheme
|
2017-08-07 09:08:38 +00:00
|
|
|
BuildRequires: python-pbr >= 2.0.0
|
2018-09-04 08:02:41 +00:00
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: python-testrepository
|
|
|
|
Requires: python-PyYAML >= 3.12
|
2016-10-22 11:21:45 +00:00
|
|
|
Requires: python-Sphinx
|
|
|
|
Requires: python-iso8601 >= 0.1.11
|
2018-02-23 13:16:39 +00:00
|
|
|
Requires: python-lxml >= 3.4.1
|
2018-09-04 08:02:41 +00:00
|
|
|
Requires: python-openstackdocstheme
|
2016-10-22 11:21:45 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Tools used by the OpenStack Documentation Project.
|
|
|
|
|
|
|
|
%prep
|
2017-02-10 16:35:43 +00:00
|
|
|
%autosetup -n %{sname}-%{version}
|
|
|
|
%py_req_cleanup
|
2018-09-04 08:02:41 +00:00
|
|
|
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
|
2016-10-22 11:21:45 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%py2_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%py2_install
|
|
|
|
|
|
|
|
%check
|
2018-09-04 08:02:41 +00:00
|
|
|
# We don't want to run the sitemap tests, it is not included in the package
|
|
|
|
rm -f test/test_sitemap_file.py test/test_pipelines.py
|
2016-10-22 11:21:45 +00:00
|
|
|
%{__python2} setup.py testr
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
|
|
|
%{_bindir}/doc-tools-build-rst
|
|
|
|
%{_bindir}/doc-tools-check-languages
|
|
|
|
%{_bindir}/openstack-indexpage
|
|
|
|
%{_bindir}/openstack-jsoncheck
|
|
|
|
%{python2_sitelib}/%{module}
|
|
|
|
%{_datadir}/%{sname}
|
|
|
|
%{python2_sitelib}/*.egg-info
|
|
|
|
|
|
|
|
%changelog
|