From 2ce9021b66e47621921225b1102589ca73000a35 Mon Sep 17 00:00:00 2001 From: Itamar Reis Peixoto Date: Mar 17 2018 22:20:05 +0000 Subject: 0.4.1 --- diff --git a/python-flask-login.spec b/python-flask-login.spec index a7a71b6..0a547a5 100644 --- a/python-flask-login.spec +++ b/python-flask-login.spec @@ -1,35 +1,20 @@ %global pypi_name Flask-Login -%if 0%{?fedora} -%global with_python3 1 -%else -# EL doesn't have Python 3 -%global with_python3 0 -%endif - -%if 0%{?rhel} && 0%{?rhel} < 7 -# EL 6 doesn't have this macro -%global __python2 %{__python} -%global python2_sitelib %{python_sitelib} -%endif - Name: python-flask-login -Version: 0.3.0 -Release: 9%{?dist} +Version: 0.4.1 +Release: 1%{?dist} Summary: User session management for Flask License: MIT URL: https://github.com/maxcountryman/flask-login -Source0: https://pypi.python.org/packages/source/F/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/F/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel -BuildRequires: python-setuptools +BuildRequires: python2-setuptools -%if %{?with_python3} -BuildRequires: python3-devel -BuildRequires: python3-setuptools -%endif # if with_python3 +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools %global _description\ Flask-Login provides user session management for Flask. It handles the common\ @@ -40,22 +25,19 @@ extended periods of time. %package -n python2-flask-login Summary: %summary -Requires: python-flask +Requires: python2-flask %{?python_provide:%python_provide python2-flask-login} %description -n python2-flask-login %_description -%if 0%{?with_python3} -%package -n python3-flask-login +%package -n python%{python3_pkgversion}-flask-login Summary: User session management for Flask - -Requires: python3-flask - -%description -n python3-flask-login +Requires: python%{python3_pkgversion}-flask +%{?python_provide:%python_provide python%{python3_pkgversion}-flask-login} +%description -n python%{python3_pkgversion}-flask-login 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. -%endif # with_python3 %prep @@ -63,52 +45,48 @@ extended periods of time. rm -rf %{pypi_name}.egg-info -%if 0%{?with_python3} rm -rf %{py3dir} cp -a . %{py3dir} find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' -%endif # with_python3 %build %{__python2} setup.py build -%if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py build popd -%endif # with_python3 %install # Must do the subpackages' install first because the scripts in /usr/bin are # overwritten with every setup.py install (and we want the python2 version # to be the default for now). -%if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py install --skip-build --root %{buildroot} popd -%endif # with_python3 %{__python2} setup.py install --skip-build --root %{buildroot} %files -n python2-flask-login -%doc README.markdown +%doc README.md %license LICENSE %{python2_sitelib}/* -%if 0%{?with_python3} -%files -n python3-flask-login -%doc README.markdown +%files -n python%{python3_pkgversion}-flask-login +%doc README.md %license LICENSE %{python3_sitelib}/* -%endif # with_python3 - %changelog +* Fri Feb 16 2018 Itamar Reis Peixoto - 0.4.1-1 +- make spec file compatible with epel7 +- always build for python 3 +- 0.4.1 + * Fri Feb 09 2018 Fedora Release Engineering - 0.3.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild