diff --git a/.gitignore b/.gitignore index cb5b440..1494afb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /pyramid_fas_openid-0.3.8.tar.gz +/pyramid_fas_openid-0.3.9.tar.gz diff --git a/python-pyramid-fas-openid.spec b/python-pyramid-fas-openid.spec index 9cb65ce..f0fb11b 100644 --- a/python-pyramid-fas-openid.spec +++ b/python-pyramid-fas-openid.spec @@ -1,66 +1,97 @@ -%{!?_licensedir: %global license %%doc} - -%if 0%{?rhel} && 0%{?rhel} <= 6 -%{!?__python2: %global __python2 /usr/bin/python2} -%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} -%endif - %global modname pyramid_fas_openid +%global _description\ +pyramid_fas_openid provides a view for the Pyramid framework that acts as\ +an OpenID consumer for the Fedora Account System. + Name: python-pyramid-fas-openid -Version: 0.3.8 -Release: 7%{?dist} +Version: 0.3.9 +Release: 1%{?dist} Summary: A view for pyramid that functions as an OpenID consumer Group: Development/Libraries License: BSD -URL: http://pypi.python.org/pypi/pyramid_fas_openid -Source0: https://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz +URL: https://github.com/fedora-infra/pyramid_fas_openid +Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python-setuptools -BuildRequires: python-pyramid BuildRequires: python-openid -BuildRequires: python-openid-teams -BuildRequires: python-openid-cla +BuildRequires: python2-devel +BuildRequires: python2-openid-cla +BuildRequires: python2-openid-teams +BuildRequires: python2-pyramid +BuildRequires: python2-setuptools +BuildRequires: python3-devel +BuildRequires: python3-openid +BuildRequires: python3-openid-cla +BuildRequires: python3-openid-teams +BuildRequires: python3-pyramid +BuildRequires: python3-setuptools -%global _description\ -pyramid_fas_openid provides a view for the Pyramid framework that acts as\ -an OpenID consumer for the Fedora Account System. %description %_description + %package -n python2-pyramid-fas-openid Summary: %summary -Requires: python-pyramid Requires: python-openid -Requires: python-openid-teams -Requires: python-openid-cla +Requires: python2-pyramid +Requires: python2-openid-teams +Requires: python2-openid-cla %{?python_provide:%python_provide python2-pyramid-fas-openid} + %description -n python2-pyramid-fas-openid %_description + +%package -n python3-pyramid-fas-openid +Summary: %summary +Requires: python3-pyramid +Requires: python3-openid +Requires: python3-openid-teams +Requires: python3-openid-cla +%{?python_provide:%python_provide python3-pyramid-fas-openid} + + +%description -n python3-pyramid-fas-openid %_description + + %prep %setup -q -n %{modname}-%{version} # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info + %build -%{__python2} setup.py build +%py2_build +%py3_build + %install -%{__python2} setup.py install -O1 --skip-build --root=%{buildroot} +%py2_install +%py3_install + %files -n python2-pyramid-fas-openid %doc README.txt -#%%license LICENSE +%license LICENSE.txt %{python2_sitelib}/%{modname}/ %{python2_sitelib}/%{modname}-%{version}* + +%files -n python3-pyramid-fas-openid +%doc README.txt +%license LICENSE.txt +%{python3_sitelib}/%{modname}/ +%{python3_sitelib}/%{modname}-%{version}* + + %changelog +* Tue Dec 12 2017 Randy Barlow - 0.3.9-1 +- Update to 0.3.9. +- Add support for Python 3. + * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.3.8-7 - Python 2 binary package renamed to python2-pyramid-fas-openid See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 @@ -70,15 +101,3 @@ rm -rf %{modname}.egg-info * Sat Feb 11 2017 Fedora Release Engineering - 0.3.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Tue Jul 19 2016 Fedora Release Engineering - 0.3.8-4 -- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages - -* Thu Feb 04 2016 Fedora Release Engineering - 0.3.8-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Thu Jun 18 2015 Fedora Release Engineering - 0.3.8-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Mon Apr 13 2015 Ralph Bean - 0.3.8-1 -- initial package for Fedora diff --git a/sources b/sources index 61bcd99..a30c60d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7b8d042042ecd8e0b1aef8fea6dfae87 pyramid_fas_openid-0.3.8.tar.gz +SHA512 (pyramid_fas_openid-0.3.9.tar.gz) = 2e8651b81e08dc8ea608c60bb3f71d0573881d771a9c95ab972763c3824578f36995bbd7a8354fe3934bfadc71291831547d0c753e977b4438de8ccb574cd884