summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-18 04:34:55 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-18 04:34:55 +0000
commitd2d22e9647a40276b854de2921c78e15d987cf8a (patch)
tree514bc9c5b6ee27b5029d5cc86271ea6988f7b197
parent939cf01661ead4947d996ee4db35e00bb4bc68a7 (diff)
automatic import of python-morecontext
-rw-r--r--.gitignore1
-rw-r--r--python-morecontext.spec81
-rw-r--r--sources1
3 files changed, 83 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..3adacae 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/morecontext-0.6.0.tar.gz
diff --git a/python-morecontext.spec b/python-morecontext.spec
new file mode 100644
index 0000000..2d8b6d7
--- /dev/null
+++ b/python-morecontext.spec
@@ -0,0 +1,81 @@
+%global _empty_manifest_terminate_build 0
+Name: python-morecontext
+Version: 0.6.0
+Release: 1
+Summary: Context managers for changing directory, setting attributes/envvars, etc.
+License: MIT
+URL: https://github.com/jwodder/morecontext
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/44/06/de0f22b2ed7d5744d1eebe81b150e25545fe91dc839f4263ab73137fa61c/morecontext-0.6.0.tar.gz
+BuildArch: noarch
+
+
+%description
+``morecontext`` requires Python 3.6 or higher. Just use `pip
+<https://pip.pypa.io>`_ for Python 3 (You have pip, right?) to install
+``morecontext``::
+ python3 -m pip install morecontext
+
+%package -n python3-morecontext
+Summary: Context managers for changing directory, setting attributes/envvars, etc.
+Provides: python-morecontext
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-morecontext
+``morecontext`` requires Python 3.6 or higher. Just use `pip
+<https://pip.pypa.io>`_ for Python 3 (You have pip, right?) to install
+``morecontext``::
+ python3 -m pip install morecontext
+
+%package help
+Summary: Development documents and examples for morecontext
+Provides: python3-morecontext-doc
+%description help
+``morecontext`` requires Python 3.6 or higher. Just use `pip
+<https://pip.pypa.io>`_ for Python 3 (You have pip, right?) to install
+``morecontext``::
+ python3 -m pip install morecontext
+
+%prep
+%autosetup -n morecontext-0.6.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-morecontext -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..6029d18
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b2a6e70391cb19309d309a32ab931c67 morecontext-0.6.0.tar.gz