2020-03-02 22:29:15 -05:00
|
|
|
%global __python2 %__python
|
|
|
|
%global python2_sitelib %python_sitelib
|
|
|
|
|
|
|
|
Name: python-webencodings
|
|
|
|
Version: 0.5.1
|
|
|
|
Release: 1.el7%{?_tis_dist}.%{tis_patch_ver}
|
|
|
|
Summary: This is a Python implementation of the WHATWG Encoding standard.
|
|
|
|
|
|
|
|
Group: Applications/System
|
|
|
|
License: (Python or ZPLv2.0) and ASL 2.0
|
|
|
|
URL: https://github.com/gsnedders/python-webencodings/archive/v0.5.1.tar.gz
|
|
|
|
Source0: python-webencodings-0.5.1.tar.gz
|
|
|
|
|
|
|
|
BuildArch: noarch
|
2020-05-28 01:23:04 +08:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-pip
|
|
|
|
%else
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python-pip
|
|
|
|
%endif
|
2020-03-02 22:29:15 -05:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is a Python implementation of the WHATWG Encoding standard.
|
|
|
|
|
|
|
|
%package -n python2-webencodings
|
|
|
|
Summary: This is a Python implementation of the WHATWG Encoding standard.
|
|
|
|
%{?python_provide:%python_provide python2-webencodings}
|
|
|
|
%description -n python2-webencodings
|
|
|
|
This is a Python implementation of the WHATWG Encoding standard.
|
|
|
|
|
|
|
|
%prep
|
2020-03-04 17:02:35 -06:00
|
|
|
%setup -q -n webencodings-%{version}
|
2020-03-02 22:29:15 -05:00
|
|
|
|
|
|
|
%build
|
|
|
|
export PBR_VERSION=%{version}
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
|
|
|
|
|
# Don't ship these
|
|
|
|
# rm -r docs/{conf.py}
|
|
|
|
|
|
|
|
%files -n python2-webencodings
|
|
|
|
# %doc docs/*
|
|
|
|
%{python2_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|