Blame SPECS/python-jsonschema.spec

8e4e9b
# Created by pyp2rpm-0.4.2
8e4e9b
%global pypi_name jsonschema
8e4e9b
8e4e9b
Name:           python-%{pypi_name}
8e4e9b
Version:        2.6.0
8e4e9b
Release:        4%{?dist}
8e4e9b
Summary:        An implementation of JSON Schema validation for Python
8e4e9b
8e4e9b
License:        MIT
8e4e9b
URL:            http://pypi.python.org/pypi/jsonschema
8e4e9b
Source0:        https://files.pythonhosted.org/packages/source/j/jsonschema/%{pypi_name}-%{version}.tar.gz
8e4e9b
BuildArch:      noarch
8e4e9b
8e4e9b
BuildRequires:  python%{python3_pkgversion}-devel
8e4e9b
BuildRequires:  python%{python3_pkgversion}-nose
8e4e9b
BuildRequires:  python%{python3_pkgversion}-mock
8e4e9b
8e4e9b
# avoid functools32, vcversioner
8e4e9b
Patch0: avoid-unpackaged-for-jsonschema-2.6.0.patch
8e4e9b
8e4e9b
Patch1: test-sys-executable.patch
8e4e9b
8e4e9b
%description
8e4e9b
jsonschema is JSON Schema validator currently based on
8e4e9b
http://tools.ietf.org/html/draft-zyp-json-schema-03
8e4e9b
8e4e9b
%package -n python%{python3_pkgversion}-%{pypi_name}
8e4e9b
Summary:        An implementation of JSON Schema validation for Python %{python3_version}
8e4e9b
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
8e4e9b
8e4e9b
%description -n python%{python3_pkgversion}-%{pypi_name}
8e4e9b
jsonschema is JSON Schema validator currently based on
8e4e9b
http://tools.ietf.org/html/draft-zyp-json-schema-03
8e4e9b
8e4e9b
%prep
8e4e9b
%setup -q -n %{pypi_name}-%{version}
8e4e9b
%patch0 -p1
8e4e9b
%patch1 -p1
8e4e9b
8e4e9b
%build
8e4e9b
%py3_build
8e4e9b
8e4e9b
8e4e9b
%install
8e4e9b
%py3_install
8e4e9b
mv %{buildroot}%{_bindir}/jsonschema %{buildroot}%{_bindir}/jsonschema-3
8e4e9b
8e4e9b
%check
8e4e9b
%{__python3} -m nose -v
8e4e9b
8e4e9b
%files -n python%{python3_pkgversion}-%{pypi_name}
8e4e9b
%license COPYING
8e4e9b
%doc README.rst
8e4e9b
%{_bindir}/jsonschema-3
8e4e9b
%{python3_sitelib}/%{pypi_name}/
8e4e9b
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
8e4e9b
8e4e9b
8e4e9b
%changelog
8e4e9b
* Wed May 30 2018 Petr Viktorin <pviktori@redhat.com> - 2.6.0-4
8e4e9b
- Drop the Python2 subpackage
8e4e9b
  https://bugzilla.redhat.com/show_bug.cgi?id=1584189
8e4e9b
- Use sys.executable rather than unversioned "python" in tests
8e4e9b
8e4e9b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-3
8e4e9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8e4e9b
8e4e9b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-2
8e4e9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8e4e9b
8e4e9b
* Fri Jul 21 2017 Jan Beran <jberan@redhat.com> 2.6.0-1
8e4e9b
- Update to 2.6.0
8e4e9b
- Fix of missing Python 3 version executables
8e4e9b
8e4e9b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-5
8e4e9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8e4e9b
8e4e9b
* Wed Dec 14 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.5.1-4
8e4e9b
- Rebuild for Python 3.6
8e4e9b
8e4e9b
* Mon Nov 21 2016 Orion Poplawski <orion@cora.nwra.com> - 2.5.1-3
8e4e9b
- Enable python3 builds for EPEL (bug #1395653)
8e4e9b
- Ship python2-jsonschema
8e4e9b
- Modernize spec
8e4e9b
- Use %%license
8e4e9b
8e4e9b
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.1-2
8e4e9b
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
8e4e9b
8e4e9b
* Fri Feb 26 2016 Lon Hohberger <lhh@redhat.com> 2.5.1-1
8e4e9b
- Update to 2.5.1
8e4e9b
8e4e9b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-4
8e4e9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8e4e9b
8e4e9b
8e4e9b
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 2.4.0-3
8e4e9b
- Rebuilt for Python3.5 rebuild
8e4e9b
8e4e9b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-2
8e4e9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8e4e9b
8e4e9b
* Sat Sep 06 2014 Alan Pevec <apevec@redhat.com> - 2.4.0-1
8e4e9b
- Latest upstream
8e4e9b
8e4e9b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-3
8e4e9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8e4e9b
8e4e9b
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 2.3.0-2
8e4e9b
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
8e4e9b
8e4e9b
* Mon Mar 10 2014 Pádraig Brady <pbrady@redhat.com> - 2.3.0-1
8e4e9b
- Latest upstream
8e4e9b
8e4e9b
* Tue Feb 04 2014 Matthias Runge <mrunge@redhat.com> - 2.0.0-3
8e4e9b
- fix %%{? issues in spec
8e4e9b
8e4e9b
* Thu Oct 17 2013 Thomas Spura <tomspur@fedoraproject.org> - 2.0.0-2
8e4e9b
- add python3 subpackage (#1016207)
8e4e9b
- add %%check
8e4e9b
8e4e9b
* Fri Aug 16 2013 Alan Pevec <apevec@redhat.com> 2.0.0-1
8e4e9b
- Update to 2.0.0 release
8e4e9b
8e4e9b
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2
8e4e9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8e4e9b
8e4e9b
* Mon May 13 2013 Pádraig Brady <P@draigBrady.com> - 1.3.0-1
8e4e9b
- Update to 1.3.0 release
8e4e9b
8e4e9b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-3
8e4e9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8e4e9b
8e4e9b
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-2
8e4e9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8e4e9b
8e4e9b
* Wed May 23 2012 Pádraig Brady <P@draigBrady.com> - 0.2-1
8e4e9b
- Initial package.