86 lines
2.6 KiB
RPMSpec
86 lines
2.6 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
Name: python-responses
|
|
Version: 0.18.0
|
|
Release: 1
|
|
Summary: A utility library for mocking out the `requests` Python library.
|
|
License: Apache-2.0
|
|
URL: https://github.com/getsentry/responses
|
|
Source0: https://files.pythonhosted.org/packages/03/a5/186653e51cb20fe3ac793403334d4d077fbb7bb18a9c5c2fce8304d5a2e2/responses-0.18.0.tar.gz
|
|
BuildArch: noarch
|
|
%description
|
|
A utility library for mocking out the requests Python library.
|
|
|
|
%package -n python3-responses
|
|
Summary: A utility library for mocking out the `requests` Python library.
|
|
Provides: python-responses
|
|
# Base build requires
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pbr
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-requests
|
|
BuildRequires: python3-urllib3
|
|
BuildRequires: python3-six
|
|
BuildRequires: python3-mock
|
|
Requires: python3-requests
|
|
Requires: python3-urllib3
|
|
Requires: python3-six
|
|
Requires: python3-mock
|
|
%description -n python3-responses
|
|
A utility library for mocking out the requests Python library.
|
|
|
|
%package help
|
|
Summary: A utility library for mocking out the `requests` Python library.
|
|
Provides: python3-responses-doc
|
|
%description help
|
|
A utility library for mocking out the requests Python library.
|
|
|
|
%prep
|
|
%autosetup -n responses-%{version}
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
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
|
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
if [ -d usr/lib64 ]; then
|
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
if [ -d usr/bin ]; then
|
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
if [ -d usr/sbin ]; then
|
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
touch doclist.lst
|
|
if [ -d usr/share/man ]; then
|
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
|
fi
|
|
popd
|
|
mv %{buildroot}/filelist.lst .
|
|
mv %{buildroot}/doclist.lst .
|
|
|
|
%files -n python3-responses -f filelist.lst
|
|
%dir %{python3_sitelib}/*
|
|
|
|
%files help -f doclist.lst
|
|
%{_docdir}/*
|
|
|
|
%changelog
|
|
* Wed May 18 2022 OpenStack_SIG <openstack@openeuler.org> - 0.18.0-1
|
|
- Upgrade package python3-responses to version 0.18.0
|
|
|
|
* Mon Aug 09 2021 OpenStack_SIG <openstack@openeuler.org> - 0.12.1-1
|
|
- Package Spec generate
|