diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-10 06:15:35 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 06:15:35 +0000 |
| commit | 786744f9766d8ecf228a375d041afa518bc21a52 (patch) | |
| tree | 6c68e1bd10bd2eb92c19485f44a6ac76f81d4850 | |
| parent | 7458523bd34e6869a9070e038642b5bb92d8df65 (diff) | |
automatic import of python-tornado-prometheus
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-tornado-prometheus.spec | 72 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/tornado-prometheus-0.1.2.tar.gz diff --git a/python-tornado-prometheus.spec b/python-tornado-prometheus.spec new file mode 100644 index 0000000..eeca802 --- /dev/null +++ b/python-tornado-prometheus.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-tornado-prometheus +Version: 0.1.2 +Release: 1 +Summary: HTTP metrics for a tornado application +License: MIT +URL: https://github.com/globocom/tornado-prometheus +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1c/ec/ada47c09fc4013ecab86df7254b7572ff4dcb91c518ae5b4704a3ccde21f/tornado-prometheus-0.1.2.tar.gz +BuildArch: noarch + + +%description +HTTP metrics for a tornado application + +%package -n python3-tornado-prometheus +Summary: HTTP metrics for a tornado application +Provides: python-tornado-prometheus +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-tornado-prometheus +HTTP metrics for a tornado application + +%package help +Summary: Development documents and examples for tornado-prometheus +Provides: python3-tornado-prometheus-doc +%description help +HTTP metrics for a tornado application + +%prep +%autosetup -n tornado-prometheus-0.1.2 + +%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-tornado-prometheus -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.2-1 +- Package Spec generated @@ -0,0 +1 @@ +8fb1aa23bb4bb49f6deefdd0c914625b tornado-prometheus-0.1.2.tar.gz |
