%{!?sources_gpg: %{!?dlrn:%global sources_gpg 1} } %global sources_gpg_sign 0x4c29ff0e437f3351fd82bdf47c5a3bc787dc7035 %{!?upstream_version: %global upstream_version %{version}%{?milestone}} %global with_doc 1 %global pypi_name oslo.middleware %global pkg_name oslo-middleware %global common_desc \ The OpenStack Oslo Middleware library. \ Oslo middleware library includes components that can be injected into wsgi \ pipelines to intercept request/response flows. The base class can be \ enhanced with functionality like add/delete/modification of http headers \ and support for limiting size/connection etc. %global common_desc2 \ Tests for the Oslo Middleware library. Name: python-oslo-middleware Version: 4.3.0 Release: 2%{?dist} Summary: OpenStack Oslo Middleware library License: ASL 2.0 URL: https://launchpad.net/oslo Source0: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz # License file for jslibs using in -doc subpkg Source1: LICENSE_doc # Required for tarball sources verification %if 0%{?sources_gpg} == 1 Source101: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz.asc Source102: https://releases.openstack.org/_static/%{sources_gpg_sign}.txt %endif BuildArch: noarch # Required for tarball sources verification %if 0%{?sources_gpg} == 1 BuildRequires: /usr/bin/gpgv2 %endif %package -n python3-%{pkg_name} Summary: OpenStack Oslo Middleware library %py_provides python3-%{pkg_name} BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel BuildRequires: python3-pbr # for docs build BuildRequires: git-core BuildRequires: python3-oslo-config BuildRequires: python3-oslo-context BuildRequires: python3-oslo-i18n BuildRequires: python3-oslo-utils # Required for testing BuildRequires: python3-fixtures BuildRequires: python3-hacking BuildRequires: python3-jinja2 BuildRequires: python3-oslotest BuildRequires: python3-oslo-serialization BuildRequires: python3-statsd BuildRequires: python3-testtools BuildRequires: python3-webob # Required to compile translation files BuildRequires: python3-babel Requires: python3-pbr Requires: python3-debtcollector Requires: python3-jinja2 Requires: python3-oslo-config Requires: python3-oslo-context Requires: python3-oslo-i18n Requires: python3-oslo-utils Requires: python3-statsd Requires: python3-stevedore Requires: python3-webob %generate_buildrequires %pyproject_buildrequires -r %description -n python3-%{pkg_name} %{common_desc} %if 0%{?with_doc} %package -n python-%{pkg_name}-doc Summary: Documentation for the Oslo Middleware library # BSD for sphinx. MIT for jquery.js and underscore.js. License: ASL 2.0 and BSD and MIT BuildRequires: python3-sphinx BuildRequires: python3-openstackdocstheme %description -n python-%{pkg_name}-doc Documentation for the Oslo Middleware library. %endif %package -n python3-%{pkg_name}-tests Summary: Tests for the Oslo Middleware library Requires: python3-%{pkg_name} = %{version}-%{release} Requires: python3-fixtures Requires: python3-hacking Requires: python3-oslotest Requires: python3-testtools %description -n python3-%{pkg_name}-tests %{common_desc2} %description %{common_desc} %prep # Required for tarball sources verification %if 0%{?sources_gpg} == 1 %{gpgverify} --keyring=%{SOURCE102} --signature=%{SOURCE101} --data=%{SOURCE0} %endif %autosetup -n %{pypi_name}-%{upstream_version} -S git # Let RPM handle the dependencies rm -rf {test-,}requirements.txt install -m 644 %{SOURCE1} %{_builddir}/%{pypi_name}-%{version}/LICENSE_doc %build %pyproject_wheel %if 0%{?with_doc} # generate html docs sphinx-build-3 -b html doc/source doc/build/html # remove the sphinx-build-3 leftovers rm -rf doc/build/html/.{doctrees,buildinfo} %endif %install %pyproject_install %pyproject_save_files oslo_middleware %check %{python3} setup.py test %files -n python3-%{pkg_name} -f %{pyproject_files} %license LICENSE %doc README.rst %exclude %{python3_sitelib}/oslo_middleware/tests/ %if 0%{?with_doc} %files -n python-%{pkg_name}-doc %license LICENSE LICENSE_doc %doc doc/build/html %endif %files -n python3-%{pkg_name}-tests %{python3_sitelib}/oslo_middleware/tests/ %changelog * Wed Sep 29 2021 Hirotaka Wakabayashi - 4.3.0-2 - Fixes issues on packaging guidelines * Wed Aug 11 2021 Hirotaka Wakabayashi - 4.3.0-1 - Un-retired and update to 4.3.0 * Thu Jan 31 2019 Yatin Karel - 3.34.0-2 - Drop python2 sub packages (#1634863) * Sat Feb 10 2018 RDO 3.34.0-1 - Update to 3.34.0