diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 06:00:20 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 06:00:20 +0000 |
commit | 1ae88bdf58a2993f5b6d38b8ee19c7ae74ce78b3 (patch) | |
tree | 6c513448eb8473571b6ded266fe29a507c99a812 | |
parent | dc2d3feb5617aa057846a68ffae9fe9ee1829315 (diff) |
automatic import of python-minidb
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-minidb.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/minidb-2.0.7.tar.gz diff --git a/python-minidb.spec b/python-minidb.spec new file mode 100644 index 0000000..9189a10 --- /dev/null +++ b/python-minidb.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-minidb +Version: 2.0.7 +Release: 1 +Summary: A simple SQLite3-based store for Python objects +License: ISC +URL: http://thp.io/2010/minidb/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/20/d4/915ac3b905cf33f3a0df5c92619fad66ae2e23cecd8f21dbfa76a9a27133/minidb-2.0.7.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-minidb +Summary: A simple SQLite3-based store for Python objects +Provides: python-minidb +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-minidb + + +%package help +Summary: Development documents and examples for minidb +Provides: python3-minidb-doc +%description help + + +%prep +%autosetup -n minidb-2.0.7 + +%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-minidb -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.7-1 +- Package Spec generated @@ -0,0 +1 @@ +248ff54b17b442afb4b8e1cacc971e44 minidb-2.0.7.tar.gz |