From 4454c29a92340f5f67208470caf6a13ba5cf4551 Mon Sep 17 00:00:00 2001 From: Paul Wouters Date: Jun 01 2021 19:46:20 +0000 Subject: - Initial package import --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a32793a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/zxcvbn-python-4.4.28.tar.gz diff --git a/python-zxcvbn.spec b/python-zxcvbn.spec new file mode 100644 index 0000000..8280285 --- /dev/null +++ b/python-zxcvbn.spec @@ -0,0 +1,57 @@ +%global srcname zxcvbn-python + +Name: python-zxcvbn +Summary: Realistic password strength estimator python module +Version: 4.4.28 +Release: 2%{?dist} +License: MIT +URL: https://github.com/dwolfhub/zxcvbn-python +Source: https://github.com/dwolfhub/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: pytest + +%global _description %{expand: +A realistic password strength estimator. + +This is a Python implementation of the library created by the team at Dropbox. +The original library was written for JavaScript. + +Accepts user data to be added to the dictionaries that are tested against +(name, birthdate, etc). Gives a score to the password, from 0 (terrible) +to 4 (great). It provides feedback on the password and ways to improve it +and returns time estimates on how long it would take to guess the password +in different situations.} +%description %_description + +%package -n python3-zxcvbn +Summary: Realistic password strength estimator python3 module + +%description -n python3-zxcvbn %_description + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py3_build + +%check +%pytest + +%install +%py3_install + +%files -n python3-zxcvbn +%license LICENSE.txt +%doc README.rst +%{_bindir}/zxcvbn +%{python3_sitelib}/zxcvbn-*.egg-info/ +%{python3_sitelib}/zxcvbn + +%changelog +* Sun May 30 2021 Paul Wouters - 4.4.28-2 +- Resolves: rhbz#1965144 Package review issues + +* Thu May 27 2021 Paul Wouters - 4.4.28-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..57b9e99 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (zxcvbn-python-4.4.28.tar.gz) = be85f976dcf685e2885edff116147cc4549f9c86dee4317b61b84dc4f36ab2c8c2f3468d5d1a55e8890693c852a09104b14360f9ce43feb3727f8fc164eb78f1