Upgrade to a python3 supported version

This commit is contained in:
hht8 2020-07-22 17:42:53 +08:00
parent 78943db44b
commit 635936bc7e
3 changed files with 48 additions and 30 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,50 +1,68 @@
Name: linkchecker %global py3_shbang_opts -sRu
Version: 9.4.0 Name: linkchecker
Release: 3 %global commit 72b85c4e2d74fa2b3cf11fb452b8fc2736e8ebbf
Summary: Check links in web documents or full websites Version: 9.4.0
License: GPLv2 Release: 8.72b85c4
URL: https://linkcheck.github.io/linkchecker/ Summary: Check HTML documents for broken links
Source0: https://github.com/linkcheck/linkchecker/archive/v%{version}/linkchecker-%{version}.tar.gz License: GPLv2
URL: https://linkcheck.github.io/linkchecker/
BuildRequires: desktop-file-utils gettext python2-devel python-setuptools Source0: https://github.com/cjmayo/linkchecker/archive/%{commit}.tar.gz
BuildRequires: qt4-devel python-requests python-dns python-pyxdg BuildRequires: gcc gettext python3-devel python3-setuptools
BuildRequires: python3dist(dnspython) python3dist(future) python3dist(pyxdg)
BuildRequires: python3dist(requests) >= 2.4
%description %description
LinkChecker is a free,GPL licensed website validator and it checks links in web documents or full websites. LinkChecker is a website validator. LinkChecker checks links in web documents or full websites.
Features:
%package help - Recursive and multithreaded checking and site crawling
Summary: Help documents for linkchecker - Output in colored or normal text, HTML, SQL, CSV, XML or a sitemap graph in
different formats
%description help - HTTP/1.1, HTTPS, FTP, mailto:, news:, nntp:, Telnet and local file links
This package contains man pages and other related documents for linkchecker. 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 %prep
%autosetup -n linkchecker-%{version} -p1 %autosetup -p1 -n %{name}-%{commit}
%build %build
CFLAGS="%{optflags}" %{__python2} setup.py build %py3_build
%install %install
%{__python2} setup.py install -O1 --skip-build --root=%{buildroot} %py3_install
rm %{buildroot}%{_datadir}/applications/linkchecker.desktop
%find_lang linkchecker %find_lang linkchecker
%files -f linkchecker.lang %check
%doc COPYING cd /
%{_bindir}/linkchecker export PYTHONPATH=%{buildroot}%{python3_sitearch}
%{python2_sitearch}/linkcheck/ %{buildroot}%{_bindir}/linkchecker --help
%{python2_sitearch}/_LinkChecker_configdata.*
%{_datadir}/linkchecker/
%exclude %{_datadir}/applications/linkchecker.desktop
%exclude %{python2_sitearch}/LinkChecker-*-py%{python2_version}.egg-info
%files help %files -f linkchecker.lang
%doc doc/changelog.txt doc/upgrading.txt %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}/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*
%lang(de) %{_mandir}/de/man5/linkcheckerrc.5* %lang(de) %{_mandir}/de/man5/linkcheckerrc.5*
%{_datadir}/linkchecker/
%changelog %changelog
* 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 * Tue Jun 9 2020 leiju <leiju4@huawei.com> - 9.4.0-3
- Package init - Package init