Blame SPECS/python-jsonschema.spec

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