| |
@@ -79,8 +79,10 @@
|
| |
# ==================
|
| |
# Top-level metadata
|
| |
# ==================
|
| |
- Summary: Version 3.5 of the Python programming language
|
| |
Name: python%{pyshortver}
|
| |
+ Summary: Version %{pybasever} of the Python programming language
|
| |
+ URL: https://www.python.org/
|
| |
+
|
| |
%global general_version %{pybasever}.8
|
| |
#global prerel ...
|
| |
%global upstream_version %{general_version}%{?prerel}
|
| |
@@ -115,6 +117,7 @@
|
| |
BuildRequires: glibc-all-langpacks
|
| |
BuildRequires: glibc-devel
|
| |
BuildRequires: gmp-devel
|
| |
+ BuildRequires: gnupg2
|
| |
BuildRequires: libffi-devel
|
| |
BuildRequires: libGL-devel
|
| |
BuildRequires: libX11-devel
|
| |
@@ -164,7 +167,9 @@
|
| |
# Source code and patches
|
| |
# =======================
|
| |
|
| |
- Source: http://www.python.org/ftp/python/%{general_version}/Python-%{upstream_version}.tar.xz
|
| |
+ Source0: %{url}ftp/python/%{general_version}/Python-%{upstream_version}.tar.xz
|
| |
+ Source1: %{url}ftp/python/%{general_version}/Python-%{upstream_version}.tar.xz.asc
|
| |
+ Source2: %{url}static/files/pubkeys.txt
|
| |
|
| |
# Supply an RPM macro "py_byte_compile" for the python3-devel subpackage
|
| |
# to enable specfiles to selectively byte-compile individual files and paths
|
| |
@@ -421,8 +426,6 @@
|
| |
# Additional metadata, and subpackages
|
| |
# ======================================================
|
| |
|
| |
- URL: http://www.python.org/
|
| |
-
|
| |
# We'll not provide this, on purpose
|
| |
# No package in Fedora shall ever depend on this
|
| |
# Provides: python(abi) = %%{pybasever}
|
| |
@@ -452,6 +455,7 @@
|
| |
# ======================================================
|
| |
|
| |
%prep
|
| |
+ %gpgverify -k2 -s1 -d0
|
| |
%setup -q -n Python-%{upstream_version}
|
| |
|
| |
%if 0%{?with_systemtap}
|
| |
This is now a recommended thing to do:
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_source_file_verification
Regardless if it adds actual security, it should prevent problems like this one:
https://mail.python.org/archives/list/python-dev@python.org/message/OYNQS2BZYABXACBRHBHV4RCEPQU5R6EP/