forked from pool/python-oslo.config
* Do not fail on certain config option help strings * Updated from global requirements * enhance sphinx integration to allow links to option definitions * Remove argparse from requirements * Updated from global requirements * replace reference to default value in option help text in docs * add built-in options to auto-generated documentation * register the built-in options for the config generator to find * Add reST work label for configuration options * Allow port number with 0 * Replace deprecated library function os.popen() with subprocess * Fix can't generate config sample with non-None value * Fixed deprecated_for_removal warning generation * Module index grouping * Docs class links * generator: ignore doubles * Numerous corrections to the docstrings * Make oslo-config-generator fail gracefully when no arguments * Replace assertEqual(*, None) with assertIsNone in tests * Python 3 deprecated the logger.warn method in favor of warning * Replace assertEqual(None,*) with assertIsNone(*) * Cleanly handle an undefined attribute reference * Replace assertEqual with assertTrue and assertFalse * assertIsNone(val) instead of assertEqual(None,val) OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-oslo.config?expand=0&rev=37
101 lines
3.2 KiB
RPMSpec
101 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package python-oslo.config
|
|
#
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: python-oslo.config
|
|
Version: 3.4.0
|
|
Release: 0
|
|
Summary: OpenStack configuration API
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
Url: https://launchpad.net/oslo.config/
|
|
Source: http://tarballs.openstack.org/oslo.config/oslo.config-%{version}.tar.gz
|
|
Source99: rpmlintrc
|
|
BuildRequires: fdupes
|
|
BuildRequires: openstack-suse-macros
|
|
BuildRequires: python-devel
|
|
# Test requirements:
|
|
BuildRequires: git-core
|
|
BuildRequires: python-debtcollector >= 1.2.0
|
|
BuildRequires: python-fixtures >= 0.3.14
|
|
BuildRequires: python-mock >= 1.0
|
|
BuildRequires: python-netaddr
|
|
BuildRequires: python-oslo.i18n >= 1.3.0
|
|
BuildRequires: python-oslosphinx
|
|
BuildRequires: python-oslotest >= 1.2.0
|
|
BuildRequires: python-pbr
|
|
BuildRequires: python-python-subunit >= 0.0.18
|
|
BuildRequires: python-six
|
|
BuildRequires: python-stevedore
|
|
BuildRequires: python-testrepository >= 0.0.18
|
|
BuildRequires: python-testscenarios >= 0.4
|
|
BuildRequires: python-testtools >= 0.9.36
|
|
Requires: python-debtcollector >= 1.2.0
|
|
Requires: python-netaddr >= 0.7.12
|
|
Requires: python-six >= 1.9.0
|
|
Requires: python-stevedore >= 1.5.0
|
|
Provides: python-oslo-config = 2013.2
|
|
Obsoletes: python-oslo-config < 2013.2
|
|
Provides: %{name}-test = %{version}
|
|
Obsoletes: %{name}-test <= %{version}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
The Oslo configuration API supports parsing command line arguments and
|
|
.ini style configuration files.
|
|
|
|
%package doc
|
|
Summary: OpenStack configuration API - Documentation
|
|
Group: Documentation/HTML
|
|
BuildRequires: python-Sphinx
|
|
Requires: %{name} = %{version}
|
|
Provides: python-oslo-config-doc = 2013.2
|
|
Obsoletes: python-oslo-config-doc < 2013.2
|
|
|
|
%description doc
|
|
This package contains documentation files for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n oslo.config-%{version}
|
|
|
|
%build
|
|
%{__python2} setup.py build
|
|
|
|
# disabling git call for last modification date from git repo
|
|
sed '/^html_last_updated_fmt.*/,/.)/ s/^/#/' -i doc/source/conf.py
|
|
# generate html docs
|
|
python setup.py build_sphinx
|
|
# remove the sphinx-build leftovers
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
|
|
%install
|
|
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.rst AUTHORS
|
|
%{_bindir}/oslo-config-generator
|
|
%{python2_sitelib}/oslo_config
|
|
%{python2_sitelib}/*.egg-info
|
|
|
|
%files doc
|
|
%license LICENSE
|
|
%doc doc/build/html
|
|
|
|
%changelog
|