From e87b58179f274bd392d94d4f7971c2a8a479475b Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 18:13:29 +0000 Subject: automatic import of python-tkintertable --- python-tkintertable.spec | 78 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 python-tkintertable.spec (limited to 'python-tkintertable.spec') 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 - 1.3.3-1 +- Package Spec generated -- cgit v1.2.3