From 9299ab9e24b6fce1ad39caf453cc10690b78a07a Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Dec 06 2018 17:13:24 +0000 Subject: Update to 3.7.1 Make check_links a bcond --- diff --git a/.gitignore b/.gitignore index 4e19c5a..847bdfb 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ /Python-3.6.4.tar.xz /Python-3.6.5.tar.xz /Python-3.7.0rc1.tar.xz +/Python-3.7.1.tar.xz diff --git a/python3-docs.spec b/python3-docs.spec index 4cfe9cb..636b5bf 100644 --- a/python3-docs.spec +++ b/python3-docs.spec @@ -1,7 +1,7 @@ %if 0%{?fedora} -%global check_links 1 +%bcond_without check_links %else -%global check_links 0 +%bcond_with check_links %endif %{!?__python_ver:%global __python_ver 3} @@ -15,16 +15,16 @@ %endif %global pybasever 3.7 -%global prerel rc1 +%global prerel %{nil} Summary: Documentation for the Python 3 programming language Name: %{python}-docs # The Version needs to be in-sync with the "python" package: -Version: %{pybasever}.0 -Release: 0.2.%{?prerel}%{?dist} +Version: %{pybasever}.1 +Release: 1%{?dist} License: Python Group: Documentation -Source: https://www.python.org/ftp/python/%{version}/Python-%{version}%{prerel}.tar.xz +Source: https://www.python.org/ftp/python/%{version}/Python-%{version}%{?prerel}.tar.xz BuildArch: noarch Recommends: %{python} = %{version} @@ -34,7 +34,7 @@ BuildRequires: %{python}-sphinx BuildRequires: %{python}-docutils BuildRequires: %{python}-pygments -%if %{check_links} +%if %{with check_links} BuildRequires: linkchecker %endif @@ -48,7 +48,7 @@ Install the python3-docs package if you'd like to use the documentation for the Python 3 language. %prep -%setup -q -n Python-%{version}%{prerel} +%setup -q -n Python-%{version}%{?prerel} %build make -C Doc html SPHINXBUILD=sphinx-build-3 PYTHON=%{python} @@ -64,7 +64,7 @@ mkdir -p $RPM_BUILD_ROOT # (we can't check network links, as we shouldn't be making network connections # within a build. Also, don't bother checking the .txt source files; some # contain example URLs, which don't work) -%if %{check_links} +%if %{with check_links} linkchecker \ --ignore-url=^mailto: --ignore-url=^http --ignore-url=^ftp \ --ignore-url=.txt\$ --no-warnings \ @@ -75,6 +75,9 @@ linkchecker \ %doc Misc/NEWS Misc/HISTORY Misc/README Doc/build/html %changelog +* Thu Dec 06 2018 Miro Hrončok - 3.7.1-1 +- Update to 3.7.1 + * Sat Jul 14 2018 Fedora Release Engineering - 3.7.0-0.2.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index 8ed12d6..4d40818 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Python-3.7.0rc1.tar.xz) = cc4c29dfce7e2fca6328f802bd435e1ffc4acecd70d83d602a894bf076bdb95fb4635c891043ba1c3b6438d23ba7f76545cfe323ec0b57029b5c0f639fc6d2c5 +SHA512 (Python-3.7.1.tar.xz) = 3eb62a0127609b14420a47442727702f396519c649625aca59883d04f4c02e5f37ba1d58ac8e93c49d14a63f17ae7909315c33fc813293dbcdb6127f39a148b0