diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ed4d15c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/nanoid-2.0.0.tar.gz diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..0c41186 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +MIT License + + +Copyright (c) 2018 Paul Yuan +Copyright (c) 2018 Dair Aidarkhanov +Copyright (c) 2018 Andrey Sitnik + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/python-nanoid.spec b/python-nanoid.spec new file mode 100644 index 0000000..65bee35 --- /dev/null +++ b/python-nanoid.spec @@ -0,0 +1,54 @@ +%global pypi_name nanoid + +Name: python-%{pypi_name} +Version: 2.0.0 +Release: 2%{?dist} +Summary: Unique string ID generator for Python + +License: MIT +URL: https://github.com/puyuan/py-nanoid +Source0: %{pypi_source} +Source1: https://raw.githubusercontent.com/puyuan/py-nanoid/master/LICENSE +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description +Nano ID is a tiny, secure, URL-friendly, unique string ID generator for +Python. It uses cryptographically strong random APIs and tests distribution +of symbols and a larger alphabet than UUID (A-Za-z0-9_-). + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +Nano ID is a tiny, secure, URL-friendly, unique string ID generator for +Python. It uses cryptographically strong random APIs and tests distribution +of symbols and a larger alphabet than UUID (A-Za-z0-9_-). + +%prep +%autosetup -n %{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info +cp -a %{SOURCE1} LICENSE + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%doc README.md +# License file missing: https://github.com/puyuan/py-nanoid/pull/19 +%license LICENSE +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info/ + +%changelog +* Fri Jun 26 2020 Fabian Affolter - 2.0.0-2 +- Add license (rhbz#1830267) + +* Fri May 01 2020 Fabian Affolter - 2.0.0-1 +- Initial package for Fedora diff --git a/sources b/sources new file mode 100644 index 0000000..72b82df --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (nanoid-2.0.0.tar.gz) = 7db65075357feb19c4747be9abca1a19a2b8583f82cdcae87f06846141d798a725128ee784ce33cd3b14b272c0beb2dcac0faf4536e8d5183eaa06eab79fff87