summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 03:46:08 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 03:46:08 +0000
commit23bd957e4626ec6212fee7e9b94d82bc9cf426d5 (patch)
treecc695d28cb6deb1bf9f130a67fde89d2a7e432ee
parent94d2972e3c99793aec2d807f04e9ae0eb26496f8 (diff)
automatic import of python-nanohttp
-rw-r--r--.gitignore1
-rw-r--r--python-nanohttp.spec162
-rw-r--r--sources1
3 files changed, 164 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..02d650a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/nanohttp-1.11.10.tar.gz
diff --git a/python-nanohttp.spec b/python-nanohttp.spec
new file mode 100644
index 0000000..6026bf9
--- /dev/null
+++ b/python-nanohttp.spec
@@ -0,0 +1,162 @@
+%global _empty_manifest_terminate_build 0
+Name: python-nanohttp
+Version: 1.11.10
+Release: 1
+Summary: A very micro http framework.
+License: MIT
+URL: http://github.com/pylover/nanohttp
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/82/8b/91428349a91cae9ca403b8ca78b7e5941225ffb6119839281f10609da45c/nanohttp-1.11.10.tar.gz
+BuildArch: noarch
+
+
+%description
+# nanohttp
+
+A very micro HTTP framework. [documentation](http://nanohttp.org)
+
+[![PyPI](http://img.shields.io/pypi/v/nanohttp.svg)](https://pypi.python.org/pypi/nanohttp)
+[![Gitter](https://badges.gitter.im//nanohttp.svg)](https://gitter.im/pylover/nanohttp)
+[![Build Status](https://travis-ci.org/pylover/nanohttp.svg?branch=master)](https://travis-ci.org/pylover/nanohttp)
+[![Coverage Status](https://coveralls.io/repos/github/pylover/nanohttp/badge.svg?branch=master)](https://coveralls.io/github/pylover/nanohttp?branch=master)
+
+
+## Contribution
+
+
+### Branching
+
+A new branching model is applied to this repository, which consists of a
+master branch and release branches.
+
+#### Master branch
+
+The master branch is an integration branch where bug fixes/features are
+gathered for compiling and functional testing.
+
+#### Release branch
+
+The release branch is where releases are maintained and hot fixes
+(with names like release/v2.x.x) are added. Please ensure that all your
+production-related work are tracked with the release branches.
+
+With this new model, we can push out bug fixes more quickly and achieve
+simpler maintenance.
+
+%package -n python3-nanohttp
+Summary: A very micro http framework.
+Provides: python-nanohttp
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-nanohttp
+# nanohttp
+
+A very micro HTTP framework. [documentation](http://nanohttp.org)
+
+[![PyPI](http://img.shields.io/pypi/v/nanohttp.svg)](https://pypi.python.org/pypi/nanohttp)
+[![Gitter](https://badges.gitter.im//nanohttp.svg)](https://gitter.im/pylover/nanohttp)
+[![Build Status](https://travis-ci.org/pylover/nanohttp.svg?branch=master)](https://travis-ci.org/pylover/nanohttp)
+[![Coverage Status](https://coveralls.io/repos/github/pylover/nanohttp/badge.svg?branch=master)](https://coveralls.io/github/pylover/nanohttp?branch=master)
+
+
+## Contribution
+
+
+### Branching
+
+A new branching model is applied to this repository, which consists of a
+master branch and release branches.
+
+#### Master branch
+
+The master branch is an integration branch where bug fixes/features are
+gathered for compiling and functional testing.
+
+#### Release branch
+
+The release branch is where releases are maintained and hot fixes
+(with names like release/v2.x.x) are added. Please ensure that all your
+production-related work are tracked with the release branches.
+
+With this new model, we can push out bug fixes more quickly and achieve
+simpler maintenance.
+
+%package help
+Summary: Development documents and examples for nanohttp
+Provides: python3-nanohttp-doc
+%description help
+# nanohttp
+
+A very micro HTTP framework. [documentation](http://nanohttp.org)
+
+[![PyPI](http://img.shields.io/pypi/v/nanohttp.svg)](https://pypi.python.org/pypi/nanohttp)
+[![Gitter](https://badges.gitter.im//nanohttp.svg)](https://gitter.im/pylover/nanohttp)
+[![Build Status](https://travis-ci.org/pylover/nanohttp.svg?branch=master)](https://travis-ci.org/pylover/nanohttp)
+[![Coverage Status](https://coveralls.io/repos/github/pylover/nanohttp/badge.svg?branch=master)](https://coveralls.io/github/pylover/nanohttp?branch=master)
+
+
+## Contribution
+
+
+### Branching
+
+A new branching model is applied to this repository, which consists of a
+master branch and release branches.
+
+#### Master branch
+
+The master branch is an integration branch where bug fixes/features are
+gathered for compiling and functional testing.
+
+#### Release branch
+
+The release branch is where releases are maintained and hot fixes
+(with names like release/v2.x.x) are added. Please ensure that all your
+production-related work are tracked with the release branches.
+
+With this new model, we can push out bug fixes more quickly and achieve
+simpler maintenance.
+
+%prep
+%autosetup -n nanohttp-1.11.10
+
+%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-nanohttp -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 1.11.10-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..7503d06
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+4f3046ff6e60edb0c8f9b24a47275382 nanohttp-1.11.10.tar.gz