diff options
Diffstat (limited to 'python-captcha-net.spec')
-rw-r--r-- | python-captcha-net.spec | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/python-captcha-net.spec b/python-captcha-net.spec new file mode 100644 index 0000000..9949517 --- /dev/null +++ b/python-captcha-net.spec @@ -0,0 +1,108 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Captcha-Net +Version: 0.2.3 +Release: 1 +Summary: About to learn Captcha_Net tools. +License: MIT +URL: https://github.com/me/myproject +Source0: https://mirrors.aliyun.com/pypi/web/packages/d7/3a/1daa21024be85d46d1c721066ae6a00000d1a787b771e2043cee2f5cc282/Captcha_Net-0.2.3.tar.gz +BuildArch: noarch + + +%description +This repo exists to provide [an example setup.py] file, that can be used +to bootstrap your next Python project. It includes some advanced +patterns and best practices for `setup.py`, as well as some +commented–out nice–to–haves. +For example, this `setup.py` provides a `$ python setup.py upload` +command, which creates a *universal wheel* (and *sdist*) and uploads +your package to [PyPi] using [Twine], without the need for an annoying +`setup.cfg` file. It also creates/uploads a new git tag, automatically. +In short, `setup.py` files can be daunting to approach, when first +starting out — even Guido has been heard saying, "everyone cargo cults +thems". It's true — so, I want this repo to be the best place to +copy–paste from :) +[Check out the example!][an example setup.py] + +%package -n python3-Captcha-Net +Summary: About to learn Captcha_Net tools. +Provides: python-Captcha-Net +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Captcha-Net +This repo exists to provide [an example setup.py] file, that can be used +to bootstrap your next Python project. It includes some advanced +patterns and best practices for `setup.py`, as well as some +commented–out nice–to–haves. +For example, this `setup.py` provides a `$ python setup.py upload` +command, which creates a *universal wheel* (and *sdist*) and uploads +your package to [PyPi] using [Twine], without the need for an annoying +`setup.cfg` file. It also creates/uploads a new git tag, automatically. +In short, `setup.py` files can be daunting to approach, when first +starting out — even Guido has been heard saying, "everyone cargo cults +thems". It's true — so, I want this repo to be the best place to +copy–paste from :) +[Check out the example!][an example setup.py] + +%package help +Summary: Development documents and examples for Captcha-Net +Provides: python3-Captcha-Net-doc +%description help +This repo exists to provide [an example setup.py] file, that can be used +to bootstrap your next Python project. It includes some advanced +patterns and best practices for `setup.py`, as well as some +commented–out nice–to–haves. +For example, this `setup.py` provides a `$ python setup.py upload` +command, which creates a *universal wheel* (and *sdist*) and uploads +your package to [PyPi] using [Twine], without the need for an annoying +`setup.cfg` file. It also creates/uploads a new git tag, automatically. +In short, `setup.py` files can be daunting to approach, when first +starting out — even Guido has been heard saying, "everyone cargo cults +thems". It's true — so, I want this repo to be the best place to +copy–paste from :) +[Check out the example!][an example setup.py] + +%prep +%autosetup -n Captcha_Net-0.2.3 + +%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-Captcha-Net -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.3-1 +- Package Spec generated |