summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 10:11:35 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 10:11:35 +0000
commit103372e47dade543bf6604f09a6cdce35777fd8d (patch)
tree0afbdf578fba81b537830cc8302052eec2c0b567
parenta8bc70ea344ff06ab07b0233f7b6e7598e0917cf (diff)
automatic import of python-gorilla
-rw-r--r--.gitignore1
-rw-r--r--python-gorilla.spec115
-rw-r--r--sources1
3 files changed, 117 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..062d8ce 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gorilla-0.4.0.tar.gz
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 <Python_Bot@openeuler.org> - 0.4.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..256625e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6466544f48de14ae93c620a70d94e85b gorilla-0.4.0.tar.gz