|
 |
3605214 |
%global pypi_name nanoid
|
|
 |
3605214 |
|
|
 |
3605214 |
Name: python-%{pypi_name}
|
|
 |
3605214 |
Version: 2.0.0
|
|
 |
8e26f49 |
Release: 3%{?dist}
|
|
 |
3605214 |
Summary: Unique string ID generator for Python
|
|
 |
3605214 |
|
|
 |
3605214 |
License: MIT
|
|
 |
3605214 |
URL: https://github.com/puyuan/py-nanoid
|
|
 |
3605214 |
Source0: %{pypi_source}
|
|
 |
3605214 |
Source1: https://raw.githubusercontent.com/puyuan/py-nanoid/master/LICENSE
|
|
 |
3605214 |
BuildArch: noarch
|
|
 |
3605214 |
|
|
 |
3605214 |
BuildRequires: python3-devel
|
|
 |
3605214 |
BuildRequires: python3-setuptools
|
|
 |
3605214 |
|
|
 |
3605214 |
%description
|
|
 |
3605214 |
Nano ID is a tiny, secure, URL-friendly, unique string ID generator for
|
|
 |
3605214 |
Python. It uses cryptographically strong random APIs and tests distribution
|
|
 |
3605214 |
of symbols and a larger alphabet than UUID (A-Za-z0-9_-).
|
|
 |
3605214 |
|
|
 |
3605214 |
%package -n python3-%{pypi_name}
|
|
 |
3605214 |
Summary: %{summary}
|
|
 |
3605214 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
 |
3605214 |
|
|
 |
3605214 |
%description -n python3-%{pypi_name}
|
|
 |
3605214 |
Nano ID is a tiny, secure, URL-friendly, unique string ID generator for
|
|
 |
3605214 |
Python. It uses cryptographically strong random APIs and tests distribution
|
|
 |
3605214 |
of symbols and a larger alphabet than UUID (A-Za-z0-9_-).
|
|
 |
3605214 |
|
|
 |
3605214 |
%prep
|
|
 |
3605214 |
%autosetup -n %{pypi_name}-%{version}
|
|
 |
3605214 |
rm -rf %{pypi_name}.egg-info
|
|
 |
3605214 |
cp -a %{SOURCE1} LICENSE
|
|
 |
3605214 |
|
|
 |
3605214 |
%build
|
|
 |
3605214 |
%py3_build
|
|
 |
3605214 |
|
|
 |
3605214 |
%install
|
|
 |
3605214 |
%py3_install
|
|
 |
3605214 |
|
|
 |
3605214 |
%files -n python3-%{pypi_name}
|
|
 |
3605214 |
%doc README.md
|
|
 |
3605214 |
# License file missing: https://github.com/puyuan/py-nanoid/pull/19
|
|
 |
3605214 |
%license LICENSE
|
|
 |
3605214 |
%{python3_sitelib}/%{pypi_name}/
|
|
 |
3605214 |
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info/
|
|
 |
3605214 |
|
|
 |
3605214 |
%changelog
|
|
 |
8e26f49 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
|
|
 |
8e26f49 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
 |
8e26f49 |
|
|
 |
3605214 |
* Fri Jun 26 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.0.0-2
|
|
 |
3605214 |
- Add license (rhbz#1830267)
|
|
 |
3605214 |
|
|
 |
3605214 |
* Fri May 01 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.0.0-1
|
|
 |
3605214 |
- Initial package for Fedora
|