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