Files
rpm-packaging/openstack/futurist/futurist.spec.j2
Dirk Müller 3e1c758f4b Switch from license('Apache-2.0') to Apache-2.0
Fedora and RHEL transitioned away from legacy to standardized SPDX
identifiers, so we no longer need to wrap them

Change-Id: I95627dd233282da4d0e5323bfb2a29e378561c55
Signed-off-by: Dirk Müller <dirk@dmllr.de>
2025-07-02 07:26:11 +02:00

60 lines
1.6 KiB
Django/Jinja

{% set pypi_name = 'futurist' %}
{% set upstream_version = upstream_version('3.1.0') %}
{% set rpm_release = '1' %}
{% set source = url_pypi() %}
Name: {{ py2name() }}
Version: {{ py2rpmversion() }}
Release: {{ py2rpmrelease() }}
Summary: Useful additions to futures, from the future.
License: Apache-2.0
Group: Development/Languages/Python
URL: https://docs.openstack.org/{{ pypi_name }}
Source0: {{ source }}
BuildRequires: openstack-macros
BuildRequires: {{ py3('PrettyTable') }}
BuildRequires: {{ py3('Sphinx') }}
BuildRequires: {{ py3('eventlet') }}
BuildRequires: {{ py3('openstackdocstheme') }}
BuildRequires: {{ py3('oslotest') }}
BuildRequires: {{ py3('stestr') }}
BuildRequires: {{ py3('testscenarios') }}
BuildArch: noarch
%description
Useful additions to futures, from the future.
%package -n {{ py2name(py_versions='py3') }}
Summary: Useful additions to futures, from the future.
%description -n {{ py2name(py_versions='py3') }}
Useful additions to futures, from the future.
This package contains the Python 3.x module.
%prep
%autosetup -p1 -n {{ pypi_name }}-{{ upstream_version }}
%py_req_cleanup
%build
%{py3_build}
# generate html docs
PBR_VERSION={{ upstream_version }} %sphinx_build -b html doc/source doc/build/html
# remove the sphinx-build leftovers
rm -r doc/build/html/.{doctrees,buildinfo}
%install
%{py3_install}
%check
%{openstack_stestr_run}
%files -n {{ py2name(py_versions='py3') }}
%doc doc/build/html README.rst
%license LICENSE
%{python3_sitelib}/futurist
%{python3_sitelib}/futurist-*-py?.*.egg-info
%changelog