%{!?_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 Name: python-pyramid-fas-openid Version: 0.3.8 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 BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python-pyramid BuildRequires: python-openid BuildRequires: python-openid-teams BuildRequires: python-openid-cla Requires: python-pyramid Requires: python-openid Requires: python-openid-teams Requires: python-openid-cla %description pyramid_fas_openid provides a view for the Pyramid framework that acts as an OpenID consumer for the Fedora Account System. %prep %setup -q -n %{modname}-%{version} # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info %build %{__python2} setup.py build %install %{__python2} setup.py install -O1 --skip-build --root=%{buildroot} %files %doc README.txt #%%license LICENSE %{python2_sitelib}/%{modname}/ %{python2_sitelib}/%{modname}-%{version}* %changelog * Mon Apr 13 2015 Ralph Bean - 0.3.8-1 - initial package for Fedora