diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 16:50:02 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 16:50:02 +0000 |
commit | 532df7470e28114280976142859be8ce07f26552 (patch) | |
tree | 4207ea524dcf4153b5d5fd7dae492496753088d1 | |
parent | ca417c2a5db17d98f69ff34e5a5265b08de34a16 (diff) |
automatic import of python-shortuuid
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-shortuuid.spec | 93 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 95 insertions, 0 deletions
@@ -0,0 +1 @@ +/shortuuid-1.0.11.tar.gz diff --git a/python-shortuuid.spec b/python-shortuuid.spec new file mode 100644 index 0000000..4edad75 --- /dev/null +++ b/python-shortuuid.spec @@ -0,0 +1,93 @@ +%global _empty_manifest_terminate_build 0 +Name: python-shortuuid +Version: 1.0.11 +Release: 1 +Summary: A generator library for concise, unambiguous and URL-safe UUIDs. +License: License :: OSI Approved :: BSD License +URL: https://github.com/skorokithakis/shortuuid/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1e/c6/ba2dd56e3996a1919984645ca0aaf20c4879cc1227c50a4be08f52b19ad0/shortuuid-1.0.11.tar.gz +BuildArch: noarch + + +%description +`shortuuid` is a simple python library that generates concise, unambiguous, URL-safe +UUIDs. +Often, one needs to use non-sequential IDs in places where users will see them, but the +IDs must be as concise and easy to use as possible. `shortuuid` solves this problem by +generating uuids using Python's built-in `uuid` module and then translating them to +base57 using lowercase and uppercase letters and digits, and removing similar-looking +characters such as l, 1, I, O and 0. +[](https://travis-ci.org/skorokithakis/shortuuid) + +%package -n python3-shortuuid +Summary: A generator library for concise, unambiguous and URL-safe UUIDs. +Provides: python-shortuuid +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-shortuuid +`shortuuid` is a simple python library that generates concise, unambiguous, URL-safe +UUIDs. +Often, one needs to use non-sequential IDs in places where users will see them, but the +IDs must be as concise and easy to use as possible. `shortuuid` solves this problem by +generating uuids using Python's built-in `uuid` module and then translating them to +base57 using lowercase and uppercase letters and digits, and removing similar-looking +characters such as l, 1, I, O and 0. +[](https://travis-ci.org/skorokithakis/shortuuid) + +%package help +Summary: Development documents and examples for shortuuid +Provides: python3-shortuuid-doc +%description help +`shortuuid` is a simple python library that generates concise, unambiguous, URL-safe +UUIDs. +Often, one needs to use non-sequential IDs in places where users will see them, but the +IDs must be as concise and easy to use as possible. `shortuuid` solves this problem by +generating uuids using Python's built-in `uuid` module and then translating them to +base57 using lowercase and uppercase letters and digits, and removing similar-looking +characters such as l, 1, I, O and 0. +[](https://travis-ci.org/skorokithakis/shortuuid) + +%prep +%autosetup -n shortuuid-1.0.11 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-shortuuid -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.11-1 +- Package Spec generated @@ -0,0 +1 @@ +0ba25301c0c2f87c776f5856d8c6ed89 shortuuid-1.0.11.tar.gz |