2020-02-21 10:22:42 +08:00
|
|
|
Name: python-hyperlink
|
|
|
|
|
Version: 18.0.0
|
2020-12-07 14:21:37 +08:00
|
|
|
Release: 10
|
2020-02-21 10:22:42 +08:00
|
|
|
Summary: A pure-Python implementation of immutable URLs
|
|
|
|
|
License: MIT and BSD and OFL
|
|
|
|
|
URL: https://github.com/python-hyper/hyperlink
|
2020-12-07 14:21:37 +08:00
|
|
|
Source0: https://github.com/python-hyper/hyperlink/archive/v%{version}.tar.gz
|
2020-02-21 10:22:42 +08:00
|
|
|
BuildArch: noarch
|
2020-12-07 14:21:37 +08:00
|
|
|
BuildRequires: python3dist(sphinx) fontawesome-fonts python3-devel
|
2020-02-21 10:22:42 +08:00
|
|
|
%{?python_enable_dependency_generator}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Hyperlink is a featureful, pure-Python implementation of the URL, with an emphasis on correctness.
|
|
|
|
|
|
|
|
|
|
%package -n python3-hyperlink
|
|
|
|
|
Summary: A pure-Python implementation of immutable URLs
|
|
|
|
|
%python_provide python3-hyperlink
|
|
|
|
|
|
|
|
|
|
%description -n python3-hyperlink
|
|
|
|
|
Hyperlink is a featureful, pure-Python implementation of the URL, with an emphasis on correctness.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: This package contains help documents
|
2020-03-13 09:43:40 +08:00
|
|
|
Requires: fontawesome-fonts
|
2020-02-21 10:22:42 +08:00
|
|
|
Provides: python-hyperlink-doc = %{version}-%{release}
|
|
|
|
|
Obsoletes: python-hyperlink-doc < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
Files for help with python-hyperlink.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n hyperlink-%{version} -p1
|
|
|
|
|
rm -rf hyperlink.egg-info
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
PYTHONPATH=${PWD} sphinx-build-3 docs html
|
|
|
|
|
rm -rf html/.{doctrees,buildinfo} html/_static/underscore*.js html/_static/jquery*.js
|
|
|
|
|
cd html/_static/fonts/
|
|
|
|
|
for file in fontawesome*; do
|
|
|
|
|
rm -f $file
|
|
|
|
|
ln -s /usr/share/fonts/fontawesome/$file $file
|
|
|
|
|
done
|
|
|
|
|
cd -
|
|
|
|
|
ln -s /usr/share/javascript/underscore/underscore-min.js html/_static/underscore.js
|
|
|
|
|
ln -s /usr/share/javascript/underscore/underscore.js html/_static/underscore-1.3.1.js
|
|
|
|
|
ln -s /usr/share/javascript/jquery/3.2.1/jquery.min.js html/_static/jquery.js
|
|
|
|
|
ln -s /usr/share/javascript/jquery/3.2.1/jquery.js html/_static/jquery-3.2.1.js
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python3} -m unittest
|
|
|
|
|
|
|
|
|
|
%files -n python3-hyperlink
|
|
|
|
|
%doc LICENSE
|
|
|
|
|
%{python3_sitelib}/hyperlink
|
|
|
|
|
%{python3_sitelib}/hyperlink-%{version}-py?.?.egg-info
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc README.md html
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-12-07 14:21:37 +08:00
|
|
|
* Mon Dec 07 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 18.0.0-10
|
|
|
|
|
- Add python3-devel dependency
|
|
|
|
|
|
2020-10-29 10:40:35 +08:00
|
|
|
* Wed Oct 21 2020 leiju <leiju4@huawei.com> - 18.0.0-9
|
|
|
|
|
- remove python2 subpackage
|
|
|
|
|
|
2020-03-13 09:43:40 +08:00
|
|
|
* Fri Mar 13 2020 gulining<gulining1@huawei.com> - 18.0.0-8
|
|
|
|
|
- Remove useless requires
|
|
|
|
|
|
2020-03-12 10:55:08 +08:00
|
|
|
* Thu Mar 12 2020 gulining<gulining1@huawei.com> - 18.0.0-7
|
|
|
|
|
- Remove useless buildrequires
|
|
|
|
|
|
2020-02-21 10:22:42 +08:00
|
|
|
* Thu Feb 20 2020 gulining<gulining1@huawei.com> - 18.0.0-6
|
|
|
|
|
- Package init
|