!1 add responses support for openeuler
From: @ffrog Reviewed-by: @xiyuanwang Signed-off-by: @xiyuanwang
This commit is contained in:
commit
12a702ef22
83
python-responses.spec
Normal file
83
python-responses.spec
Normal file
@ -0,0 +1,83 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
%global __requires_exclude cookies
|
||||
Name: python-responses
|
||||
Version: 0.12.1
|
||||
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/88/98/bf9e777a482ac076a6d75fad7d62b064f535244bf1771c3b2a7d41fd5920/responses-0.12.1.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
|
||||
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-0.12.1
|
||||
|
||||
%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
|
||||
* Mon Aug 09 2021 OpenStack_SIG <openstack@openeuler.org> - 0.12.1-1
|
||||
- Package Spec generate
|
||||
BIN
responses-0.12.1.tar.gz
Normal file
BIN
responses-0.12.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user