1
0
python-oslo.config/python-oslo.config.spec
Stephan Kulow cdf5e6172c Accepting request 201577 from Cloud:OpenStack:Factory
- Fix service URL 

- update to 1.2.1:
  * 1223667_: Fix DictOpt to split only the first colon
  * 1228995_: Disallow duplicate keys in DictOpt
  * Explicit version removed from setup.cfg
  * Dependency version updates
  * Add auto-create support for OptGroup instances (see review 41865_)
  * Publish full API docs to docs.openstack.org_
  * Finished Python 3 support
  * 1196601_: Raise an exception if print_help() is called before __call__
  * Fix DeprecatedOpt equality test
  * Use oslo.sphinx

OBS-URL: https://build.opensuse.org/request/show/201577
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-oslo.config?expand=0&rev=6
2013-10-02 11:33:04 +00:00

116 lines
3.4 KiB
RPMSpec

#
# spec file for package python-oslo.config
#
# Copyright (c) 2013 SUSE LINUX Products 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/
#
%define component oslo
Name: python-oslo.config
Version: 1.2.1
Release: 0
Url: https://launchpad.net/oslo/
Summary: OpenStack configuration API
License: Apache-2.0
Group: Development/Languages/Python
Source: oslo.config-1.2.1.tar.gz
Source99: rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: openstack-suse-macros
BuildRequires: python-base
BuildRequires: python-oslo.sphinx
BuildRequires: python-pbr
Requires: python-argparse
Requires: python-pbr
Requires: python-six
Provides: python-oslo-config = 2013.2
Obsoletes: python-oslo-config < 2013.2
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%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
Requires: %{name} = %{version}
BuildRequires: python-Sphinx
Provides: python-oslo-config-doc = 2013.2
Obsoletes: python-oslo-config-doc < 2013.2
%description doc
This package contains documentation files for %{name}.
%package test
Summary: OpenStack configuration API - test suite
Group: System/Management
Conflicts: python-oslo-config-test
Requires: %{name} = %{version}
Requires: python-coverage
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
Requires: python-discover
%endif
Requires: python-fixtures >= 0.3.12
Requires: python-flake8 >= 2.0
Requires: python-hacking >= 0.5.3
Requires: python-pep8 >= 1.4.5
Requires: python-pyflakes >= 0.7.2
Requires: python-python-subunit
Requires: python-testrepository >= 0.0.13
Requires: python-testscenarios
Requires: python-testtools >= 0.9.29
%description test
This package contains testsuite files for %{name}.
%prep
%setup -q -n oslo.config-1.2.1
%build
python setup.py build
python setup.py build_sphinx
%install
python setup.py install --skip-build --root=%{buildroot} --prefix=%{_prefix} --install-data=%{python_sitelib}
rm doc/build/html/.buildinfo
%fdupes doc
%openstack_test_package_install
%files
%defattr(-,root,root,-)
%doc LICENSE README.rst AUTHORS
%{python_sitelib}/oslo
%{python_sitelib}/*.egg-info
%{python_sitelib}/*-nspkg.pth
%files doc
%defattr(-,root,root,-)
%doc LICENSE doc/build/html
%files test
%defattr(-,root,root,-)
%{_localstatedir}/lib/%{name}-test/
%changelog