diff --git a/.python-warlock.metadata b/.python-warlock.metadata new file mode 100644 index 0000000..7d95435 --- /dev/null +++ b/.python-warlock.metadata @@ -0,0 +1 @@ +8b5811f64eb6c2734065be91fbb4c925289528f1 SOURCES/warlock-1.3.3.tar.gz diff --git a/SPECS/python-warlock.spec b/SPECS/python-warlock.spec new file mode 100644 index 0000000..32aae20 --- /dev/null +++ b/SPECS/python-warlock.spec @@ -0,0 +1,148 @@ +%global github_name warlock +%global commit 460080eb27fd8598c6b00f0df70e597058152323 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: python-warlock +Version: 1.3.3 +Release: 5%{?dist} +Summary: Python object model built on top of JSON schema + +License: ASL 2.0 +URL: http://pypi.python.org/pypi/warlock +# pypi tarball does not contain LICENSE.txt +# TODO return pypi tarball when github.com/bcwaldon/warlock/pull/12 is done +#Source0: https://github.com/bcwaldon/%{github_name}/archive/%{commit}/%{github_name}-%{version}-%{shortcommit}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/w/warlock/warlock-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-jsonschema +BuildRequires: python3-jsonpatch + +# Tests requires for python 3 +BuildRequires: python3-six + +%description +Build self-validating python objects using JSON schemas + +%package -n python3-%{github_name} +Summary: Python object model built on top of JSON schema +%{?python_provide:%python_provide python3-%{github_name}} + +Requires: python3-jsonschema +Requires: python3-jsonpatch +Requires: python3-six + +%description -n python3-%{github_name} +Build self-validating python objects using JSON schemas + +%prep +%setup -q -n %{github_name}-%{version} + +# Remove bundled egg-info +rm -rf warlock.egg-info +# let RPM handle deps +sed -i '/setup_requires/d; /install_requires/d; /dependency_links/d' setup.py +rm -f requirements.txt + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files -n python3-%{github_name} +%doc README.md +%license LICENSE +%{python3_sitelib}/warlock +%{python3_sitelib}/warlock-%{version}-py%{python3_version}.egg-info + +%changelog +* Wed Jan 27 2021 Fedora Release Engineering - 1.3.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 1.3.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 1.3.3-3 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.3.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Sep 10 2019 Yatin Karel - 1.3.3-1 +- Update to 1.3.3 + +* Mon Aug 19 2019 Miro Hrončok - 1.3.0-12 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.3.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Feb 11 2019 Miro Hrončok - 1.3.0-10 +- Subpackage python2-warlock has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Feb 02 2019 Fedora Release Engineering - 1.3.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 1.3.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 1.3.0-7 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 1.3.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jan 31 2018 Iryna Shcherbina - 1.3.0-5 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Thu Jul 27 2017 Fedora Release Engineering - 1.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 1.3.0-2 +- Rebuild for Python 3.6 + +* Wed Jul 27 2016 Charalampos Stratakis - 1.3.0-1 +- Update to 1.3.0 +- Provide a python 3 subpackage +- Modernize SPEC + +* Tue Jul 19 2016 Fedora Release Engineering - 1.0.1-5 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 1.0.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 1.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 1.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu Oct 10 2013 Alan Pevec 1.0.1-1 +- update to 1.0.1 + +* Tue Aug 13 2013 Alan Pevec 0.4.0-5 +- fix FTBFS in rawhide rhbz#993177 + +* Sun Aug 04 2013 Fedora Release Engineering - 0.4.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 0.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Aug 22 2012 Alan Pevec 0.4.0-2 +- Add missing build requirements + +* Fri Aug 10 2012 Dan Prince - 0.4.0-1 +- Initial package.