summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 16:54:25 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 16:54:25 +0000
commit3dd6748045e34b46fec8a3c99b12c27186c8a984 (patch)
tree42b5f65b44f46a8f32ebc8e3bb20acba0061af73
parent88bfb1a47fa3e4f2b4747ec72c6efbbd63cb012c (diff)
automatic import of python-librato-metrics
-rw-r--r--.gitignore1
-rw-r--r--python-librato-metrics.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..d8f955f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/librato-metrics-3.1.0.tar.gz
diff --git a/python-librato-metrics.spec b/python-librato-metrics.spec
new file mode 100644
index 0000000..01bd9ac
--- /dev/null
+++ b/python-librato-metrics.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-librato-metrics
+Version: 3.1.0
+Release: 1
+Summary: Python API Wrapper for Librato
+License: https://github.com/librato/python-librato/blob/master/LICENSE
+URL: http://github.com/librato/python-librato
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/62/47/013c1f7ee1f256e442758fdbbf19b2cfbfdf1a105dbb081bdc8bb0a6853d/librato-metrics-3.1.0.tar.gz
+BuildArch: noarch
+
+
+%description
+Python Wrapper for the Librato Metrics API: http://dev.librato.com/v1/metrics
+
+%package -n python3-librato-metrics
+Summary: Python API Wrapper for Librato
+Provides: python-librato-metrics
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-librato-metrics
+Python Wrapper for the Librato Metrics API: http://dev.librato.com/v1/metrics
+
+%package help
+Summary: Development documents and examples for librato-metrics
+Provides: python3-librato-metrics-doc
+%description help
+Python Wrapper for the Librato Metrics API: http://dev.librato.com/v1/metrics
+
+%prep
+%autosetup -n librato-metrics-3.1.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-librato-metrics -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 3.1.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..ad464c6
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5ff7e4624e75e7bbdb073d0f29a717ba librato-metrics-3.1.0.tar.gz