!7 Upgrade package to 10.2.1 version

From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-04-28 03:41:56 +00:00 committed by Gitee
commit 8c4fbc07cf
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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 Name: linkchecker
%global commit 72b85c4e2d74fa2b3cf11fb452b8fc2736e8ebbf Version: 10.2.1
Version: 9.4.0 Release: 1
Release: 8.72b85c4
Summary: Check HTML documents for broken links Summary: Check HTML documents for broken links
License: GPLv2 License: GPLv2
URL: https://linkcheck.github.io/linkchecker/ URL: https://linkcheck.github.io/linkchecker/
Source0: https://github.com/cjmayo/linkchecker/archive/%{commit}.tar.gz Source0: https://github.com/linkchecker/linkchecker/releases/download/v{version}/LinkChecker-%{version}.tar.gz
Patch0000: 0001-drop-python-shebang-opts.patch
BuildRequires: gcc gettext python3-devel python3-setuptools BuildRequires: gcc gettext python3-devel python3-setuptools
BuildRequires: python3dist(dnspython) python3dist(future) python3dist(pyxdg) BuildRequires: python3dist(dnspython) python3dist(future) python3dist(pyxdg)
BuildRequires: python3dist(requests) >= 2.4 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 %description
LinkChecker is a website validator. LinkChecker checks links in web documents or full websites. LinkChecker is a website validator. LinkChecker checks links in web documents or full websites.
@ -32,29 +36,25 @@ support
... and a lot more ... ... and a lot more ...
%prep %prep
%autosetup -p1 -n %{name}-%{commit} %autosetup -p1 -n %{name}-%{version}
%build %build
%py3_build %pyproject_build
%install %install
%py3_install %pyproject_install linkchecker==10.2.1
rm %{buildroot}%{_datadir}/applications/linkchecker.desktop
%find_lang linkchecker %find_lang linkchecker
%check %check
cd /
export PYTHONPATH=%{buildroot}%{python3_sitearch} export PYTHONPATH=%{buildroot}%{python3_sitearch}
%{buildroot}%{_bindir}/linkchecker --help pytest --ignore=tests/checker/test_telnet.py
%files -f linkchecker.lang %files -f linkchecker.lang
%{python3_sitelib}/linkcheck*
%{python3_sitelib}/LinkChecker*
%doc doc/changelog.txt doc/upgrading.txt %doc doc/changelog.txt doc/upgrading.txt
%license COPYING %license COPYING
%{_bindir}/linkchecker %{_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}/man1/linkchecker*.1*
%{_mandir}/man5/linkcheckerrc.5* %{_mandir}/man5/linkcheckerrc.5*
%lang(de) %{_mandir}/de/man1/linkchecker*.1* %lang(de) %{_mandir}/de/man1/linkchecker*.1*
@ -62,6 +62,12 @@ export PYTHONPATH=%{buildroot}%{python3_sitearch}
%{_datadir}/linkchecker/ %{_datadir}/linkchecker/
%changelog %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 * Sat Jul 18 2020 huanghaitao <huanghaitao8@huawei.com> - 9.4.0-8.72b85c4
- Upgrade to a python3 supported version - Upgrade to a python3 supported version