You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-hypothesis/python-hypothesis.spec

163 lines
4.6 KiB

9 years ago
%{!?__python2: %global __python2 /usr/bin/python2}
9 years ago
%global srcname hypothesis
10 years ago
9 years ago
Name: python-%{srcname}
9 years ago
Version: 3.1.3
9 years ago
Release: 1%{?dist}
9 years ago
Summary: A library for property based testing
10 years ago
License: MPLv2.0
URL: https://github.com/DRMacIver/hypothesis
9 years ago
Source0: https://github.com/DRMacIver/hypothesis/archive/%{version}.tar.gz#/hypothesis-%{version}.tar.gz
# disable Sphinx extensions that require Internet access
Patch0: %{srcname}-2.0.0-offline.patch
10 years ago
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-sphinx
10 years ago
%if 0%{?fedora}
BuildRequires: python3-devel
%endif
9 years ago
%description
Hypothesis is a library for testing your Python code against a much
larger range of examples than you would ever want to write by
hand. Its based on the Haskell library, Quickcheck, and is designed
to integrate seamlessly into your existing Python unit testing work
flow.
%package -n python2-%{srcname}
9 years ago
Summary: A library for property based testing
9 years ago
Obsoletes: python-%{srcname} < 1.11.1-1
9 years ago
%if 0%{?fedora}
%{?python_provide:%python_provide python2-%{srcname}}
10 years ago
Suggests: numpy
Suggests: pytz
9 years ago
%else
Provides: python-hypothesis
%endif
10 years ago
9 years ago
%description -n python2-%{srcname}
10 years ago
Hypothesis is a library for testing your Python code against a much
larger range of examples than you would ever want to write by
hand. Its based on the Haskell library, Quickcheck, and is designed
to integrate seamlessly into your existing Python unit testing work
flow.
9 years ago
%if 0%{?fedora}
9 years ago
%package -n python3-%{srcname}
9 years ago
Summary: A library for property based testing
9 years ago
%{?python_provide:%python_provide python3-%{srcname}}
9 years ago
10 years ago
Suggests: python3-numpy
Suggests: python3-pytz
10 years ago
9 years ago
%description -n python3-%{srcname}
10 years ago
Hypothesis is a library for testing your Python code against a much
larger range of examples than you would ever want to write by
hand. Its based on the Haskell library, Quickcheck, and is designed
to integrate seamlessly into your existing Python unit testing work
flow.
%endif
10 years ago
%prep
9 years ago
%autosetup -n %{srcname}-python-%{version} -p1
9 years ago
10 years ago
# remove shebang, mergedbs gets installed in sitelib
9 years ago
%{__sed} -i -e 1,2d src/hypothesis/tools/mergedbs.py
10 years ago
%build
9 years ago
%if 0%{?fedora}
9 years ago
%py2_build
%py3_build
9 years ago
READTHEDOCS=True sphinx-build -b man docs docs/_build/man
%else
%{__python2} setup.py build
%endif
10 years ago
%install
9 years ago
%if 0%{?fedora}
9 years ago
%py2_install
%py3_install
10 years ago
%{__install} -Dp -m 644 docs/_build/man/hypothesis.1 \
$RPM_BUILD_ROOT%{_mandir}/man1/hypothesis.1
9 years ago
%else
%{__python2} setup.py install --skip-build --prefix=%{_prefix} --root %{buildroot}
%endif
10 years ago
9 years ago
%files -n python2-%{srcname}
%license LICENSE.txt
%doc README.rst
10 years ago
%{python2_sitelib}/*
9 years ago
%if 0%{?fedora}
10 years ago
%{_mandir}/man1/hypothesis.1*
%endif
10 years ago
9 years ago
%if 0%{?fedora}
9 years ago
%files -n python3-%{srcname}
%license LICENSE.txt
%doc README.rst
10 years ago
%{python3_sitelib}/*
9 years ago
%{_mandir}/man1/hypothesis.1*
%endif
10 years ago
%changelog
9 years ago
* Wed May 04 2016 Nathaniel McCallum <npmccallum@redhat.com> - 3.1.3-1
- Update to 3.1.3
- Remove unused code
- Remove unused dependencies
9 years ago
* Sun Feb 14 2016 Michel Salim <salimma@fedoraproject.org> - 2.0.0-1
- Update to 2.0.0
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
9 years ago
* Fri Sep 25 2015 Michel Salim <salimma@fedoraproject.org> - 1.11.2-1
- Update to 1.11.2
9 years ago
* Sun Sep 20 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.11.1-1
- Update to 1.11.1
10 years ago
* Wed Sep 2 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.11.0-1
- Update to 1.11.0
* Tue Sep 1 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.10.6-3
- Re-disable tests for now
* Tue Sep 1 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.10.6-2
- Disable Python3 tests - need debugging on ARM builders
* Mon Aug 31 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.10.6-1
- Update to 1.10.6
- Enable tests
10 years ago
* Fri Aug 7 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.10.0-1
- Update to 1.10
10 years ago
* Wed Jul 29 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.9.0-1
- Update to 1.9.0
10 years ago
* Fri Jul 24 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.8.5-2
- Remove she-bang from tools/mergedbs.py
- Include manpage
* Fri Jul 24 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.8.5-1
- Update to 1.8.5
- Make Python3 build unconditional
* Thu Jul 23 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.8.2-1
- Initial package