]> git.pld-linux.org Git - packages/python-flask-login.git/blobdiff - python-flask-login.spec
- up to 0.4.1
[packages/python-flask-login.git] / python-flask-login.spec
index 1850f3a581b514ab3d12a2c550dd19ddaddf2bcd..ed8bf962e658c963b0b1c294da5c0deb65354fae 100644 (file)
@@ -7,15 +7,15 @@
 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
+Version:       0.4.1
 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
+# Source0-md5: 25b34c74bd509792f291c16e184225df
 URL:           https://github.com/maxcountryman/flask-login/
 BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.219
+BuildRequires: rpmbuild(macros) >= 1.710
 %if %{with python2}
 BuildRequires: python-distribute
 %endif
@@ -58,32 +58,24 @@ zapamietywanie sesji uzytkownikow przez okreslony czas.
 
 %build
 %if %{with python2}
-%{__python} setup.py build --build-base build-2
+%py_build
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build --build-base build-3
+%py3_build
 %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_install
 
 %py_postclean
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-        build --build-base build-3 \
-        install --skip-build \
-        --optimize=2 \
-        --root=$RPM_BUILD_ROOT
+%py3_install
 %endif
 
 %clean
@@ -92,8 +84,8 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc README.markdown LICENSE
-%{py_sitescriptdir}/flask_login.py[co]
+%doc README.md LICENSE
+%{py_sitescriptdir}/flask_login
 %if "%{py_ver}" > "2.4"
 %{py_sitescriptdir}/Flask_Login-%{version}-py*.egg-info
 %endif
@@ -102,9 +94,8 @@ rm -rf $RPM_BUILD_ROOT
 %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]
+%doc README.md LICENSE
+%{py3_sitescriptdir}/flask_login
 %{py3_sitescriptdir}/Flask_Login-%{version}-py*.egg-info
 %endif
 
This page took 0.160447 seconds and 4 git commands to generate.