summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 04:08:42 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 04:08:42 +0000
commitbb2ee5091b71347af87a42a21b85e41a0f1c2f8a (patch)
tree96d63df11607dd59c599641e985abf7ffb7a9849
parent57e8b2c4f898733ea67530adcd5001694818eef4 (diff)
automatic import of python-str2boolopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-str2bool.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..04dbc1d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/str2bool-1.1.zip
diff --git a/python-str2bool.spec b/python-str2bool.spec
new file mode 100644
index 0000000..e31763d
--- /dev/null
+++ b/python-str2bool.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-str2bool
+Version: 1.1
+Release: 1
+Summary: Convert string to boolean
+License: BSD License
+URL: https://github.com/symonsoft/str2bool
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/fc/8c/42e61df3b86bb675b719877283da915d3db93fb0d1820fc7bf2a9153f739/str2bool-1.1.zip
+BuildArch: noarch
+
+
+%description
+
+
+%package -n python3-str2bool
+Summary: Convert string to boolean
+Provides: python-str2bool
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-str2bool
+
+
+%package help
+Summary: Development documents and examples for str2bool
+Provides: python3-str2bool-doc
+%description help
+
+
+%prep
+%autosetup -n str2bool-1.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-str2bool -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..2d64e72
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+1c5cf6ba0efa3bc30c329db9accb7c53 str2bool-1.1.zip