Blame python-zxcvbn.spec

4454c29
%global srcname zxcvbn-python
4454c29
4454c29
Name: python-zxcvbn
4454c29
Summary: Realistic password strength estimator python module
4454c29
Version: 4.4.28
4454c29
Release: 2%{?dist}
4454c29
License: MIT
4454c29
URL: https://github.com/dwolfhub/zxcvbn-python
4454c29
Source: https://github.com/dwolfhub/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
4454c29
BuildArch: noarch
4454c29
BuildRequires: python3-devel
4454c29
BuildRequires: python3-setuptools
ea0b1f0
BuildRequires: python3-pytest
4454c29
4454c29
%global _description %{expand:
4454c29
A realistic password strength estimator.
4454c29
4454c29
This is a Python implementation of the library created by the team at Dropbox.
4454c29
The original library was written for JavaScript.
4454c29
4454c29
Accepts user data to be added to the dictionaries that are tested against
4454c29
(name, birthdate, etc).  Gives a score to the password, from 0 (terrible)
4454c29
to 4 (great). It provides feedback on the password and ways to improve it
4454c29
and returns time estimates on how long it would take to guess the password
4454c29
in different situations.}
4454c29
%description %_description
4454c29
4454c29
%package -n python3-zxcvbn
4454c29
Summary: Realistic password strength estimator python3 module
4454c29
4454c29
%description -n python3-zxcvbn %_description
4454c29
4454c29
%prep
4454c29
%autosetup -n %{srcname}-%{version}
4454c29
4454c29
%build
4454c29
%py3_build
4454c29
4454c29
%check
4454c29
%pytest
4454c29
4454c29
%install
4454c29
%py3_install
4454c29
4454c29
%files -n python3-zxcvbn
4454c29
%license LICENSE.txt
4454c29
%doc README.rst
4454c29
%{_bindir}/zxcvbn
4454c29
%{python3_sitelib}/zxcvbn-*.egg-info/
4454c29
%{python3_sitelib}/zxcvbn
4454c29
4454c29
%changelog
4454c29
* Sun May 30 2021 Paul Wouters <paul.wouters@aiven.io> - 4.4.28-2
4454c29
- Resolves: rhbz#1965144 Package review issues
4454c29
4454c29
* Thu May 27 2021 Paul Wouters <paul.wouters@aiven.io> - 4.4.28-1
4454c29
- Initial package