49 lines
1.2 KiB
Django/Jinja
49 lines
1.2 KiB
Django/Jinja
{% set pypi_name = 'oslosphinx' %}
|
|
{% set upstream_version = upstream_version('4.18.0') %}
|
|
{% set rpm_release = '1' %}
|
|
{% set source = url_pypi() %}
|
|
|
|
Name: {{ py2name() }}
|
|
Version: {{ py2rpmversion() }}
|
|
Release: {{ py2rpmrelease() }}
|
|
Summary: OpenStack Sphinx
|
|
License: {{ license('Apache-2.0') }}
|
|
Group: Development/Languages/Python
|
|
URL: https://launchpad.net/{{ pypi_name }}
|
|
Source0: {{ source }}
|
|
BuildRequires: openstack-macros
|
|
BuildRequires: {{ py3('pbr') }}
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
The Oslo Sphinx library provides an OpenStack common
|
|
layer of Sphinx plugins.
|
|
|
|
%package -n {{ py2name(py_versions='py3') }}
|
|
Summary: OpenStack Sphinx
|
|
Requires: {{ py3('pbr') }}
|
|
Requires: {{ py3('requests') }}
|
|
Requires: {{ py3('six') }}
|
|
|
|
%description -n {{ py2name(py_versions='py3') }}
|
|
The Oslo Sphinx library provides an OpenStack common
|
|
layer of Sphinx plugins.
|
|
|
|
%prep
|
|
%autosetup -p1 -n {{ pypi_name }}-{{ upstream_version }}
|
|
%py_req_cleanup
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
%files -n {{ py2name(py_versions='py3') }}
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%{python3_sitelib}/{{ pypi_name }}
|
|
%{python3_sitelib}/*.egg-info
|
|
|
|
%changelog
|