diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 08:23:19 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 08:23:19 +0000 |
| commit | c8eea24b58dba95adcb8148a366a8554ac1f4b45 (patch) | |
| tree | e4b1c2db4303c042d2b3af0f0558be3dab3f5c4f /python-username.spec | |
| parent | d26c63ca5b09b49b4a3744ecbfd433e92411c95a (diff) | |
automatic import of python-username
Diffstat (limited to 'python-username.spec')
| -rw-r--r-- | python-username.spec | 240 |
1 files changed, 240 insertions, 0 deletions
diff --git a/python-username.spec b/python-username.spec new file mode 100644 index 0000000..31a04ca --- /dev/null +++ b/python-username.spec @@ -0,0 +1,240 @@ +%global _empty_manifest_terminate_build 0 +Name: python-username +Version: 2.1.0 +Release: 1 +Summary: Get the current username +License: MIT +URL: https://projects.abranhe.com/username +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/9c/9e/236d179f14fa30e29b92705dad2631224e5aa58b1f15a07f6a556f3ed580/username-2.1.0.tar.gz +BuildArch: noarch + + +%description +<p align="center"> + <a href="https://pypi.org/project/username"><img src="https://cdn.abranhe.com/projects/username/logo.svg"></a> + <br> + <br> + <br> + <a href="https://pypi.org/project/username"><b>username</b></a> get the current username +</p> + +<p align="center"> + <a href="https://github.com/abranhe/username/actions/workflows/main.yml"> + <img src="https://github.com/abranhe/username/actions/workflows/main.yml/badge.svg" /> + </a> + <a href="https://app.travis-ci.com/github/abranhe/username"> + <img src="https://img.shields.io/travis/com/abranhe/username.svg?logo=travis" /> + </a> + <a href="https://ci.appveyor.com/project/abranhe/username"> + <img src="https://ci.appveyor.com/api/projects/status/8bp4dpqr76nx2nxt?svg=true" /> + </a> + <a href="https://pypi.org/project/username"> + <img src="https://img.shields.io/pypi/v/username"> + </a> + <a href="https://github.com/abranhe/username/blob/master/license"> + <img src="https://img.shields.io/github/license/abranhe/username.svg" /> + </a> +</p> + +## Install + +```console +$ pip install username +``` + +## Usage + +```python +import username + +print(username()) +# 'abranhe' +``` + +## API + +### username() + +Get current username + +## Related + +- [username-cli](https://github.com/abranhe/username-cli): cli for this package. + +## License + +MIT © [Abraham Hernandez](https://github.com/abranhe) + + + + +%package -n python3-username +Summary: Get the current username +Provides: python-username +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-username +<p align="center"> + <a href="https://pypi.org/project/username"><img src="https://cdn.abranhe.com/projects/username/logo.svg"></a> + <br> + <br> + <br> + <a href="https://pypi.org/project/username"><b>username</b></a> get the current username +</p> + +<p align="center"> + <a href="https://github.com/abranhe/username/actions/workflows/main.yml"> + <img src="https://github.com/abranhe/username/actions/workflows/main.yml/badge.svg" /> + </a> + <a href="https://app.travis-ci.com/github/abranhe/username"> + <img src="https://img.shields.io/travis/com/abranhe/username.svg?logo=travis" /> + </a> + <a href="https://ci.appveyor.com/project/abranhe/username"> + <img src="https://ci.appveyor.com/api/projects/status/8bp4dpqr76nx2nxt?svg=true" /> + </a> + <a href="https://pypi.org/project/username"> + <img src="https://img.shields.io/pypi/v/username"> + </a> + <a href="https://github.com/abranhe/username/blob/master/license"> + <img src="https://img.shields.io/github/license/abranhe/username.svg" /> + </a> +</p> + +## Install + +```console +$ pip install username +``` + +## Usage + +```python +import username + +print(username()) +# 'abranhe' +``` + +## API + +### username() + +Get current username + +## Related + +- [username-cli](https://github.com/abranhe/username-cli): cli for this package. + +## License + +MIT © [Abraham Hernandez](https://github.com/abranhe) + + + + +%package help +Summary: Development documents and examples for username +Provides: python3-username-doc +%description help +<p align="center"> + <a href="https://pypi.org/project/username"><img src="https://cdn.abranhe.com/projects/username/logo.svg"></a> + <br> + <br> + <br> + <a href="https://pypi.org/project/username"><b>username</b></a> get the current username +</p> + +<p align="center"> + <a href="https://github.com/abranhe/username/actions/workflows/main.yml"> + <img src="https://github.com/abranhe/username/actions/workflows/main.yml/badge.svg" /> + </a> + <a href="https://app.travis-ci.com/github/abranhe/username"> + <img src="https://img.shields.io/travis/com/abranhe/username.svg?logo=travis" /> + </a> + <a href="https://ci.appveyor.com/project/abranhe/username"> + <img src="https://ci.appveyor.com/api/projects/status/8bp4dpqr76nx2nxt?svg=true" /> + </a> + <a href="https://pypi.org/project/username"> + <img src="https://img.shields.io/pypi/v/username"> + </a> + <a href="https://github.com/abranhe/username/blob/master/license"> + <img src="https://img.shields.io/github/license/abranhe/username.svg" /> + </a> +</p> + +## Install + +```console +$ pip install username +``` + +## Usage + +```python +import username + +print(username()) +# 'abranhe' +``` + +## API + +### username() + +Get current username + +## Related + +- [username-cli](https://github.com/abranhe/username-cli): cli for this package. + +## License + +MIT © [Abraham Hernandez](https://github.com/abranhe) + + + + +%prep +%autosetup -n username-2.1.0 + +%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-username -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.0-1 +- Package Spec generated |
