%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} Name: python-totpcgi Version: 0.0.2 Release: 1%{?dist} Summary: CGI-based centralized 2-factor authentication BuildArch: noarch License: GPLv2+ URL: https://github.com/mricon/totp-cgi Source0: totpcgi-%{version}.tar.gz BuildRequires: python-devel, python-pyotp Requires: python-pyotp %description CGI-based centralized 2-factor authentication %prep %setup -q -n totpcgi-%{version} %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{python_sitelib} cp -a totpcgi %{buildroot}%{python_sitelib} %files %doc README.rst COPYING totp.cgi totp.fcgi %{python_sitelib}/* %changelog * Wed Feb 29 2012 Konstantin Ryabitsev - 0.0.2-1 - Initial packaging.