2013-04-21 17:50:55 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-oslo.config
|
|
|
|
#
|
2015-04-28 09:25:37 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-04-21 17:50:55 +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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-oslo.config
|
2015-07-20 19:46:05 +00:00
|
|
|
Version: 1.12.1
|
2013-04-21 17:50:55 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: OpenStack configuration API
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
2015-07-29 05:51:22 +00:00
|
|
|
Url: https://launchpad.net/oslo.config/
|
2014-03-27 10:31:43 +00:00
|
|
|
Source: http://tarballs.openstack.org/oslo.config/oslo.config-%{version}.tar.gz
|
2013-10-07 09:41:24 +00:00
|
|
|
Source99: rpmlintrc
|
2013-04-21 17:50:55 +00:00
|
|
|
BuildRequires: fdupes
|
2015-07-29 05:51:22 +00:00
|
|
|
BuildRequires: openstack-suse-macros
|
2014-03-27 10:31:43 +00:00
|
|
|
BuildRequires: python-devel
|
|
|
|
# Test requirements:
|
|
|
|
BuildRequires: python-fixtures >= 0.3.14
|
|
|
|
BuildRequires: python-mock >= 1.0
|
2014-09-27 15:54:53 +00:00
|
|
|
BuildRequires: python-netaddr
|
2015-06-24 16:27:42 +00:00
|
|
|
BuildRequires: python-oslo.i18n >= 1.3.0
|
2015-07-20 19:46:05 +00:00
|
|
|
BuildRequires: python-oslosphinx
|
2015-04-28 09:25:37 +00:00
|
|
|
BuildRequires: python-oslotest >= 1.2.0
|
2015-07-20 19:46:05 +00:00
|
|
|
BuildRequires: python-pbr
|
2014-04-17 13:02:59 +00:00
|
|
|
BuildRequires: python-python-subunit >= 0.0.18
|
2014-09-27 15:54:53 +00:00
|
|
|
BuildRequires: python-six
|
|
|
|
BuildRequires: python-stevedore
|
|
|
|
BuildRequires: python-testrepository >= 0.0.18
|
2014-03-27 10:31:43 +00:00
|
|
|
BuildRequires: python-testscenarios >= 0.4
|
2015-04-28 09:25:37 +00:00
|
|
|
BuildRequires: python-testtools >= 0.9.36
|
2014-09-27 15:54:53 +00:00
|
|
|
Requires: python-netaddr >= 0.7.12
|
2015-06-24 16:27:42 +00:00
|
|
|
Requires: python-six >= 1.9.0
|
2015-07-20 19:46:05 +00:00
|
|
|
Requires: python-stevedore >= 1.3.0
|
2013-04-21 17:50:55 +00:00
|
|
|
Provides: python-oslo-config = 2013.2
|
|
|
|
Obsoletes: python-oslo-config < 2013.2
|
2014-03-27 10:31:43 +00:00
|
|
|
Provides: %{name}-test = %{version}
|
|
|
|
Obsoletes: %{name}-test <= %{version}
|
2015-07-20 19:46:05 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2013-04-21 17:50:55 +00:00
|
|
|
|
|
|
|
%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
|
2015-07-20 19:46:05 +00:00
|
|
|
Requires: %{name} = %{version}
|
2013-04-21 17:50:55 +00:00
|
|
|
Provides: python-oslo-config-doc = 2013.2
|
|
|
|
Obsoletes: python-oslo-config-doc < 2013.2
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains documentation files for %{name}.
|
|
|
|
|
|
|
|
%prep
|
2014-03-07 15:18:58 +00:00
|
|
|
%setup -q -n oslo.config-%{version}
|
2013-04-21 17:50:55 +00:00
|
|
|
|
|
|
|
%build
|
2015-07-29 05:51:22 +00:00
|
|
|
%{__python2} setup.py build
|
|
|
|
%{__python2} setup.py build_sphinx && rm doc/build/html/.buildinfo
|
2013-04-21 17:50:55 +00:00
|
|
|
|
|
|
|
%install
|
2015-07-29 05:51:22 +00:00
|
|
|
%{__python2} setup.py install --skip-build --root %{buildroot}
|
2013-04-21 17:50:55 +00:00
|
|
|
%fdupes doc
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2013-10-07 09:41:24 +00:00
|
|
|
%doc LICENSE README.rst AUTHORS
|
2014-09-27 15:54:53 +00:00
|
|
|
%{_bindir}/oslo-config-generator
|
2013-04-21 17:50:55 +00:00
|
|
|
%{python_sitelib}/oslo
|
2013-07-29 15:51:04 +00:00
|
|
|
%{python_sitelib}/*-nspkg.pth
|
2015-07-29 05:51:22 +00:00
|
|
|
%{python2_sitelib}/oslo_config
|
|
|
|
%{python2_sitelib}/*.egg-info
|
2013-04-21 17:50:55 +00:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE doc/build/html
|
|
|
|
|
|
|
|
%changelog
|