]>
Commit | Line | Data |
---|---|---|
44af3ef0 MK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without python2 # CPython 2.x module | |
f0c1e36b | 4 | %bcond_with python3 # CPython 3.x module |
44af3ef0 MK |
5 | |
6 | %define module flask-login | |
7 | Summary: Flask-Login provides user session management for Flask | |
8 | Summary(pl.UTF-8): Wsparcie dla zarzadzania sesja uzytkownika w aplikacjach Flask | |
9 | Name: python-%{module} | |
f0c1e36b | 10 | # keep python2 compatible version here |
662a3fd3 | 11 | Version: 0.5.0 |
f0c1e36b | 12 | Release: 6 |
44af3ef0 MK |
13 | License: MIT |
14 | Group: Libraries/Python | |
15 | Source0: https://pypi.python.org/packages/source/F/Flask-Login/Flask-Login-%{version}.tar.gz | |
662a3fd3 | 16 | # Source0-md5: a2d94aa6ae935345ebc68eb3cbb5fccd |
44af3ef0 MK |
17 | URL: https://github.com/maxcountryman/flask-login/ |
18 | BuildRequires: rpm-pythonprov | |
be9f8f3d | 19 | BuildRequires: rpmbuild(macros) >= 1.710 |
44af3ef0 MK |
20 | %if %{with python2} |
21 | BuildRequires: python-distribute | |
22 | %endif | |
23 | %if %{with python3} | |
44af3ef0 MK |
24 | BuildRequires: python3-modules |
25 | %endif | |
26 | Requires: python-modules | |
27 | BuildArch: noarch | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | Flask-Login provides user session management for Flask. It handles the | |
32 | common tasks of logging in, logging out, and remembering your users' | |
33 | sessions over extended periods of time. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | Wsparcie dla zarzadzania sesja uzytkownika w aplikacjach Flask. Plugin | |
37 | obsluguje najpopularniejsze przypadki uzycia: logowanie, wylogowanie, | |
38 | zapamietywanie sesji uzytkownikow przez okreslony czas. | |
39 | ||
40 | %package -n python3-%{module} | |
41 | Summary: Flask-Login provides user session management for Flask | |
42 | Summary(pl.UTF-8): Wsparcie dla zarzadzania sesja uzytkownika w aplikacjach Flask | |
43 | Group: Libraries/Python | |
44 | Requires: python3-modules | |
45 | ||
46 | %description -n python3-%{module} | |
47 | Flask-Login provides user session management for Flask. It handles the | |
48 | common tasks of logging in, logging out, and remembering your users' | |
49 | sessions over extended periods of time. | |
50 | ||
51 | %description -n python3-%{module} -l pl.UTF-8 | |
52 | Wsparcie dla zarzadzania sesja uzytkownika w aplikacjach Flask. Plugin | |
53 | obsluguje najpopularniejsze przypadki uzycia: logowanie, wylogowanie, | |
54 | zapamietywanie sesji uzytkownikow przez okreslony czas. | |
55 | ||
56 | %prep | |
57 | %setup -q -n Flask-Login-%{version} | |
58 | ||
59 | %build | |
60 | %if %{with python2} | |
38d6fd04 | 61 | %py_build |
44af3ef0 MK |
62 | %endif |
63 | ||
64 | %if %{with python3} | |
38d6fd04 | 65 | %py3_build |
44af3ef0 MK |
66 | %endif |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %if %{with python2} | |
38d6fd04 | 72 | %py_install |
44af3ef0 MK |
73 | |
74 | %py_postclean | |
75 | %endif | |
76 | ||
77 | %if %{with python3} | |
38d6fd04 | 78 | %py3_install |
44af3ef0 MK |
79 | %endif |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %if %{with python2} | |
85 | %files | |
86 | %defattr(644,root,root,755) | |
8d90d76c AM |
87 | %doc README.md LICENSE |
88 | %{py_sitescriptdir}/flask_login | |
44af3ef0 MK |
89 | %if "%{py_ver}" > "2.4" |
90 | %{py_sitescriptdir}/Flask_Login-%{version}-py*.egg-info | |
91 | %endif | |
92 | %endif | |
93 | ||
94 | %if %{with python3} | |
95 | %files -n python3-%{module} | |
96 | %defattr(644,root,root,755) | |
8d90d76c AM |
97 | %doc README.md LICENSE |
98 | %{py3_sitescriptdir}/flask_login | |
44af3ef0 MK |
99 | %{py3_sitescriptdir}/Flask_Login-%{version}-py*.egg-info |
100 | %endif | |
101 |