summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 06:22:57 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 06:22:57 +0000
commitad2987546ad19595b5577ea3cb037e975db7afeb (patch)
tree04deeba780e1b0fd811a04cb0c3b80d85bdd09fa
parentfcd24cecc936ebc0e29e3dbd13f433eb457b62cf (diff)
automatic import of python-random-usernameopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-random-username.spec213
-rw-r--r--sources1
3 files changed, 215 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a7cf9d7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/random-username-1.0.2.tar.gz
diff --git a/python-random-username.spec b/python-random-username.spec
new file mode 100644
index 0000000..f689335
--- /dev/null
+++ b/python-random-username.spec
@@ -0,0 +1,213 @@
+%global _empty_manifest_terminate_build 0
+Name: python-random-username
+Version: 1.0.2
+Release: 1
+Summary: Randomly generate compelling usernames.
+License: MIT
+URL: https://github.com/williexu/random_username
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/be/84/7004e0038707827e7ebe91a09e0f46483e36134de3b20bc0d5cf864a4caa/random-username-1.0.2.tar.gz
+BuildArch: noarch
+
+
+%description
+# Random Username Generator
+
+A package to randomly generate compelling usernames in the format `<adjective><noun><number>`.
+
+## Installation
+
+You can install the Random Username Generator from [PyPI](https://pypi.org/project/random-username/#description):
+
+ pip install random-username
+
+This package is supported on Python 2.7, as well as Python 3.5 and above.
+
+# How to use
+
+This is a command-line application to generate usernames. To use, simply call:
+
+ $ random_username -h
+ usage: random_username [-h] [num_results]
+
+ Generate Compelling Usernames.
+
+ positional arguments:
+ num_results Number of results to return
+
+ optional arguments:
+ -h, --help show this help message and exit
+
+To generate usernames, call the program like so (not specifying a number will default to 1):
+
+ $ random_username 10
+ vengefulSausage3
+ pacifiedIcecream7
+ amazedOtter4
+ lovesickSardines2
+ grizzledChowder1
+ grumpyRat1
+ troubledCod7
+ dopeyPiglet7
+ dreadfulOtter4
+ giddyOil7
+
+You can also call the Random Username Generator from your own python code by importing from `random_username.generate`
+
+ >>> from random_username.generate import generate_username
+ >>> generate_username(5)
+ ['insecureJaguar0', 'spiritedMuesli8', 'cautiousSmelt2', 'mereVenison4', 'offendedPie6']
+
+
+
+%package -n python3-random-username
+Summary: Randomly generate compelling usernames.
+Provides: python-random-username
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-random-username
+# Random Username Generator
+
+A package to randomly generate compelling usernames in the format `<adjective><noun><number>`.
+
+## Installation
+
+You can install the Random Username Generator from [PyPI](https://pypi.org/project/random-username/#description):
+
+ pip install random-username
+
+This package is supported on Python 2.7, as well as Python 3.5 and above.
+
+# How to use
+
+This is a command-line application to generate usernames. To use, simply call:
+
+ $ random_username -h
+ usage: random_username [-h] [num_results]
+
+ Generate Compelling Usernames.
+
+ positional arguments:
+ num_results Number of results to return
+
+ optional arguments:
+ -h, --help show this help message and exit
+
+To generate usernames, call the program like so (not specifying a number will default to 1):
+
+ $ random_username 10
+ vengefulSausage3
+ pacifiedIcecream7
+ amazedOtter4
+ lovesickSardines2
+ grizzledChowder1
+ grumpyRat1
+ troubledCod7
+ dopeyPiglet7
+ dreadfulOtter4
+ giddyOil7
+
+You can also call the Random Username Generator from your own python code by importing from `random_username.generate`
+
+ >>> from random_username.generate import generate_username
+ >>> generate_username(5)
+ ['insecureJaguar0', 'spiritedMuesli8', 'cautiousSmelt2', 'mereVenison4', 'offendedPie6']
+
+
+
+%package help
+Summary: Development documents and examples for random-username
+Provides: python3-random-username-doc
+%description help
+# Random Username Generator
+
+A package to randomly generate compelling usernames in the format `<adjective><noun><number>`.
+
+## Installation
+
+You can install the Random Username Generator from [PyPI](https://pypi.org/project/random-username/#description):
+
+ pip install random-username
+
+This package is supported on Python 2.7, as well as Python 3.5 and above.
+
+# How to use
+
+This is a command-line application to generate usernames. To use, simply call:
+
+ $ random_username -h
+ usage: random_username [-h] [num_results]
+
+ Generate Compelling Usernames.
+
+ positional arguments:
+ num_results Number of results to return
+
+ optional arguments:
+ -h, --help show this help message and exit
+
+To generate usernames, call the program like so (not specifying a number will default to 1):
+
+ $ random_username 10
+ vengefulSausage3
+ pacifiedIcecream7
+ amazedOtter4
+ lovesickSardines2
+ grizzledChowder1
+ grumpyRat1
+ troubledCod7
+ dopeyPiglet7
+ dreadfulOtter4
+ giddyOil7
+
+You can also call the Random Username Generator from your own python code by importing from `random_username.generate`
+
+ >>> from random_username.generate import generate_username
+ >>> generate_username(5)
+ ['insecureJaguar0', 'spiritedMuesli8', 'cautiousSmelt2', 'mereVenison4', 'offendedPie6']
+
+
+
+%prep
+%autosetup -n random-username-1.0.2
+
+%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-random-username -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..0c11574
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c70ffb18c1c1768420f37bda1cdb5f3a random-username-1.0.2.tar.gz