Blob Blame History Raw
%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.9
Release:            1%{?dist}
Summary:            A view for pyramid that functions as an OpenID consumer

Group:              Development/Libraries
License:            BSD
URL:                https://github.com/fedora-infra/pyramid_fas_openid
Source0:            %{url}/archive/%{version}/%{modname}-%{version}.tar.gz
BuildArch:          noarch

BuildRequires:      python-openid
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


%description %_description


%package -n python2-pyramid-fas-openid
Summary: %summary
Requires:           python-openid
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
%py2_build
%py3_build


%install
%py2_install
%py3_install


%files -n python2-pyramid-fas-openid
%doc README.txt
%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 <bowlofeggs@fedoraproject.org> - 0.3.9-1
- Update to 0.3.9.
- Add support for Python 3.

* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.3.8-7
- Python 2 binary package renamed to python2-pyramid-fas-openid
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3

* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.8-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.8-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild