1
0
python-oslo.config/python-oslo.config.spec
Bernhard Wiedemann 8cf45f7ed7 - Switch to.spec from rpm-packaging upstream project
- update to 3.9.0:
  * remove redundant call to set explicit target
  * clear the cache before mutating the config files
  * Updated from global requirements
  * Add None-check to find_file
  * add support for mutable options in the config generator
  * add unreleased page to release notes build
  * add a release note mentioning our use of reno
  * Add reno for release notes management
  * Hooks around mutate_config_files
  * Add hostname config type
  * Add config_dirs property with a list of directories
  * Fix wrong check with non-None value when format group
  * add generator hook for apps to update option defaults
  * Updated from global requirements
  * refactor generator._list_opts for further enhancement
  * Add debtcollector as requirement
  * always show coverage output from tests
  * handle group objects in sphinxext
  * refactor sphinxext and add unit tests
  * have show-options load the generator config file
  * support multiple namespaces in sphinxext
  * refactor sphinxext to make reformatting easier
  * refactor generator closures to private methods
  * Updated from global requirements
  * remove specially attribute handling from _Namespace
  * Fix unrecognized subparser args
  * Add test for BoolOpt with no default

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-oslo.config?expand=0&rev=41
2016-03-09 16:05:21 +00:00

100 lines
3.1 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/
#
%global sname oslo.config
Name: python-oslo.config
Version: 3.9.0
Release: 0
Summary: OpenStack common configuration library
License: Apache-2.0
Group: Development/Languages
Url: https://launchpad.net/%{sname}
Source0: https://pypi.python.org/packages/source/o/%{sname}/%{sname}-%{version}.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-debtcollector >= 1.2.0
BuildRequires: python-devel
BuildRequires: python-discover
BuildRequires: python-fixtures >= 1.3.1
BuildRequires: python-mock >= 1.2
BuildRequires: python-oslo.i18n >= 2.1.0
BuildRequires: python-oslotest >= 1.10.0
BuildRequires: python-pbr >= 1.6
BuildRequires: python-python-subunit >= 0.0.18
BuildRequires: python-setuptools
BuildRequires: python-testrepository >= 0.0.18
BuildRequires: python-testscenarios >= 0.4
BuildRequires: python-testtools >= 1.4.0
Requires: python-debtcollector >= 1.2.0
Requires: python-netaddr >= 0.7.12
Requires: python-six >= 1.9.0
Requires: python-stevedore >= 1.5.0
BuildArch: noarch
%description
The Oslo project intends to produce a python library containing
infrastructure code shared by OpenStack projects. The APIs provided
by the project should be high quality, stable, consistent and generally
useful.
The oslo-config library is a command line and configuration file
parsing library from the Oslo project.
%package doc
Summary: Documentation for OpenStack common configuration library
Group: Development/Languages
BuildRequires: python-Sphinx >= 1.1.2
BuildRequires: python-netaddr >= 0.7.12
BuildRequires: python-oslosphinx >= 2.5.0
BuildRequires: python-stevedore >= 1.5.0
%description doc
Documentation for the oslo-config library.
%prep
%setup -q -n %{sname}-%{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
%{__python2} setup.py build_sphinx
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%install
%{__python2} setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
%{__python2} setup.py testr
%files
%doc README.rst
%license LICENSE
%{_bindir}/oslo-config-generator
%{python2_sitelib}/oslo_config
%{python2_sitelib}/*.egg-info
%files doc
%doc doc/build/html
%license LICENSE
%changelog