From 159914731406554621d10c82df92e3a424cf5ffe Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 20 Jun 2023 07:52:55 +0000 Subject: automatic import of python-rand-string --- .gitignore | 1 + python-rand-string.spec | 216 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 218 insertions(+) create mode 100644 python-rand-string.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..6068200 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/rand-string-0.50.tar.gz diff --git a/python-rand-string.spec b/python-rand-string.spec new file mode 100644 index 0000000..226d315 --- /dev/null +++ b/python-rand-string.spec @@ -0,0 +1,216 @@ +%global _empty_manifest_terminate_build 0 +Name: python-rand-string +Version: 0.50 +Release: 1 +Summary: Generates a random string of a specified length. +License: MIT +URL: https://github.com/TheSongList/random-string +Source0: https://mirrors.aliyun.com/pypi/web/packages/6a/ad/4daf29ad0206cc38d0b0d0c440dd3412424944b39e57ad93c9dd218ff368/rand-string-0.50.tar.gz +BuildArch: noarch + + +%description +# rand-string +Generates a random string of a specified length. + +# Usage +Currently there are 5 types: +- uppercase +- lowercase +- upperlower +- alphanumerical +- ascii + +You can probably guess what each one would create + +The function requires 2 parameters type and length; Type of course is the above. +```py +import rand_string.rand_string as rand +rand.RandString(type, length) +``` +Now lets look at some examples + +uppercase: +```py +print(rand.RandString("uppercase", 10)) +# Output: TPDROEAVRY +``` + +lowercase: +```py +print(rand.RandString("lowercase", 10)) +# Output: mdvsewzkwf +``` + +upperlower: +```py +print(rand.RandString("upperlower", 10)) +# Output: YjHFGzysFx +``` + +alphanumerical: +```py +print(rand.RandString("alphanumerical", 10)) +# Output: Fy0Nbqno6B +``` + +ascii: +```py +print(rand.RandString("ascii", 10)) +# Output: jtj-NV> 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-rand-string -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot - 0.50-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..53c01fc --- /dev/null +++ b/sources @@ -0,0 +1 @@ +de24e0df796d950dfe1199008e8b29ef rand-string-0.50.tar.gz -- cgit v1.2.3