Upgrade to 10.2.1

Signed-off-by: cherry530 <707078654@qq.com>
This commit is contained in:
cherry530 2023-04-28 10:57:37 +08:00
parent 8300dede08
commit 8f71274471
4 changed files with 22 additions and 46 deletions

View File

@ -1,30 +0,0 @@
From e38283748f9a05da409ffbdac3f623d100aa2818 Mon Sep 17 00:00:00 2001
From: Todd Zullinger <tmz@pobox.com>
Date: Sun, 9 Dec 2018 14:11:33 -0500
Subject: [PATCH] drop python shebang opts
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Fedora's RPM build scripts add the executable path and the '-s' option
to the shebang, which breaks the script¹. We'll add the '-Ru' options
via the %py2_shbang_opts while building.
¹ https://bugzilla.redhat.com/1335203
---
linkchecker | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/linkchecker b/linkchecker
index 9b5be4a0..b7c3949e 100755
--- a/linkchecker
+++ b/linkchecker
@@ -1,4 +1,4 @@
-#!/usr/bin/python -Ru
+#!/usr/bin/python
# -*- coding: iso-8859-1 -*-
# Copyright (C) 2000-2014 Bastian Kleineidam
#
--
2.20.0.rc2

BIN
LinkChecker-10.2.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,16 +1,20 @@
%global py3_shbang_opts -sRu
%define debug_package %{nil}
Name: linkchecker
%global commit 72b85c4e2d74fa2b3cf11fb452b8fc2736e8ebbf
Version: 9.4.0
Release: 8.72b85c4
Version: 10.2.1
Release: 1
Summary: Check HTML documents for broken links
License: GPLv2
URL: https://linkcheck.github.io/linkchecker/
Source0: https://github.com/cjmayo/linkchecker/archive/%{commit}.tar.gz
Patch0000: 0001-drop-python-shebang-opts.patch
Source0: https://github.com/linkchecker/linkchecker/releases/download/v{version}/LinkChecker-%{version}.tar.gz
BuildRequires: gcc gettext python3-devel python3-setuptools
BuildRequires: python3dist(dnspython) python3dist(future) python3dist(pyxdg)
BuildRequires: python3dist(requests) >= 2.4
BuildRequires: python3-pip python3-hatchling python3-hatch-vcs python3-wheel python3-pytest
BuildRequires: python3-beautifulsoup4
BuildRequires: python3dist(pytest-xdist)
BuildRequires: python3dist(pyopenssl)
BuildRequires: python3dist(parameterized)
%description
LinkChecker is a website validator. LinkChecker checks links in web documents or full websites.
@ -32,29 +36,25 @@ support
... and a lot more ...
%prep
%autosetup -p1 -n %{name}-%{commit}
%autosetup -p1 -n %{name}-%{version}
%build
%py3_build
%pyproject_build
%install
%py3_install
rm %{buildroot}%{_datadir}/applications/linkchecker.desktop
%pyproject_install linkchecker==10.2.1
%find_lang linkchecker
%check
cd /
export PYTHONPATH=%{buildroot}%{python3_sitearch}
%{buildroot}%{_bindir}/linkchecker --help
pytest --ignore=tests/checker/test_telnet.py
%files -f linkchecker.lang
%{python3_sitelib}/linkcheck*
%{python3_sitelib}/LinkChecker*
%doc doc/changelog.txt doc/upgrading.txt
%license COPYING
%{_bindir}/linkchecker
%{python3_sitearch}/linkcheck/
%{python3_sitearch}/_LinkChecker_configdata.py
%{python3_sitearch}/__pycache__/_LinkChecker_configdata.*.pyc
%{python3_sitearch}/LinkChecker-*-py%{python3_version}.egg-info/
%{_mandir}/man1/linkchecker*.1*
%{_mandir}/man5/linkcheckerrc.5*
%lang(de) %{_mandir}/de/man1/linkchecker*.1*
@ -62,6 +62,12 @@ export PYTHONPATH=%{buildroot}%{python3_sitearch}
%{_datadir}/linkchecker/
%changelog
* Thu Apr 27 2023 xu_ping <707078654@qq.com> - 10.2.1-1
- Upgrade to 10.2.1
* Sat Jul 18 2020 huanghaitao <huanghaitao8@huawei.com> - 9.4.0-8.72b85c4
- Upgrade to a python3 supported version
* Sat Jul 18 2020 huanghaitao <huanghaitao8@huawei.com> - 9.4.0-8.72b85c4
- Upgrade to a python3 supported version