python-oslo.middleware/python-oslo.middleware.spec

105 lines
3.6 KiB
RPMSpec
Raw Normal View History

2021-01-08 16:41:03 +08:00
%global _empty_manifest_terminate_build 0
2021-07-12 01:18:01 +00:00
Name: python-oslo-middleware
Version: 3.38.1
Release: 1
2021-07-12 01:18:01 +00:00
Summary: Oslo Middleware library
License: Apache-2.0
URL: https://docs.openstack.org/oslo.middleware/latest/
Source0: https://files.pythonhosted.org/packages/98/ae/3f2ecb03ed0965aa1abffaabef19c5f81843346a9f703be1b53179694eff/oslo.middleware-3.38.1.tar.gz
2021-07-12 01:18:01 +00:00
BuildArch: noarch
2021-01-08 16:41:03 +08:00
%description
2021-08-03 03:01:47 +00:00
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.
2021-01-08 16:41:03 +08:00
%package -n python3-oslo-middleware
2021-07-12 01:18:01 +00:00
Summary: Oslo Middleware library
Provides: python-oslo-middleware
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2021-01-29 18:26:17 +08:00
BuildRequires: python3-pbr
2021-07-12 01:18:01 +00:00
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-jinja2
BuildRequires: python3-oslo-config
BuildRequires: python3-oslo-context
BuildRequires: python3-oslo-i18n
BuildRequires: python3-oslo-utils
BuildRequires: python3-six
2021-07-12 01:18:01 +00:00
BuildRequires: python3-stevedore
BuildRequires: python3-webob
BuildRequires: python3-debtcollector
BuildRequires: python3-statsd
2021-07-12 01:18:01 +00:00
# General requires
Requires: python3-pbr
2021-07-12 01:18:01 +00:00
Requires: python3-jinja2
Requires: python3-oslo-config
Requires: python3-oslo-context
Requires: python3-oslo-i18n
Requires: python3-oslo-utils
Requires: python3-six
2021-07-12 01:18:01 +00:00
Requires: python3-stevedore
Requires: python3-webob
Requires: python3-debtcollector
Requires: python3-statsd
2021-01-08 16:41:03 +08:00
%description -n python3-oslo-middleware
2021-08-03 03:01:47 +00:00
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.
2021-01-08 16:41:03 +08:00
%package help
2021-07-12 01:18:01 +00:00
Summary: Oslo Middleware library
Provides: python3-oslo-middleware-doc
2021-01-08 16:41:03 +08:00
%description help
2021-08-03 03:01:47 +00:00
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.
2021-01-08 16:41:03 +08:00
%prep
2021-08-03 03:01:47 +00:00
%autosetup -n oslo.middleware-%{version}
2021-01-08 16:41:03 +08:00
%build
%py3_build
%install
%py3_install
2021-01-08 16:41:03 +08:00
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
2021-07-12 01:18:01 +00:00
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
2021-01-08 16:41:03 +08:00
fi
if [ -d usr/lib64 ]; then
2021-07-12 01:18:01 +00:00
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
2021-01-08 16:41:03 +08:00
fi
if [ -d usr/bin ]; then
2021-07-12 01:18:01 +00:00
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
2021-01-08 16:41:03 +08:00
fi
if [ -d usr/sbin ]; then
2021-07-12 01:18:01 +00:00
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
2021-01-08 16:41:03 +08:00
fi
touch doclist.lst
if [ -d usr/share/man ]; then
2021-07-12 01:18:01 +00:00
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
2021-01-08 16:41:03 +08:00
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-oslo-middleware -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Mon Nov 15 2021 OpenStack_SIG <openstack@openeuler.org> - 3.38.1-1
- Init package python3-oslo-middleware of version 3.38.1