2021-08-03 07:44:41 +00:00
|
|
|
%global _empty_manifest_terminate_build 0
|
|
|
|
|
Name: python-typing-extensions
|
2023-05-09 17:45:16 +08:00
|
|
|
Version: 4.5.0
|
2021-08-03 07:44:41 +00:00
|
|
|
Release: 1
|
|
|
|
|
Summary: Backported and Experimental Type Hints for Python 3.5+
|
2023-05-09 17:45:16 +08:00
|
|
|
License: PSF-2.0
|
2021-08-03 07:44:41 +00:00
|
|
|
URL: https://github.com/python/typing/blob/master/typing_extensions/README.rst
|
2023-05-09 17:45:16 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/d3/20/06270dac7316220643c32ae61694e451c98f8caf4c8eab3aa80a2bedf0df/typing_extensions-4.5.0.tar.gz
|
2021-08-03 07:44:41 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%description
|
|
|
|
|
Typing Extensions - Backported and Experimental Type Hints for Python.
|
|
|
|
|
The typing module was added to the standard library in Python 3.5, but many new features have been added to the module since then.
|
|
|
|
|
This means users of Python 3.5 - 3.6 who are unable to upgrade will not be able to take advantage of new types added to the typing
|
|
|
|
|
module, such as typing.Protocol or typing.TypedDict.
|
|
|
|
|
The typing_extensions module contains backports of these changes. Experimental types that will eventually be added to the typing
|
|
|
|
|
module are also included in typing_extensions, such as typing.ParamSpec and typing.TypeGuard.
|
|
|
|
|
|
|
|
|
|
%package -n python3-typing-extensions
|
|
|
|
|
Summary: Backported and Experimental Type Hints for Python 3.5+
|
2023-05-09 17:45:16 +08:00
|
|
|
Provides: python-typing-extensions = %{version}-%{release}
|
2021-08-03 07:44:41 +00:00
|
|
|
# Base build requires
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-pbr
|
2023-05-09 17:45:16 +08:00
|
|
|
BuildRequires: python3-pip python3-flit-core
|
|
|
|
|
BuildRequires: python3-wheel python3-test
|
2021-08-03 07:44:41 +00:00
|
|
|
%description -n python3-typing-extensions
|
|
|
|
|
Typing Extensions -Backported and Experimental Type Hints for Python.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Backported and Experimental Type Hints for Python 3.5+
|
|
|
|
|
Provides: python3-typing-extensions-doc
|
|
|
|
|
%description help
|
|
|
|
|
Typing Extensions -Backported and Experimental Type Hints for Python.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n typing_extensions-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2023-05-09 17:45:16 +08:00
|
|
|
%pyproject_build
|
2021-08-03 07:44:41 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-05-09 17:45:16 +08:00
|
|
|
%pyproject_install typing-extensions==%{version}
|
2021-08-03 07:44:41 +00: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
|
|
|
|
|
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 .
|
|
|
|
|
|
|
|
|
|
%check
|
2023-05-09 17:45:16 +08:00
|
|
|
cd src
|
|
|
|
|
%{__python3} -m unittest discover
|
2021-08-03 07:44:41 +00:00
|
|
|
|
|
|
|
|
%files -n python3-typing-extensions -f filelist.lst
|
|
|
|
|
|
|
|
|
|
%dir %{python3_sitelib}/*
|
2023-05-09 17:45:16 +08:00
|
|
|
%{python3_sitelib}/__pycache__/
|
2021-08-03 07:44:41 +00:00
|
|
|
|
|
|
|
|
%files help -f doclist.lst
|
2023-05-09 17:45:16 +08:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc CHANGELOG.md README.md
|
2021-08-03 07:44:41 +00:00
|
|
|
%{_docdir}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-05-09 17:45:16 +08:00
|
|
|
* Tue May 9 2023 liyanan <thistleslyn@163.com> - 4.5.0-1
|
|
|
|
|
- Update package to version 4.5.0
|
|
|
|
|
|
2022-05-06 11:36:00 +08:00
|
|
|
* Fri May 06 2022 huangtianhua <huangtianhua@huawei.com> - 3.10.0.2-1
|
|
|
|
|
- upgrade to 3.10.0.2 to fix python3.10 test error
|
|
|
|
|
|
2021-08-26 19:18:38 +08:00
|
|
|
* Thu Aug 26 2021 orange-snn <songnannan2@huaiwe.com> - 3.10.0.0-1
|
|
|
|
|
- update to 3.10.0.0
|
|
|
|
|
|
2021-08-03 07:44:41 +00:00
|
|
|
* Tue Aug 03 2021 OpenStack_SIG <openstack@openeuler.org> - 3.7.4.3-1
|
|
|
|
|
- Package Spec generate
|