python-requests-kerberos/python-requests-kerberos.spec

81 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-06 10:25:22 +08:00
%global _empty_manifest_terminate_build 0
Name: python-requests-kerberos
2022-10-28 11:30:26 +08:00
Version: 0.14.0
2020-08-06 10:25:22 +08:00
Release: 1
Summary: A Kerberos authentication handler for python-requests
License: MIT
URL: https://github.com/requests/requests-kerberos
2022-10-28 11:30:26 +08:00
Source0: https://files.pythonhosted.org/packages/3d/ca/cad727db9eaae0db743982a8197c8a58cc85ed142354abfade1567ede9dc/requests-kerberos-0.14.0.tar.gz
2020-08-06 10:25:22 +08:00
BuildArch: noarch
Requires: python3-requests python3-cryptography
%description
Requests is an HTTP library, written in Python, for human beings. This library
adds optional Kerberos/GSSAPI authentication support and supports mutual
2020-08-11 21:15:41 +08:00
authentication.
2020-08-06 10:25:22 +08:00
%package -n python3-requests-kerberos
Summary: A Kerberos authentication handler for python-requests
2022-10-28 11:30:26 +08:00
Provides: python-requests-kerberos = %{version}-%{release}
2020-08-06 10:25:22 +08:00
BuildRequires: python3-devel python3-setuptools
%description -n python3-requests-kerberos
Requests is an HTTP library, written in Python, for human beings. This library
adds optional Kerberos/GSSAPI authentication support and supports mutual
2020-08-11 21:15:41 +08:00
authentication.
2020-08-06 10:25:22 +08:00
%package help
Summary: Development documents and examples for requests-kerberos
Provides: python3-requests-kerberos-doc
%description help
Requests is an HTTP library, written in Python, for human beings. This library
adds optional Kerberos/GSSAPI authentication support and supports mutual
2020-08-11 21:15:41 +08:00
authentication.
2020-08-06 10:25:22 +08:00
%prep
2022-10-28 11:30:26 +08:00
%autosetup -n requests-kerberos-%{version} -p1
2020-08-06 10:25:22 +08:00
%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-requests-kerberos -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
2022-10-28 11:30:26 +08:00
* Fri Oct 28 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.14.0-1
- Update package to version 0.14.0
2020-08-06 10:25:22 +08:00
* Tue Aug 4 2020 wangxiao <wangxiao65@huawei.com> - 0.12.0-1
- package init