Browse Source

typing module is now part of Python itself

master
parent
commit
db60465064
  1. 16
      python-sys/python-sys.spec

16
python-sys/python-sys.spec

@ -31,7 +31,6 @@
%define V_shutilwhich 1.1.0
%define V_watchdog 0.9.0
%define V_pathtools 0.1.2
%define V_typing 3.7.4
# package information
Name: python-sys
@ -44,7 +43,7 @@ Class: BASE
Group: Language
License: GPL
Version: %{V_python}
Release: 20191126
Release: 20191212
# list of sources
Source0: https://files.pythonhosted.org/packages/source/p/psutil/psutil-%{V_psutil}.tar.gz
@ -55,7 +54,6 @@ Source4: https://files.pythonhosted.org/packages/source/s/six/six-%{V_six}.
Source5: https://files.pythonhosted.org/packages/source/s/shutilwhich/shutilwhich-%{V_shutilwhich}.tar.gz
Source6: https://files.pythonhosted.org/packages/source/w/watchdog/watchdog-%{V_watchdog}.tar.gz
Source7: https://files.pythonhosted.org/packages/source/p/pathtools/pathtools-%{V_pathtools}.tar.gz
Source8: https://files.pythonhosted.org/packages/source/t/typing/typing-%{V_typing}.tar.gz
# build information
BuildPreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python}
@ -106,11 +104,6 @@ PreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python}
url = https://pypi.python.org/pypi/pathtools
regex = pathtools-(__VER__)\.tar\.gz
}
prog python-sys:typing = {
version = %{V_typing}
url = https://pypi.python.org/pypi/typing
regex = typing-(__VER__)\.tar\.gz
}
%prep
%setup -q -c
@ -121,7 +114,6 @@ PreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python}
%setup -q -T -D -a 5
%setup -q -T -D -a 6
%setup -q -T -D -a 7
%setup -q -T -D -a 8
chmod -R a+rx shutilwhich-%{V_shutilwhich}
%build
@ -176,12 +168,6 @@ PreReq: OpenPKG, openpkg >= 20160101, python >= %{V_python}
--root=$RPM_BUILD_ROOT \
--prefix=%{l_prefix}
) || exit $?
( cd typing-%{V_typing}
%{l_prefix}/bin/python \
setup.py install \
--root=$RPM_BUILD_ROOT \
--prefix=%{l_prefix}
) || exit $?
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files

Loading…
Cancel
Save