Blob Blame History Raw
%global modname cerberus

Name:           python-%{modname}
Version:        1.1
Release:        1%{?dist}
Summary:        Lightweight, extensible data validation library for Python

License:        ISC
Source0:        %{url}/archive/%{version}/%{modname}-%{version}.tar.gz

BuildArch:      noarch

%global _description \
Cerberus is a lightweight and extensible data validation library for Python.\
Cerberus provides type checking and other base functionality out of the box\
and is designed to be non-blocking and easily extensible, allowing for custom\
validation. It has no dependancies and is thoroughly tested.

%description %{_description}

%package -n python2-%{modname}
Summary:        %{summary}
%{?python_provide:%python_provide python2-%{modname}}
BuildRequires:  python2-devel
BuildRequires:  python2-setuptools
BuildRequires:  python2-pytest

%description -n python2-%{modname} %{_description}

Python 2 version.

%package -n python3-%{modname}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{modname}}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-pytest

%description -n python3-%{modname} %{_description}

Python 3 version.

%package doc
Summary:        Documentation for %{name}
BuildRequires:  python3-sphinx
#BuildRequires:  python3-sphinxcontrib-issuetracker

%description doc %{_description}

Documentation files.

%autosetup -n %{modname}-%{version}
# Requires network, unfortunately
sed -i -e "s/'sphinxcontrib.issuetracker', //" docs/

sphinx-build-%{python3_version} -b html docs/ -d docs/_build/doctrees/ docs/_build/html/

rm -f html/.buildinfo

py.test-%{python2_version} -v %{modname}/tests
py.test-%{python3_version} -v %{modname}/tests

%files -n python2-%{modname}
%license LICENSE

%files -n python3-%{modname}
%license LICENSE

%files doc
%doc docs/_build/html

* Sat Feb 11 2017 Igor Gnatenko <> - 1.1-1
- Update to 1.1

* Sat Feb 11 2017 Fedora Release Engineering <> - 1.0.1-3
- Rebuilt for

* Mon Dec 19 2016 Miro HronĨok <> - 1.0.1-2
- Rebuild for Python 3.6

* Thu Sep 01 2016 Igor Gnatenko <> - 1.0.1-1
- Update to 1.0.1

* Tue Jul 19 2016 Fedora Release Engineering <> - 0.9.2-2

* Mon May 09 2016 Igor Gnatenko <> - 0.9.2-1
- Initial package