Alan Pevec c02f4e5
%global github_name warlock
Alan Pevec c02f4e5
%global commit 460080eb27fd8598c6b00f0df70e597058152323
Alan Pevec c02f4e5
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Alan Pevec c02f4e5
Alan Pevec 7db0652
Name:           python-warlock
f1e9f51
Version:        1.3.3
b200ba3
Release:        8%{?dist}
Alan Pevec 7db0652
Summary:        Python object model built on top of JSON schema
Alan Pevec 7db0652
Alan Pevec 7db0652
License:        ASL 2.0
Alan Pevec c02f4e5
URL:            http://pypi.python.org/pypi/warlock
Alan Pevec c02f4e5
# pypi tarball does not contain LICENSE.txt
Alan Pevec c02f4e5
# TODO return pypi tarball when github.com/bcwaldon/warlock/pull/12 is done
bfdb4f4
#Source0:        https://github.com/bcwaldon/%{github_name}/archive/%{commit}/%{github_name}-%{version}-%{shortcommit}.tar.gz
bfdb4f4
Source0:        https://files.pythonhosted.org/packages/source/w/warlock/warlock-%{version}.tar.gz
Alan Pevec 7db0652
BuildArch:      noarch
Alan Pevec 7db0652
bfdb4f4
BuildRequires:  python3-devel
bfdb4f4
BuildRequires:  python3-setuptools
bfdb4f4
BuildRequires:	python3-jsonschema
bfdb4f4
BuildRequires:	python3-jsonpatch
bfdb4f4
bfdb4f4
# Tests requires for python 3
bfdb4f4
BuildRequires:	python3-six
bfdb4f4
bfdb4f4
%description
bfdb4f4
Build self-validating python objects using JSON schemas
bfdb4f4
bfdb4f4
%package -n python3-%{github_name}
bfdb4f4
Summary:        Python object model built on top of JSON schema
bfdb4f4
%{?python_provide:%python_provide python3-%{github_name}}
bfdb4f4
bfdb4f4
Requires: python3-jsonschema
bfdb4f4
Requires: python3-jsonpatch
bfdb4f4
Requires: python3-six
bfdb4f4
bfdb4f4
%description -n python3-%{github_name}
Alan Pevec 7db0652
Build self-validating python objects using JSON schemas
Alan Pevec 7db0652
Alan Pevec 7db0652
%prep
bfdb4f4
%setup -q -n %{github_name}-%{version}
Alan Pevec c02f4e5
Alan Pevec 7db0652
# Remove bundled egg-info
Alan Pevec 7db0652
rm -rf warlock.egg-info
Alan Pevec 5856a34
# let RPM handle deps
Alan Pevec 5856a34
sed -i '/setup_requires/d; /install_requires/d; /dependency_links/d' setup.py
Alan Pevec 5856a34
rm -f requirements.txt
Alan Pevec 7db0652
Alan Pevec 7db0652
%build
bfdb4f4
%py3_build
bfdb4f4
bfdb4f4
%install
bfdb4f4
%py3_install
Alan Pevec 7db0652
Alan Pevec 7db0652
%check
bfdb4f4
%{__python3} setup.py test
Alan Pevec 7db0652
bfdb4f4
%files -n python3-%{github_name}
bfdb4f4
%doc README.md
f1e9f51
%license LICENSE
bfdb4f4
%{python3_sitelib}/warlock
033119b
%{python3_sitelib}/warlock-%{version}-py%{python3_version}.egg-info
Alan Pevec 7db0652
Alan Pevec 7db0652
%changelog
b200ba3
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-8
b200ba3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
b200ba3
bc14567
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-7
bc14567
- Second attempt - Rebuilt for
bc14567
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
bc14567
a204b26
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.3.3-6
a204b26
- Rebuilt for Python 3.10
a204b26
f2c84fe
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-5
f2c84fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f2c84fe
ff1c455
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-4
ff1c455
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ff1c455
d17ceab
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.3-3
d17ceab
- Rebuilt for Python 3.9
d17ceab
c1a64f7
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-2
c1a64f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c1a64f7
f1e9f51
* Tue Sep 10 2019 Yatin Karel <ykarel@redhat.com> - 1.3.3-1
f1e9f51
- Update to 1.3.3
f1e9f51
491cdd5
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-12
491cdd5
- Rebuilt for Python 3.8
491cdd5
447131b
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-11
447131b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
447131b
a84110c
* Mon Feb 11 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-10
a84110c
- Subpackage python2-warlock has been removed
a84110c
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
a84110c
cee022c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-9
cee022c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
cee022c
3558af4
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-8
3558af4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3558af4
d8b7d23
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-7
d8b7d23
- Rebuilt for Python 3.7
d8b7d23
5956816
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-6
5956816
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5956816
caffab9
* Wed Jan 31 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.3.0-5
caffab9
- Update Python 2 dependency declarations to new packaging standards
caffab9
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
caffab9
3a71bcc
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-4
3a71bcc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3a71bcc
37e94ce
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
37e94ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
37e94ce
adb9b9d
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-2
adb9b9d
- Rebuild for Python 3.6
adb9b9d
bfdb4f4
* Wed Jul 27 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.3.0-1
bfdb4f4
- Update to 1.3.0
bfdb4f4
- Provide a python 3 subpackage
bfdb4f4
- Modernize SPEC
bfdb4f4
27a98c0
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
27a98c0
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
27a98c0
9d1ab82
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4
9d1ab82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9d1ab82
ffe730f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3
ffe730f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ffe730f
1a25338
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
1a25338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1a25338
Alan Pevec c02f4e5
* Thu Oct 10 2013 Alan Pevec <apevec@redhat.com> 1.0.1-1
Alan Pevec c02f4e5
- update to 1.0.1
Alan Pevec c02f4e5
Alan Pevec 5856a34
* Tue Aug 13 2013 Alan Pevec <apevec@redhat.com> 0.4.0-5
Alan Pevec 5856a34
- fix FTBFS in rawhide rhbz#993177
Alan Pevec 5856a34
06e0304
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-4
06e0304
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
06e0304
f88811d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
f88811d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f88811d
Alan Pevec 7db0652
* Wed Aug 22 2012 Alan Pevec <apevec@redhat.com> 0.4.0-2
Alan Pevec 7db0652
- Add missing build requirements
Alan Pevec 7db0652
Alan Pevec 7db0652
* Fri Aug 10 2012 Dan Prince - 0.4.0-1
Alan Pevec 7db0652
- Initial package.