File python-keystone-limits.spec of Package python-keystone-limits
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
%global pyname keystone-limits
Name: python-%{pyname}
Version: a6f066b
Release: 0
License: Apache-2.0
Summary: Keystone-specific rate-limit class for turnstile
Group: Development/Libraries/Python
# https://github.com/mapleoin/keystone_limits/zipball/master
Source: %{pyname}-git-master-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Url: https://github.com/mapleoin/keystone_limits
BuildRequires: python-setuptools
Requires: python-msgpack-python
Requires: openstack-keystone
Requires: python-turnstile
Requires: python
%description
This package provides the keystone_limits Python module, which contains
the keystone_preprocess() preprocessor, the KeystoneClassLimit limit
class, and the KeystoneTurnstileMiddleware replacement middleware class,
all for use with Turnstile. These pieces work together to provide
class-based rate limiting integration with keystone.
%prep
%setup -n %{pyname}-git-master-%{version}
%build
python setup.py build
%install
python setup.py install --root=%{buildroot} --prefix=%{_prefix}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc LICENSE README.rst
%{_bindir}/limit_class
%{python_sitelib}/*
%changelog