Blame SPECS/python-hamcrest.spec

e8d769
%global modname hamcrest
e8d769
%global origname PyHamcrest
e8d769
e8d769
Name:           python-%{modname}
e8d769
Version:        1.9.0
e8d769
Release:        16%{?dist}
e8d769
Summary:        Hamcrest matchers for Python
e8d769
e8d769
License:        BSD
e8d769
URL:            https://github.com/hamcrest/PyHamcrest
e8d769
Source0:        %{url}/archive/V%{version}/%{name}-%{version}.tar.gz
e8d769
e8d769
# https://github.com/hamcrest/PyHamcrest/commit/37a4d0dbeb9a92b959edfb9b1aceba4eaacf9f78
e8d769
Patch0001:      0001-Add-boolean-matchers.patch
e8d769
# https://github.com/hamcrest/PyHamcrest/commit/f71c3c6f8af716435b6d44c007d502b6fb362e20
e8d769
Patch0002:      0002-Silence-warnings-from-tests-due-to-use-of-old-pytest.patch
e8d769
e8d769
BuildArch:      noarch
e8d769
e8d769
%global _description \
e8d769
PyHamcrest is a framework for writing matcher objects, allowing you to\
e8d769
declaratively define "match" rules. There are a number of situations where\
e8d769
matchers are invaluable, such as UI validation, or data filtering, but it is\
e8d769
in the area of writing flexible tests that matchers are most commonly used.
e8d769
e8d769
%description %{_description}
e8d769
e8d769
%package -n python3-%{modname}
e8d769
Summary:        %{summary}
e8d769
%{?python_provide:%python_provide python3-%{modname}}
e8d769
BuildRequires:  python3-devel
e8d769
BuildRequires:  python3-setuptools
e8d769
BuildRequires:  python3-pytest
e8d769
BuildRequires:  python3-mock
e8d769
BuildRequires:  python3-six
e8d769
Requires:       python3-six
e8d769
e8d769
%description -n python3-%{modname} %{_description}
e8d769
e8d769
Python 3 version.
e8d769
e8d769
%prep
e8d769
%autosetup -n %{origname}-%{version} -p1
e8d769
e8d769
%build
e8d769
%py3_build
e8d769
e8d769
%install
e8d769
%py3_install
e8d769
e8d769
%check
e8d769
# Drop coverage and other presets
e8d769
mv pytest.ini pytest.ini~
e8d769
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
e8d769
e8d769
%files -n python3-%{modname}
e8d769
%{python3_sitelib}/%{origname}-*.egg-info/
e8d769
%{python3_sitelib}/%{modname}/
e8d769
e8d769
%changelog
e8d769
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-16
e8d769
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e8d769
e8d769
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-15
e8d769
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e8d769
e8d769
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 1.9.0-14
e8d769
- Rebuilt for Python 3.9
e8d769
e8d769
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-13
e8d769
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e8d769
e8d769
* Sun Oct 20 2019 Miro Hrončok <mhroncok@redhat.com> - 1.9.0-12
e8d769
- Subpackage python2-hamcrest has been removed
e8d769
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
e8d769
e8d769
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.9.0-11
e8d769
- Rebuilt for Python 3.8.0rc1 (#1748018)
e8d769
e8d769
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.9.0-10
e8d769
- Rebuilt for Python 3.8
e8d769
e8d769
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-9
e8d769
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e8d769
e8d769
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-8
e8d769
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e8d769
e8d769
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-7
e8d769
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e8d769
e8d769
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.9.0-6
e8d769
- Rebuilt for Python 3.7
e8d769
e8d769
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-5
e8d769
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e8d769
e8d769
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-4
e8d769
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e8d769
e8d769
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-3
e8d769
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e8d769
e8d769
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.9.0-2
e8d769
- Rebuild for Python 3.6
e8d769
e8d769
* Mon Oct 03 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.9.0-1
e8d769
- Update to 1.9.0
e8d769
e8d769
* Sun Aug 21 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.8.5-2
e8d769
- Backport couple of upstream patches
e8d769
e8d769
* Fri Aug 19 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.8.5-1
e8d769
- Initial package