summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 16:17:49 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 16:17:49 +0000
commit1a785eb626ecaaac0bbc6bd5382342521cfc447d (patch)
tree04feea0adf0fa0ae6b12082b472985bc7ee5d251
parent86fb90c1ec806ed8006f4c6ed0a24178aef49710 (diff)
automatic import of python-tribool
-rw-r--r--.gitignore1
-rw-r--r--python-tribool.spec132
-rw-r--r--sources1
3 files changed, 134 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8b2b7b6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tribool-0.7.3.tar.gz
diff --git a/python-tribool.spec b/python-tribool.spec
new file mode 100644
index 0000000..dcc1206
--- /dev/null
+++ b/python-tribool.spec
@@ -0,0 +1,132 @@
+%global _empty_manifest_terminate_build 0
+Name: python-tribool
+Version: 0.7.3
+Release: 1
+Summary: Three-valued logic data type.
+License: Apache 2.0
+URL: http://www.grantjenks.com/docs/tribool/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c4/10/9442d674824e0f8b6b895cd5836870afcdda53f09e9120a8a7e5c2bce27e/tribool-0.7.3.tar.gz
+BuildArch: noarch
+
+
+%description
+`Tribool <http://www.grantjenks.com/docs/tribool/>`_ is an Apache2 licensed
+Python module that implements three-valued logic.
+Suppose for a moment that you're attempting to store a value across a network
+connection. You begin with a simple protocol in which the server stores the
+received value and then sends an acknowledgement to the client. In this
+design, the client experiences a delay between when the request is sent and the
+acknowledgement is received. In that delay, it is impossible for the client to
+know whether the value has been committed on the server. In such cases, it's
+useful to describe the commit state of the server from the client's perspective
+as True, False, or Indeterminate.
+Another example occurs in database systems. Consider a record that contains
+a boolean field. Such a field may only be either True or False. But we want
+to support the notion of committing a partial record in the case that the
+record is large or the client does not have all relevant information. In this
+scenario, we wish to commit neither True nor False as the value is currently
+Unknown.
+The Python Tribool module was designed for these cases by describing a logical
+data type that supports three values: True, False, and Indeterminate. The third
+value is best thought of as a state being either True or False. Given these
+three values it's possible to define truth tables over the logical operators
+`and`, `or` and `not` and to define equality and inequality relationships.
+
+%package -n python3-tribool
+Summary: Three-valued logic data type.
+Provides: python-tribool
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-tribool
+`Tribool <http://www.grantjenks.com/docs/tribool/>`_ is an Apache2 licensed
+Python module that implements three-valued logic.
+Suppose for a moment that you're attempting to store a value across a network
+connection. You begin with a simple protocol in which the server stores the
+received value and then sends an acknowledgement to the client. In this
+design, the client experiences a delay between when the request is sent and the
+acknowledgement is received. In that delay, it is impossible for the client to
+know whether the value has been committed on the server. In such cases, it's
+useful to describe the commit state of the server from the client's perspective
+as True, False, or Indeterminate.
+Another example occurs in database systems. Consider a record that contains
+a boolean field. Such a field may only be either True or False. But we want
+to support the notion of committing a partial record in the case that the
+record is large or the client does not have all relevant information. In this
+scenario, we wish to commit neither True nor False as the value is currently
+Unknown.
+The Python Tribool module was designed for these cases by describing a logical
+data type that supports three values: True, False, and Indeterminate. The third
+value is best thought of as a state being either True or False. Given these
+three values it's possible to define truth tables over the logical operators
+`and`, `or` and `not` and to define equality and inequality relationships.
+
+%package help
+Summary: Development documents and examples for tribool
+Provides: python3-tribool-doc
+%description help
+`Tribool <http://www.grantjenks.com/docs/tribool/>`_ is an Apache2 licensed
+Python module that implements three-valued logic.
+Suppose for a moment that you're attempting to store a value across a network
+connection. You begin with a simple protocol in which the server stores the
+received value and then sends an acknowledgement to the client. In this
+design, the client experiences a delay between when the request is sent and the
+acknowledgement is received. In that delay, it is impossible for the client to
+know whether the value has been committed on the server. In such cases, it's
+useful to describe the commit state of the server from the client's perspective
+as True, False, or Indeterminate.
+Another example occurs in database systems. Consider a record that contains
+a boolean field. Such a field may only be either True or False. But we want
+to support the notion of committing a partial record in the case that the
+record is large or the client does not have all relevant information. In this
+scenario, we wish to commit neither True nor False as the value is currently
+Unknown.
+The Python Tribool module was designed for these cases by describing a logical
+data type that supports three values: True, False, and Indeterminate. The third
+value is best thought of as a state being either True or False. Given these
+three values it's possible to define truth tables over the logical operators
+`and`, `or` and `not` and to define equality and inequality relationships.
+
+%prep
+%autosetup -n tribool-0.7.3
+
+%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-tribool -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.7.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..db1955e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+dd35de631a51ca786dcd8304a4f0d7ac tribool-0.7.3.tar.gz