summaryrefslogtreecommitdiff
path: root/python-tkintertable.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 18:13:29 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 18:13:29 +0000
commite87b58179f274bd392d94d4f7971c2a8a479475b (patch)
tree099bc953cb03c35f2ace3b35bf021b325a0798ff /python-tkintertable.spec
parentb3a1e5c8cb16faf75318f4fe7ae6503929f8056e (diff)
automatic import of python-tkintertable
Diffstat (limited to 'python-tkintertable.spec')
-rw-r--r--python-tkintertable.spec78
1 files changed, 78 insertions, 0 deletions
diff --git a/python-tkintertable.spec b/python-tkintertable.spec
new file mode 100644
index 0000000..0e20388
--- /dev/null
+++ b/python-tkintertable.spec
@@ -0,0 +1,78 @@
+%global _empty_manifest_terminate_build 0
+Name: python-tkintertable
+Version: 1.3.3
+Release: 1
+Summary: Extendable table class for Tkinter
+License: GPL v3
+URL: https://github.com/dmnfarrell/tkintertable
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d0/08/253fd5119bf9130769185f53de80dba14058a96b0e82a7f0efd89ea4e9e8/tkintertable-1.3.3.tar.gz
+BuildArch: noarch
+
+
+%description
+This package allows interactive spreadsheet-style tables to be added into a Tkinter application.
+Tkinter is the standard GUI toolkit for Python. A sample application using these classes
+is included in the distribution. Now works with Python 3. A sample application using these classes is included in the distribution.
+
+%package -n python3-tkintertable
+Summary: Extendable table class for Tkinter
+Provides: python-tkintertable
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-tkintertable
+This package allows interactive spreadsheet-style tables to be added into a Tkinter application.
+Tkinter is the standard GUI toolkit for Python. A sample application using these classes
+is included in the distribution. Now works with Python 3. A sample application using these classes is included in the distribution.
+
+%package help
+Summary: Development documents and examples for tkintertable
+Provides: python3-tkintertable-doc
+%description help
+This package allows interactive spreadsheet-style tables to be added into a Tkinter application.
+Tkinter is the standard GUI toolkit for Python. A sample application using these classes
+is included in the distribution. Now works with Python 3. A sample application using these classes is included in the distribution.
+
+%prep
+%autosetup -n tkintertable-1.3.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-tkintertable -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.3.3-1
+- Package Spec generated