[packages/python-flask-login] Initial 0.2.11. By Lukasz Gabrych.

matkor matkor at pld-linux.org
Fri Apr 10 14:59:57 CEST 2015


commit 44af3ef0490c4c9d8ad2393751952a9502aab994
Author: Mateusz Korniak <matkor at pld-linux.org>
Date:   Fri Apr 10 14:59:39 2015 +0200

    Initial 0.2.11. By Lukasz Gabrych.

 python-flask-login.spec | 110 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 110 insertions(+)
---
diff --git a/python-flask-login.spec b/python-flask-login.spec
new file mode 100644
index 0000000..1850f3a
--- /dev/null
+++ b/python-flask-login.spec
@@ -0,0 +1,110 @@
+#
+# Conditional build:
+%bcond_without  python2 # CPython 2.x module
+%bcond_without  python3 # CPython 3.x module
+
+%define         module  flask-login
+Summary:	Flask-Login provides user session management for Flask
+Summary(pl.UTF-8):	Wsparcie dla zarzadzania sesja uzytkownika w aplikacjach Flask
+Name:		python-%{module}
+Version:	0.2.11
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+Source0:	https://pypi.python.org/packages/source/F/Flask-Login/Flask-Login-%{version}.tar.gz
+# Source0-md5:	c0a7eaf28623f0aeac4929dc05a7a064
+URL:		https://github.com/maxcountryman/flask-login/
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+%if %{with python2}
+BuildRequires:	python-distribute
+%endif
+%if %{with python3}
+BuildRequires:	python3-distribute
+BuildRequires:	python3-modules
+%endif
+Requires:	python-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Flask-Login provides user session management for Flask. It handles the
+common tasks of logging in, logging out, and remembering your users'
+sessions over extended periods of time.
+
+%description -l pl.UTF-8
+Wsparcie dla zarzadzania sesja uzytkownika w aplikacjach Flask. Plugin
+obsluguje najpopularniejsze przypadki uzycia: logowanie, wylogowanie,
+zapamietywanie sesji uzytkownikow przez okreslony czas.
+
+%package -n python3-%{module}
+Summary:	Flask-Login provides user session management for Flask
+Summary(pl.UTF-8):	Wsparcie dla zarzadzania sesja uzytkownika w aplikacjach Flask
+Group:		Libraries/Python
+Requires:	python3-modules
+
+%description -n python3-%{module}
+Flask-Login provides user session management for Flask. It handles the
+common tasks of logging in, logging out, and remembering your users'
+sessions over extended periods of time.
+
+%description -n python3-%{module} -l pl.UTF-8
+Wsparcie dla zarzadzania sesja uzytkownika w aplikacjach Flask. Plugin
+obsluguje najpopularniejsze przypadki uzycia: logowanie, wylogowanie,
+zapamietywanie sesji uzytkownikow przez okreslony czas.
+
+%prep
+%setup -q -n Flask-Login-%{version}
+
+%build
+%if %{with python2}
+%{__python} setup.py build --build-base build-2
+%endif
+
+%if %{with python3}
+%{__python3} setup.py build --build-base build-3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%{__python} setup.py \
+        build --build-base build-2 \
+        install --skip-build \
+        --optimize=2 \
+        --root=$RPM_BUILD_ROOT
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%{__python3} setup.py \
+        build --build-base build-3 \
+        install --skip-build \
+        --optimize=2 \
+        --root=$RPM_BUILD_ROOT
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.markdown LICENSE
+%{py_sitescriptdir}/flask_login.py[co]
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/Flask_Login-%{version}-py*.egg-info
+%endif
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc README.markdown LICENSE
+%{py3_sitescriptdir}/flask_login.py
+%{py3_sitescriptdir}/__pycache__/flask_login.*.py[co]
+%{py3_sitescriptdir}/Flask_Login-%{version}-py*.egg-info
+%endif
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-flask-login.git/commitdiff/44af3ef0490c4c9d8ad2393751952a9502aab994



More information about the pld-cvs-commit mailing list