diff --git a/Tk-TableMatrix-1.22.tar.bz2 b/Tk-TableMatrix-1.22.tar.bz2 deleted file mode 100644 index e72a750..0000000 --- a/Tk-TableMatrix-1.22.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:624dcd8b93acb833657f9c9d7d71cc1d026ed74d5711df7b32fc82b8813e8dba -size 218609 diff --git a/Tk-TableMatrix-1.26.tar.gz b/Tk-TableMatrix-1.26.tar.gz new file mode 100644 index 0000000..c667f11 --- /dev/null +++ b/Tk-TableMatrix-1.26.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf1e4dbe3399c375ab5f3861823d3a578c735db126416b2afd8e0632ed92abc7 +size 410559 diff --git a/Tk-TableMatrix-lib64.patch b/Tk-TableMatrix-lib64.patch deleted file mode 100644 index 80b7c9b..0000000 --- a/Tk-TableMatrix-lib64.patch +++ /dev/null @@ -1,25 +0,0 @@ -Index: Tk-TableMatrix-1.22/myConfig -=================================================================== ---- Tk-TableMatrix-1.22.orig/myConfig 2004-02-07 23:09:45.000000000 -0400 -+++ Tk-TableMatrix-1.22/myConfig 2006-06-21 00:56:06.000000000 -0300 -@@ -253,9 +253,9 @@ if ($win_arch eq 'x') { - } - if (!defined($xlib) && defined($X11)) - { -- $xlib = &lX11(1,"$X11/lib") -+ $xlib = &lX11(1,"$X11/lib64") - } -- $xlib = &lX11(0,map("$_/lib",@xdirs)) unless (defined $xlib); -+ $xlib = &lX11(0,map("$_/lib64",@xdirs)) unless (defined $xlib); - - # Special case for sun-machines - unless (defined $xlib) -@@ -277,7 +277,7 @@ if ($win_arch eq 'x') { - # - unless (defined $xlib) - { -- $xlib = &lX11(0,chooseX11(),chooseX11(),,'/usr/X386/lib') -+ $xlib = &lX11(0,chooseX11(),chooseX11(),,'/usr/X386/lib') - } - - # diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..0493770 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,40 @@ +--- +#description_paragraphs: 3 +#description: |- +# override description from CPAN +#summary: override summary from CPAN +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +preamble: |- + BuildRequires: perl-Tk-devel + BuildRequires: xorg-x11 + BuildRequires: xorg-x11-Xnest + BuildRequires: xorg-x11-Xvfb + BuildRequires: xorg-x11-devel + BuildRequires: xorg-x11-fonts-100dpi + BuildRequires: xorg-x11-fonts-75dpi + BuildRequires: xorg-x11-fonts-scalable + BuildRequires: dos2unix +post_prep: |- + if test "%_lib" = "lib64" ; then + sed -i -e "s,/lib>,/lib64>," -e "s,/lib\",/lib64\"," myConfig + fi + dos2unix README ChangeLog Changes demos/* +#post_build: |- +# rm unused.files +#post_install: |- +# sed on %{name}.files +license: (GPL-1.0-or-later OR Artistic-1.0) AND Zlib +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module +skip_doc: debug.* myConfig +add_doc: demos diff --git a/perl-Tk-TableMatrix.changes b/perl-Tk-TableMatrix.changes index 391ffd5..acec5cc 100644 --- a/perl-Tk-TableMatrix.changes +++ b/perl-Tk-TableMatrix.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Oct 29 11:03:12 UTC 2020 - Dirk Stoecker + +- updated to 1.26 + see /usr/share/doc/packages/perl-Tk-TableMatrix/ChangeLog + ------------------------------------------------------------------- Mon Nov 29 18:31:24 UTC 2010 - coolo@novell.com diff --git a/perl-Tk-TableMatrix.spec b/perl-Tk-TableMatrix.spec index 91a2ab9..5a17e2d 100644 --- a/perl-Tk-TableMatrix.spec +++ b/perl-Tk-TableMatrix.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Tk-TableMatrix # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,22 +12,32 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%define modname Tk-TableMatrix -Name: perl-%{modname} -Version: 1.22 +Name: perl-Tk-TableMatrix +Version: 1.26 Release: 0 -Summary: Perl-Tk-based Table Display module -License: GPL/Artistic +#Upstream: CHECK(Artistic-1.0 or GPL-1.0-or-later) +%define cpan_name Tk-TableMatrix +Summary: Tk::tkTable - a Spreadsheet/Table Widget +License: (GPL-1.0-or-later OR Artistic-1.0) AND Zlib Group: Development/Libraries/Perl -Requires: perl = %{perl_version} perl-Tk +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/A/AS/ASB/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl -BuildRequires: perl-Tk -BuildRequires: perl-Tk-devel BuildRequires: perl-macros +BuildRequires: perl(Tk) >= 800.022 +BuildRequires: perl(Tk::MMtry) +BuildRequires: perl(Tk::MMutil) +Requires: perl(Tk) >= 800.022 +%{perl_requires} +# MANUAL BEGIN +BuildRequires: dos2unix +BuildRequires: perl-Tk-devel BuildRequires: xorg-x11 BuildRequires: xorg-x11-Xnest BuildRequires: xorg-x11-Xvfb @@ -35,67 +45,36 @@ BuildRequires: xorg-x11-devel BuildRequires: xorg-x11-fonts-100dpi BuildRequires: xorg-x11-fonts-75dpi BuildRequires: xorg-x11-fonts-scalable -Source: %{modname}-%{version}.tar.bz2 -Patch: %{modname}-lib64.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build +# MANUAL END %description -Tk::TableMatrix is a table/matrix widget extension to perl/tk -for displaying data in a table (or spreadsheet) format. -The basic features of the widget are: - - * multi-line cells - * support for embedded windows (one per cell) - * row & column spanning - * variable width columns / height rows (interactively resizable) - * row and column titles - * multiple data sources ((perl hash|| perl callback) &| internal caching) - * supports standard Tk reliefs, fonts, colors, etc. - * x/y scrollbar support - * 'tag' styles per row, column or cell to change visual appearance - * in-cell editing - returns value back to data source - * support for disabled (read-only) tables or cells (via tags) - * multiple selection modes, with "active" cell - * multiple drawing modes to get optimal performance for larger tables - * optional 'flashes' when things update - * cell validation support - * Works everywhere Tk does (including Windows and Mac!) - -Authors: --------- - John Cerney +Tk::tkTable - a Spreadsheet/Table Widget %prep -%setup -q -n %{modname}-%{version} -chmod a-x COPYING README +%setup -q -n %{cpan_name}-%{version} +find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644 +# MANUAL BEGIN if test "%_lib" = "lib64" ; then -%patch -p1 + sed -i -e "s,/lib>,/lib64>," -e "s,/lib\",/lib64\"," myConfig fi +dos2unix README ChangeLog Changes demos/* +# MANUAL END %build -perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" -make +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +make %{?_smp_mflags} %check make test %install -rm -rf %{buildroot} -make DESTDIR=$RPM_BUILD_ROOT install_vendor +%perl_make_install %perl_process_packlist +%perl_gen_filelist -%clean -rm -rf %{buildroot} - -%files -%defattr(-, root, root) -%doc README Changes ChangeLog COPYING demos -%doc %{_mandir}/man?/* -%{perl_vendorarch}/Tk/TableMatrix -%{perl_vendorarch}/Tk/TableMatrix.pm -%{perl_vendorarch}/Tk/TableMatrix.pod -%{perl_vendorarch}/Tk/pTk -%{perl_vendorarch}/auto/Tk/TableMatrix -%{perl_vendorarch}/auto/Tk/pTk +%files -f %{name}.files +%defattr(-,root,root,755) +%doc ChangeLog Changes demos README +%license COPYING %changelog