forked from pool/python-stevedore
Accepting request 434518 from Cloud:OpenStack:Factory
- add source service to rpm-packaging and refresh OBS-URL: https://build.opensuse.org/request/show/434518 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-stevedore?expand=0&rev=25
This commit is contained in:
11
_service
Normal file
11
_service
Normal file
@@ -0,0 +1,11 @@
|
||||
<services>
|
||||
<service mode="disabled" name="renderspec">
|
||||
<param name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/newton/openstack/stevedore/stevedore.spec.j2</param>
|
||||
<param name="output-name">python-stevedore.spec</param>
|
||||
<param name="requirements">https://raw.githubusercontent.com/openstack/requirements/stable/newton/global-requirements.txt</param>
|
||||
</service>
|
||||
<service mode="disabled" name="download_files">
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service name="format_spec_file" mode="disabled"/>
|
||||
</services>
|
||||
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 2 16:14:46 UTC 2016 - dmueller@suse.com
|
||||
|
||||
- add source service to rpm-packaging and refresh
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 30 19:26:08 UTC 2016 - tbechtold@suse.com
|
||||
|
||||
|
||||
@@ -16,58 +16,80 @@
|
||||
#
|
||||
|
||||
|
||||
%global pypi_name stevedore
|
||||
Name: python-stevedore
|
||||
Version: 1.17.1
|
||||
Release: 0
|
||||
Summary: Manage dynamic plugins for Python applications
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/dreamhost/stevedore
|
||||
Source: https://pypi.io/packages/source/s/stevedore/stevedore-%{version}.tar.gz
|
||||
Source1: %{name}.changes
|
||||
Url: http://docs.openstack.org/developer/stevedore/
|
||||
Source0: https://tarballs.openstack.org/stevedore/%{pypi_name}-%{version}.tar.gz
|
||||
BuildRequires: openstack-macros
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-pbr
|
||||
BuildRequires: python-setuptools
|
||||
# Documentation requirements:
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-oslosphinx
|
||||
# Test requirements:
|
||||
BuildRequires: python-Pillow
|
||||
BuildRequires: python-mock
|
||||
BuildRequires: python-oslotest
|
||||
BuildRequires: python-testrepository
|
||||
Requires: python-argparse
|
||||
BuildRequires: python-mock >= 2.0
|
||||
BuildRequires: python-oslotest >= 1.10.0
|
||||
BuildRequires: python-pbr >= 1.6
|
||||
BuildRequires: python-setuptools >= 16.0
|
||||
Requires: python-pbr >= 1.6
|
||||
Requires: python-six >= 1.9.0
|
||||
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
|
||||
Python makes loading code dynamically easy, allowing you to configure
|
||||
and extend your application by discovering and loading extensions
|
||||
(plugins) at runtime. Many applications implement their own
|
||||
library for doing this, using ``__import__`` or ``importlib``.
|
||||
stevedore avoids creating yet another extension
|
||||
mechanism by building on top of setuptools entry points. The code
|
||||
for managing entry points tends to be repetitive, though, so stevedore
|
||||
provides manager classes for implementing common patterns for using
|
||||
dynamically loaded extensions.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Documentation
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-oslosphinx >= 2.5.0
|
||||
|
||||
%description doc
|
||||
Python makes loading code dynamically easy, allowing you to configure
|
||||
and extend your application by discovering and loading extensions
|
||||
(plugins) at runtime. Many applications implement their own
|
||||
library for doing this, using ``__import__`` or ``importlib``.
|
||||
stevedore avoids creating yet another extension
|
||||
mechanism by building on top of setuptools entry points. The code
|
||||
for managing entry points tends to be repetitive, though, so stevedore
|
||||
provides manager classes for implementing common patterns for using
|
||||
dynamically loaded extensions.
|
||||
|
||||
This package contains documentation in HTML format.
|
||||
|
||||
%prep
|
||||
%setup -q -n stevedore-%{version}
|
||||
# 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
|
||||
%setup -q -n %{pypi_name}-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
rm -rf docs/build
|
||||
python setup.py build_sphinx
|
||||
%py2_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
# generate html docs
|
||||
%{__python2} setup.py build_sphinx
|
||||
# remove the Sphinx-build leftovers
|
||||
rm -rf html/.{doctrees,buildinfo}
|
||||
|
||||
%check
|
||||
python setup.py testr
|
||||
%{__python2} setup.py testr
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README.rst doc/build/html
|
||||
%{python_sitelib}/*
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python2_sitelib}/%{pypi_name}
|
||||
%{python2_sitelib}/%{pypi_name}-*.egg-info
|
||||
|
||||
%files doc
|
||||
%license LICENSE
|
||||
%doc doc/build/html
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user