Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
f1d4e69b89
!9 修复测试中不可达的链接
From: @laokz 
Reviewed-by: @wk333 
Signed-off-by: @wk333
2024-04-03 01:36:53 +00:00
laokz
786d1ebff3 fix unreachable url in test 2024-04-02 20:52:01 +08:00
openeuler-ci-bot
cc96a15767
!8 Upgrade to 10.4.0
From: @lyn1001 
Reviewed-by: @starlet-dx 
Signed-off-by: @starlet-dx
2024-02-27 08:54:21 +00:00
lyn1001
49ab8fc115 Upgrade to 10.4.0 2024-02-26 11:32:22 +08:00
openeuler-ci-bot
8c4fbc07cf
!7 Upgrade package to 10.2.1 version
From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-04-28 03:41:56 +00:00
cherry530
8f71274471 Upgrade to 10.2.1
Signed-off-by: cherry530 <707078654@qq.com>
2023-04-28 10:57:37 +08:00
openeuler-ci-bot
8300dede08 !3 Upgrade to a python3 supported version
Merge pull request !3 from huanghaitao/master
2020-07-23 09:14:28 +08:00
hht8
6aaba6593a add patch to fix build error 2020-07-22 18:20:31 +08:00
hht8
635936bc7e Upgrade to a python3 supported version 2020-07-22 17:42:53 +08:00
openeuler-ci-bot
78943db44b !1 Package init
Merge pull request !1 from 雷炬/master
2020-07-16 19:04:37 +08:00
lei_ju
8e9edbd624 Package init 2020-07-07 15:58:59 +08:00
3 changed files with 89 additions and 0 deletions

BIN
LinkChecker-10.4.0.tar.gz Normal file

Binary file not shown.

84
linkchecker.spec Normal file
View File

@ -0,0 +1,84 @@
%define debug_package %{nil}
Name: linkchecker
Version: 10.4.0
Release: 2
Summary: Check HTML documents for broken links
License: GPLv2
URL: https://linkcheck.github.io/linkchecker/
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.
Features:
- Recursive and multithreaded checking and site crawling
- Output in colored or normal text, HTML, SQL, CSV, XML or a sitemap graph in
different formats
- HTTP/1.1, HTTPS, FTP, mailto:, news:, nntp:, Telnet and local file links
support
- Restriction of link checking with regular expression filters for URLs
- Proxy support
- Username/password authorization for HTTP and FTP and Telnet
- Honors robots.txt exclusion protocol
- Cookie support
- HTML5 support
- HTML and CSS syntax check
- Antivirus check
- Different interfaces: command line, GUI and web interface
... and a lot more ...
%prep
%autosetup -p1 -n LinkChecker-%{version}
%build
%pyproject_build
%install
%pyproject_install
%find_lang linkchecker
%check
# fix unreachable url
sed -i 's/google.com/bing.com/g' tests/test_robotparser.py
export PYTHONPATH=%{buildroot}%{python3_sitearch}
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
%{_mandir}/man1/linkchecker*.1*
%{_mandir}/man5/linkcheckerrc.5*
%lang(de) %{_mandir}/de/man1/linkchecker*.1*
%lang(de) %{_mandir}/de/man5/linkcheckerrc.5*
%{_datadir}/linkchecker/
%changelog
* Mon Apr 1 2024 laokz <zhangkai@iscas.ac.cn> - 10.4.0-2
- Fix unreachable url in test
* Mon Feb 26 2024 liyanan <liyanan61@h-partners.com> - 10.4.0-1
- Upgrade to 10.4.0
* 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
* Tue Jun 9 2020 leiju <leiju4@huawei.com> - 9.4.0-3
- Package init

5
linkchecker.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/linkchecker/linkchecker
version_control: github
src_repo: linkchecker/linkchecker
tag_prefix: "^v"
seperator: "."