summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 15:07:17 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 15:07:17 +0000
commit0f83c3e4abec2541a3f2cdb5750e387bfdd90bd7 (patch)
treeb0a5e9776b1ad485928a5b791206decc6a1522b4
parentc839bef01cbaaaca86c4f8d1dce548fb889ec5d3 (diff)
automatic import of python-pluginbase
-rw-r--r--.gitignore1
-rw-r--r--python-pluginbase.spec111
-rw-r--r--sources1
3 files changed, 113 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..cde3691 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pluginbase-1.0.1.tar.gz
diff --git a/python-pluginbase.spec b/python-pluginbase.spec
new file mode 100644
index 0000000..894026b
--- /dev/null
+++ b/python-pluginbase.spec
@@ -0,0 +1,111 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pluginbase
+Version: 1.0.1
+Release: 1
+Summary: PluginBase is a module for Python that enables the development of flexible plugin systems in Python.
+License: BSD License
+URL: http://github.com/mitsuhiko/pluginbase
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f3/07/753451e80d2b0bf3bceec1162e8d23638ac3cb18d1c38ad340c586e90b42/pluginbase-1.0.1.tar.gz
+BuildArch: noarch
+
+
+%description
+PluginBase is a module for Python that enables the development of flexible plugin systems in Python.
+Step 1:
+ from pluginbase import PluginBase
+ plugin_base = PluginBase(package='yourapplication.plugins')
+Step 2:
+ plugin_source = plugin_base.make_plugin_source(
+ searchpath=['./path/to/plugins', './path/to/more/plugins'])
+Step 3:
+ with plugin_source:
+ from yourapplication.plugins import my_plugin
+ my_plugin.do_something_cool()
+Or alternatively:
+ my_plugin = plugin_source.load_plugin('my_plugin')
+ my_plugin.do_something_cool()
+
+%package -n python3-pluginbase
+Summary: PluginBase is a module for Python that enables the development of flexible plugin systems in Python.
+Provides: python-pluginbase
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pluginbase
+PluginBase is a module for Python that enables the development of flexible plugin systems in Python.
+Step 1:
+ from pluginbase import PluginBase
+ plugin_base = PluginBase(package='yourapplication.plugins')
+Step 2:
+ plugin_source = plugin_base.make_plugin_source(
+ searchpath=['./path/to/plugins', './path/to/more/plugins'])
+Step 3:
+ with plugin_source:
+ from yourapplication.plugins import my_plugin
+ my_plugin.do_something_cool()
+Or alternatively:
+ my_plugin = plugin_source.load_plugin('my_plugin')
+ my_plugin.do_something_cool()
+
+%package help
+Summary: Development documents and examples for pluginbase
+Provides: python3-pluginbase-doc
+%description help
+PluginBase is a module for Python that enables the development of flexible plugin systems in Python.
+Step 1:
+ from pluginbase import PluginBase
+ plugin_base = PluginBase(package='yourapplication.plugins')
+Step 2:
+ plugin_source = plugin_base.make_plugin_source(
+ searchpath=['./path/to/plugins', './path/to/more/plugins'])
+Step 3:
+ with plugin_source:
+ from yourapplication.plugins import my_plugin
+ my_plugin.do_something_cool()
+Or alternatively:
+ my_plugin = plugin_source.load_plugin('my_plugin')
+ my_plugin.do_something_cool()
+
+%prep
+%autosetup -n pluginbase-1.0.1
+
+%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-pluginbase -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..d7d9f24
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+8f1e3ba4d58187cece5b5a40ae1b0154 pluginbase-1.0.1.tar.gz