summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 02:27:00 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 02:27:00 +0000
commita4d7277084472cf3ad5a93265d9292fc30f1ae68 (patch)
treea9c85b500d997c44b52306d14fbd803c0f60a748
parent5879c3ab04676e20e1a3e18eb976483f932c0cff (diff)
automatic import of python-resource
-rw-r--r--.gitignore1
-rw-r--r--python-resource.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..d53184b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Resource-0.2.1.tar.gz
diff --git a/python-resource.spec b/python-resource.spec
new file mode 100644
index 0000000..322afde
--- /dev/null
+++ b/python-resource.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-Resource
+Version: 0.2.1
+Release: 1
+Summary: A Python library concentrated on the Resource layer of RESTful APIs.
+License: MIT
+URL: https://github.com/RussellLuo/resource
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/64/13/2db7b02cecc646a1b53dcf40cce9586d9f860550b32d931a1eb3c7280d43/Resource-0.2.1.tar.gz
+BuildArch: noarch
+
+
+%description
+A Python library concentrated on the Resource layer of RESTful APIs.
+
+%package -n python3-Resource
+Summary: A Python library concentrated on the Resource layer of RESTful APIs.
+Provides: python-Resource
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-Resource
+A Python library concentrated on the Resource layer of RESTful APIs.
+
+%package help
+Summary: Development documents and examples for Resource
+Provides: python3-Resource-doc
+%description help
+A Python library concentrated on the Resource layer of RESTful APIs.
+
+%prep
+%autosetup -n Resource-0.2.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-Resource -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..7a0d587
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a57d9d56c7a6b5006954d4dd4c3f5d53 Resource-0.2.1.tar.gz