%global pypi_name Flask-Principal
Name: python-flask-principal
Version: 0.4.0
Release: 6%{?dist}
Summary: Identity management for Flask applications
Group: Development/Languages
License: MIT
URL: https://pypi.python.org/pypi/%{pypi_name}
Source0: https://pypi.python.org/packages/source/F/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
# patch adding LICENSE to release tarball accepted upstream, will be included in the next version
Source1: LICENSE
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
Requires: python-flask
Requires: python-blinker
%description
Flask-Principal provides a very loose framework to tie in authentication
and user information providers, often located in different parts of a web
application.
%prep
%setup -q -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info
cp %{SOURCE1} .
%build
%{__python} setup.py build
%install
%{__python} setup.py install --skip-build --root %{buildroot}
%files
%doc LICENSE README.rst
%{python_sitelib}/*
%changelog
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Mon Aug 12 2013 Richard Marko <rmarko@fedoraproject.org> - 0.4.0-5
- Added missing LICENSE file
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Sun Jul 07 2013 Richard Marko <rmarko@fedoraproject.org> - 0.4.0-3
- Removed upstream egg
* Thu Jul 04 2013 Richard Marko <rmarko@fedoraproject.org> - 0.4.0-2
- Added python-setuptools to BuildRequires
- Added python-blinker to Requires
- Fixed Summary
* Tue Jul 02 2013 Richard Marko <rmarko@fedoraproject.org> - 0.4.0-1
- Initial packaging attempt