Blob Blame History Raw
%global pkg_name flask-paranoid

Name:           python-%{pkg_name}
Version:        0.3.0
Release:        4%{?dist}
Summary:        Flask Simple user session protection
License:        MIT

URL:            https://github.com/miguelgrinberg/%{pkg_name}
Source0:        %{url}/archive/v%{version}/%{pkg_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(pytest)

%description
Flask Simple user session protection.


%package -n python3-%{pkg_name}
Summary:        Flask Simple user session protection

%description -n python3-%{pkg_name}
Flask Simple user session protection.

%prep
%autosetup -p1 -n %{pkg_name}-%{version}

# Fix incorrect date format in test
sed -r -i 's/01-Jan-1970/01 Jan 1970/' tests/test_paranoid.py


%generate_buildrequires
%pyproject_buildrequires -r


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files flask_paranoid


%check
%pytest


%files -n python3-%{pkg_name} -f %{pyproject_files}
%doc README.md
%license LICENSE


%changelog
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 0.3.0-3
- Rebuilt for Python 3.11

* Fri May 13 2022 Charalampos Stratakis <cstratak@redhat.com> - 0.3.0-2
- Fix the sources link to properly update to 0.3.0

* Tue Apr 05 2022 Sandro Mani <manisandro@gmail.com> - 0.3.0-1
- Update to 0.3.0

* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

* Mon Dec 27 2021 Sandro Mani <manisandro@gmail.com> - 0.2.0-16
- Revert to PiPy versioning
- Don't run %%pyproject_check_import

* Fri Dec 24 2021 Sandro Mani <manisandro@gmail.com> - 0.2-15
- Switch to github URL
- Install license
- Run %%pytest

* Thu Nov 11 2021 Sandro Mani <manisandro@gmail.com> - 0.2.0-14
- Revive package

* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.2.0-11
- Rebuilt for Python 3.9

* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.0-9
- Rebuilt for Python 3.8.0rc1 (#1748018)

* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.0-8
- Rebuilt for Python 3.8

* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.0-5
- Subpackage python2-flask-paranoid has been removed
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal

* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.0-3
- Rebuilt for Python 3.7

* Fri Apr 13 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.2.0-2
- Be more specific in files section

* Thu Mar 01 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.2.0-1
- initial spec file