Initial import (#1474930).
parent
02fe4b4a7e
commit
ce9858b4ca
@ -0,0 +1 @@
|
||||
/webencodings-0.5.1.tar.gz
|
@ -0,0 +1,104 @@
|
||||
%global srcname webencodings
|
||||
%global desc This is a Python implementation of the WHATWG Encoding standard.
|
||||
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 0.5.1
|
||||
Release: 1%{?dist}
|
||||
BuildArch: noarch
|
||||
|
||||
License: BSD
|
||||
Summary: Character encoding for the web
|
||||
URL: https://github.com/gsnedders/python-%{srcname}
|
||||
Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-pytest
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pytest
|
||||
BuildRequires: python3-sphinx
|
||||
|
||||
|
||||
%description
|
||||
%{desc}
|
||||
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for python-webencodings
|
||||
|
||||
|
||||
%description doc
|
||||
Documentation for python-webencodings.
|
||||
|
||||
|
||||
%package -n python2-%{srcname}
|
||||
Summary: %{summary}
|
||||
|
||||
%{?python_provide:%python_provide python2-%{srcname}}
|
||||
|
||||
Requires: python2
|
||||
|
||||
|
||||
%description -n python2-%{srcname}
|
||||
%{desc}
|
||||
|
||||
|
||||
%package -n python3-%{srcname}
|
||||
Summary: %{summary}
|
||||
|
||||
%{?python_provide:%python_provide python3-%{srcname}}
|
||||
|
||||
Requires: python3
|
||||
|
||||
|
||||
%description -n python3-%{srcname}
|
||||
%{desc}
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n python-%{srcname}-%{version}
|
||||
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
sphinx-build-3 docs docs/_build
|
||||
|
||||
# Remove unneeded build artifacts.
|
||||
rm -rf docs/_build/.buildinfo
|
||||
rm -rf docs/_build/.doctrees
|
||||
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
|
||||
%check
|
||||
py.test-2
|
||||
py.test-3
|
||||
|
||||
|
||||
%files doc
|
||||
%license LICENSE
|
||||
%doc docs/_build
|
||||
|
||||
|
||||
%files -n python2-%{srcname}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python2_sitelib}/%{srcname}
|
||||
%{python2_sitelib}/*.egg-info
|
||||
|
||||
|
||||
%files -n python3-%{srcname}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python3_sitelib}/%{srcname}
|
||||
%{python3_sitelib}/*.egg-info
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Jul 25 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.5.1-1
|
||||
- Initial release
|
Loading…
Reference in new issue