summaryrefslogtreecommitdiff
path: root/python-couchdb.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 03:16:00 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 03:16:00 +0000
commit26d89601bea605e300f0b4a890bb5bff7c66a0f2 (patch)
tree00e8fc8c7e1b980376992d614c73d711413de84e /python-couchdb.spec
parent0805556154c163579b5f8e0d2f1780644e1b48e7 (diff)
automatic import of python-couchdb
Diffstat (limited to 'python-couchdb.spec')
-rw-r--r--python-couchdb.spec75
1 files changed, 75 insertions, 0 deletions
diff --git a/python-couchdb.spec b/python-couchdb.spec
new file mode 100644
index 0000000..c732fd5
--- /dev/null
+++ b/python-couchdb.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-CouchDB
+Version: 1.2
+Release: 1
+Summary: Python library for working with CouchDB
+License: BSD
+URL: https://github.com/djc/couchdb-python/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7c/c8/f94a107eca0c178e5d74c705dad1a5205c0f580840bd1b155cd8a258cb7c/CouchDB-1.2.tar.gz
+BuildArch: noarch
+
+
+%description
+This is a Python library for CouchDB. It provides a convenient high level
+interface for the CouchDB server.
+
+%package -n python3-CouchDB
+Summary: Python library for working with CouchDB
+Provides: python-CouchDB
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-CouchDB
+This is a Python library for CouchDB. It provides a convenient high level
+interface for the CouchDB server.
+
+%package help
+Summary: Development documents and examples for CouchDB
+Provides: python3-CouchDB-doc
+%description help
+This is a Python library for CouchDB. It provides a convenient high level
+interface for the CouchDB server.
+
+%prep
+%autosetup -n CouchDB-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-CouchDB -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2-1
+- Package Spec generated