2012-11-28 13:35:01 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-stevedore
|
|
|
|
#
|
2016-03-16 09:35:29 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-11-28 13:35:01 +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/
|
2012-12-14 09:47:35 +00:00
|
|
|
#
|
2012-11-28 13:35:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
Name: python-stevedore
|
2016-04-28 14:55:29 +00:00
|
|
|
Version: 1.12.0
|
2012-11-28 13:35:01 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Manage dynamic plugins for Python applications
|
2012-12-14 09:47:35 +00:00
|
|
|
License: Apache-2.0
|
2012-11-28 13:35:01 +00:00
|
|
|
Group: Development/Languages/Python
|
2012-12-14 09:47:35 +00:00
|
|
|
Url: https://github.com/dreamhost/stevedore
|
2012-11-28 13:35:01 +00:00
|
|
|
Source: http://pypi.python.org/packages/source/s/stevedore/stevedore-%{version}.tar.gz
|
2016-03-16 09:35:29 +00:00
|
|
|
Source1: %{name}.changes
|
2012-11-28 13:35:01 +00:00
|
|
|
BuildRequires: python-devel
|
2013-12-03 09:28:54 +00:00
|
|
|
BuildRequires: python-pbr
|
2013-09-03 20:05:57 +00:00
|
|
|
BuildRequires: python-setuptools
|
2013-06-25 05:42:29 +00:00
|
|
|
# Documentation requirements:
|
|
|
|
BuildRequires: python-Sphinx
|
2015-02-25 01:18:18 +00:00
|
|
|
BuildRequires: python-oslosphinx
|
2013-06-25 05:42:29 +00:00
|
|
|
# Test requirements:
|
2016-04-28 14:55:29 +00:00
|
|
|
BuildRequires: python-Pillow
|
|
|
|
BuildRequires: python-mock
|
|
|
|
BuildRequires: python-oslotest
|
|
|
|
BuildRequires: python-testrepository
|
2014-09-24 11:10:00 +00:00
|
|
|
Requires: python-argparse
|
2015-07-21 11:27:28 +00:00
|
|
|
Requires: python-six >= 1.9.0
|
2012-11-28 13:35:01 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%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
|
|
|
|
Manage dynamic plugins for Python applications
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n stevedore-%{version}
|
2016-03-16 09:35:29 +00:00
|
|
|
# use the year from changelog instead of current one to make reproducible rpms
|
|
|
|
changelogyear=$(awk '/^[A-Z][a-z][a-z] [A-Z][a-z][a-z] +[0-9]+ [0-9]+:[0-9]+:[0-9]+ [A-Z]+ [1-9][0-9][0-9][0-9]/{print $6; exit}' %{S:1})
|
|
|
|
sed -i "s/datetime.date.today().year$/$changelogyear/" doc/source/conf.py
|
2012-11-28 13:35:01 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
2013-12-03 09:28:54 +00:00
|
|
|
rm -rf docs/build
|
2013-06-25 05:42:29 +00:00
|
|
|
python setup.py build_sphinx
|
2012-11-28 13:35:01 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
2016-04-28 14:55:29 +00:00
|
|
|
%check
|
|
|
|
python setup.py testr
|
2012-11-28 13:35:01 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2015-02-25 01:18:18 +00:00
|
|
|
%doc LICENSE README.rst doc/build/html
|
2012-11-28 13:35:01 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|