From d7a55d6f637c06e5de8d17aba95c9600cc3775a1 Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Jan 28 2019 14:31:58 +0000 Subject: Initial import Package Review BZ#1668837 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7c3c7d7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/precis_i18n-1.0.tar.gz +/derived-props-11.0.txt diff --git a/python-precis_i18n.spec b/python-precis_i18n.spec new file mode 100644 index 0000000..7767156 --- /dev/null +++ b/python-precis_i18n.spec @@ -0,0 +1,68 @@ +%global srcname precis_i18n + +Name: python-%{srcname} +Version: 1.0 +Release: 2%{?dist} +Summary: Python library for internationalized usernames and passwords + +License: MIT +URL: https://github.com/byllyfish/precis_i18n +Source0: https://github.com/byllyfish/precis_i18n/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz +# add a missing file to pass the tests +Source1: https://raw.githubusercontent.com/byllyfish/precis_i18n/bf8c2e247746613eabc2601f29e842b0ab0f3aea/test/derived-props-11.0.txt + +BuildArch: noarch + +%global desc If you want your application to accept Unicode user names and passwords, you\ +must be careful in how you validate and compare them. The PRECIS framework\ +makes internationalized user names and passwords safer for use by applications.\ +PRECIS profiles transform Unicode strings into a canonical form, suitable for\ +comparison.\ +\ +This Python module implements the PRECIS Framework as described in:\ +\ + PRECIS Framework: Preparation, Enforcement, and Comparison of\ + Internationalized Strings in Application Protocols (RFC 8264)\ +\ + Preparation, Enforcement, and Comparison of Internationalized Strings\ + Representing Usernames and Passwords (RFC 8265)\ +\ + Preparation, Enforcement, and Comparison of Internationalized Strings\ + Representing Nicknames (RFC 8266) + +%description +%{desc} + +%package -n python3-%{srcname} +Summary: %{summary} +BuildRequires: python3-devel +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +%{desc} + +%prep +%autosetup -n %{srcname}-%{version} +cp -p %{SOURCE1} test/ + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files -n python3-%{srcname} +%license LICENSE.txt +%doc README.rst CHANGELOG.rst +%{python3_sitelib}/%{srcname}-*.egg-info/ +%{python3_sitelib}/%{srcname}/ + +%changelog +* Mon Jan 28 2019 Michal Schmidt - 1.0-2 +- In the package description spell "Unicode" with uppercase U. + +* Wed Jan 23 2019 Michal Schmidt - 1.0-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..d45c0b6 --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (precis_i18n-1.0.tar.gz) = b43622458fefb051e6f5ae6e347abfa65195052c63290b2be3ffb7c05eae0300caee53713d7216ee36c4ef0508cc4828e4d7ed3c65df873a684b803cc19bd410 +SHA512 (derived-props-11.0.txt) = df144b1790483055d9f6430c543892feed70402df6e0177daa94e005b5f9797f5885d7a5c1393a8a4555bcd0f7e85444f9e9f1152141b817f4e911bc2481e8bc