From 103372e47dade543bf6604f09a6cdce35777fd8d Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 10:11:35 +0000 Subject: automatic import of python-gorilla --- python-gorilla.spec | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 python-gorilla.spec (limited to 'python-gorilla.spec') diff --git a/python-gorilla.spec b/python-gorilla.spec new file mode 100644 index 0000000..770d183 --- /dev/null +++ b/python-gorilla.spec @@ -0,0 +1,115 @@ +%global _empty_manifest_terminate_build 0 +Name: python-gorilla +Version: 0.4.0 +Release: 1 +Summary: Convenient approach to monkey patching +License: MIT +URL: https://github.com/christophercrouzet/gorilla +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0f/00/0a7f837b9ea8ad3e0a98aa1d6ac52c13db9bc01ce9ccdca4d3072b8ea272/gorilla-0.4.0.tar.gz +BuildArch: noarch + +Requires: python3-coverage +Requires: python3-pycodestyle +Requires: python3-pydocstyle +Requires: python3-pylint +Requires: python3-sphinx +Requires: python3-tox +Requires: python3-sphinx + +%description +Gorilla is a Python library that provides a convenient approach to monkey +patching. +Monkey patching is the process of **modifying module and class attributes at +runtime** with the purpose of replacing or extending third-party code. +Although *not* a recommended practice, it is sometimes useful to fix or modify +the behaviour of a piece of code from a third-party library, or to extend its +public interface while making the additions feel like they are built-in into +the library. +The Python language makes monkey patching extremely easy but the advantages of +Gorilla are multiple, not only in assuring a **consistent behaviour** on both +Python 2 and Python 3 versions, but also in preventing common source of errors, +and making the process both **intuitive and convenient** even when faced with +*large* numbers of patches to create. + +%package -n python3-gorilla +Summary: Convenient approach to monkey patching +Provides: python-gorilla +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-gorilla +Gorilla is a Python library that provides a convenient approach to monkey +patching. +Monkey patching is the process of **modifying module and class attributes at +runtime** with the purpose of replacing or extending third-party code. +Although *not* a recommended practice, it is sometimes useful to fix or modify +the behaviour of a piece of code from a third-party library, or to extend its +public interface while making the additions feel like they are built-in into +the library. +The Python language makes monkey patching extremely easy but the advantages of +Gorilla are multiple, not only in assuring a **consistent behaviour** on both +Python 2 and Python 3 versions, but also in preventing common source of errors, +and making the process both **intuitive and convenient** even when faced with +*large* numbers of patches to create. + +%package help +Summary: Development documents and examples for gorilla +Provides: python3-gorilla-doc +%description help +Gorilla is a Python library that provides a convenient approach to monkey +patching. +Monkey patching is the process of **modifying module and class attributes at +runtime** with the purpose of replacing or extending third-party code. +Although *not* a recommended practice, it is sometimes useful to fix or modify +the behaviour of a piece of code from a third-party library, or to extend its +public interface while making the additions feel like they are built-in into +the library. +The Python language makes monkey patching extremely easy but the advantages of +Gorilla are multiple, not only in assuring a **consistent behaviour** on both +Python 2 and Python 3 versions, but also in preventing common source of errors, +and making the process both **intuitive and convenient** even when faced with +*large* numbers of patches to create. + +%prep +%autosetup -n gorilla-0.4.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-gorilla -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot - 0.4.0-1 +- Package Spec generated -- cgit v1.2.3