linkchecker/linkchecker.spec

85 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

%define debug_package %{nil}
2020-07-22 17:42:53 +08:00
Name: linkchecker
2024-02-26 11:32:22 +08:00
Version: 10.4.0
2024-04-01 12:12:07 +08:00
Release: 2
2020-07-22 17:42:53 +08:00
Summary: Check HTML documents for broken links
License: GPLv2
URL: https://linkcheck.github.io/linkchecker/
2024-02-26 11:32:22 +08:00
Source0: https://github.com/linkchecker/linkchecker/releases/download/v%{version}/LinkChecker-%{version}.tar.gz
2020-07-22 17:42:53 +08:00
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)
2020-07-07 15:58:59 +08:00
%description
2020-07-22 17:42:53 +08:00
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 ...
2020-07-07 15:58:59 +08:00
%prep
2024-02-26 11:32:22 +08:00
%autosetup -p1 -n LinkChecker-%{version}
2020-07-07 15:58:59 +08:00
%build
%pyproject_build
2020-07-07 15:58:59 +08:00
%install
2024-02-26 11:32:22 +08:00
%pyproject_install
2020-07-07 15:58:59 +08:00
%find_lang linkchecker
2020-07-22 17:42:53 +08:00
%check
2024-04-01 12:12:07 +08:00
# fix unreachable url
sed -i 's/google.com/bing.com/g' tests/test_robotparser.py
2020-07-22 17:42:53 +08:00
export PYTHONPATH=%{buildroot}%{python3_sitearch}
pytest --ignore=tests/checker/test_telnet.py
2020-07-07 15:58:59 +08:00
2020-07-22 17:42:53 +08:00
%files -f linkchecker.lang
%{python3_sitelib}/linkcheck*
%{python3_sitelib}/LinkChecker*
2020-07-07 15:58:59 +08:00
%doc doc/changelog.txt doc/upgrading.txt
2020-07-22 17:42:53 +08:00
%license COPYING
%{_bindir}/linkchecker
2020-07-07 15:58:59 +08:00
%{_mandir}/man1/linkchecker*.1*
%{_mandir}/man5/linkcheckerrc.5*
%lang(de) %{_mandir}/de/man1/linkchecker*.1*
%lang(de) %{_mandir}/de/man5/linkcheckerrc.5*
2020-07-22 17:42:53 +08:00
%{_datadir}/linkchecker/
2020-07-07 15:58:59 +08:00
%changelog
2024-04-01 12:12:07 +08:00
* Mon Apr 1 2024 laokz <zhangkai@iscas.ac.cn> - 10.4.0-2
- Fix unreachable url in test
2024-02-26 11:32:22 +08:00
* 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
2020-07-22 17:42:53 +08:00
* Sat Jul 18 2020 huanghaitao <huanghaitao8@huawei.com> - 9.4.0-8.72b85c4
- Upgrade to a python3 supported version
2020-07-07 15:58:59 +08:00
* Tue Jun 9 2020 leiju <leiju4@huawei.com> - 9.4.0-3
- Package init