diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ad9a89f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/pyjwt-1.5.3.tar.gz diff --git a/.python-jwt.metadata b/.python-jwt.metadata new file mode 100644 index 0000000..a1518ef --- /dev/null +++ b/.python-jwt.metadata @@ -0,0 +1 @@ +990fcc41469aa4720ad38cf63e57b61041aa25f6 SOURCES/pyjwt-1.5.3.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/python-jwt.spec b/SPECS/python-jwt.spec new file mode 100644 index 0000000..446f6ac --- /dev/null +++ b/SPECS/python-jwt.spec @@ -0,0 +1,143 @@ +%if 0%{?fedora} || 0%{?rhel} > 7 +%global with_python3 1 +%endif + +%global srcname jwt +%global sum JSON Web Token implementation in Python + +Name: python-jwt +Version: 1.5.3 +Release: 1%{?dist} +Summary: %{sum} + +Group: Development/Libraries +License: MIT +URL: http://pypi.python.org/pypi/pyjwt +Source0: pyjwt-%{version}.tar.gz +BuildArch: noarch + +Requires: python-cryptography +BuildRequires: python-devel +BuildRequires: python-setuptools +BuildRequires: python-cryptography >= 1.4.0 + +%if 0%{?with_python3} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-cryptography >= 1.4.0 + +BuildRequires: python3-pytest +BuildRequires: python3-pytest-cov +BuildRequires: python3-pytest-runner +%endif + +%description +A Python implementation of JSON Web Token draft 01. This library provides a +means of representing signed content using JSON data structures, including +claims to be transferred between two parties encoded as digitally signed and +encrypted JSON objects. + +%if 0%{?with_python3} +%package -n python3-%{srcname} +Summary: %{sum} +%{?python_provide:%python_provide python3-%{srcname}} +Requires: python3-cryptography + +%description -n python3-%{srcname} +A Python3 implementation of JSON Web Token draft 01. This library provides a +means of representing signed content using JSON data structures, including +claims to be transferred between two parties encoded as digitally signed and +encrypted JSON objects. +%endif + +%prep +%autosetup -n pyjwt-%{version} + +%build +%py2_build +%if 0%{?with_python3} +%py3_build +%endif + +%install +%py2_install +%if 0%{?with_python3} +%py3_install +%endif + +%files -n python-jwt +%doc README.rst AUTHORS +%license LICENSE +%{python2_sitelib}/%{srcname}/ +%{python2_sitelib}/PyJWT-%{version}* +%{_bindir}/pyjwt + +%if 0%{?with_python3} +%files -n python3-jwt +%doc README.rst AUTHORS +%license LICENSE +%{python3_sitelib}/%{srcname}/ +%{python3_sitelib}/PyJWT-%{version}* +%{_bindir}/pyjwt +%endif + +%changelog +* Sat Sep 16 2017 Kevin Fenzi - 1.5.3-1 +- Update to 1.5.3. Fixes bug #1488693 +- 1.5.1 fixed CVE-2017-11424 Fixes bug #1482529 + +* Mon Aug 14 2017 Troy Dawson - 1.5.2-3 +- Fixup spec file conditionals + +* Thu Jul 27 2017 Fedora Release Engineering - 1.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Jun 24 2017 Kevin Fenzi - 1.5.2-1 +- Update to 1.5.2. Fixes bug #1464286 + +* Sat May 27 2017 Kevin Fenzi - 1.5.0-1 +- Update to 1.5.0. Fixes bug #1443792 + +* Mon Apr 17 2017 Kevin Fenzi - 1.4.2-4 +- Modernize spec and make sure to provide python2-jwt + +* Sat Feb 11 2017 Fedora Release Engineering - 1.4.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Dec 13 2016 Stratakis Charalampos - 1.4.2-2 +- Rebuild for Python 3.6 + +* Mon Aug 15 2016 Kevin Fenzi - 1.4.2-1 +- Update to 1.4.2. Fixes bug #1356333 + +* Tue Jul 19 2016 Fedora Release Engineering - 1.4.0-4 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 1.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Nov 10 2015 Fedora Release Engineering - 1.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Wed Sep 16 2015 Ralph Bean - 1.4.0-1 +- new version + +* Wed Jun 17 2015 Ralph Bean - 1.3.0-1 +- new version +- start running the test suite. + +* Fri Mar 27 2015 Ralph Bean - 1.0.1-1 +- new version + +* Thu Mar 19 2015 Ralph Bean - 1.0.0-1 +- new version + +* Fri Feb 20 2015 Ralph Bean - 0.4.3-1 +- Latest upstream. +- Expand the description as per review feedback. +- Add a comment about the test suite. +- Declare noarch. +- Declare _docdir_fmt + +* Wed Feb 18 2015 Ralph Bean - 0.4.2-1 +- initial package for Fedora.