2015-04-20 07:05:59 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Tk-TableMatrix
|
|
|
|
#
|
2023-02-20 10:05:58 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2015-04-20 07:05:59 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-10-30 09:56:59 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-04-20 07:05:59 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-01-28 10:09:12 +00:00
|
|
|
%define cpan_name Tk-TableMatrix
|
2020-10-30 09:56:59 +00:00
|
|
|
Name: perl-Tk-TableMatrix
|
2023-02-20 10:05:58 +00:00
|
|
|
Version: 1.29
|
2015-04-20 07:05:59 +00:00
|
|
|
Release: 0
|
2020-10-30 09:56:59 +00:00
|
|
|
#Upstream: CHECK(Artistic-1.0 or GPL-1.0-or-later)
|
2022-01-28 10:09:12 +00:00
|
|
|
License: (Artistic-1.0 OR GPL-1.0-or-later) AND TCL
|
|
|
|
Summary: Table/Matrix Widget Extension to perl/tk
|
2020-10-30 09:56:59 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2023-02-20 10:05:58 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/C/CA/CAC/%{cpan_name}-%{version}.tar.gz
|
2020-10-30 09:56:59 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:18:16 +02:00
|
|
|
Source100: README.md
|
2015-04-20 07:05:59 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2022-01-28 10:09:12 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.52
|
2020-10-30 09:56:59 +00:00
|
|
|
BuildRequires: perl(Tk) >= 800.022
|
|
|
|
BuildRequires: perl(Tk::MMutil)
|
|
|
|
Requires: perl(Tk) >= 800.022
|
|
|
|
%{perl_requires}
|
|
|
|
# MANUAL BEGIN
|
|
|
|
BuildRequires: perl-Tk-devel
|
2023-05-11 16:08:52 +00:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xproto)
|
2020-10-30 09:56:59 +00:00
|
|
|
# MANUAL END
|
2006-10-31 15:21:52 +00:00
|
|
|
|
|
|
|
%description
|
2022-01-28 10:09:12 +00:00
|
|
|
Tk::TableMatrix is a table/matrix widget extension to perl/tk
|
|
|
|
for displaying data in a table (or spreadsheet) format.
|
2006-10-31 15:21:52 +00:00
|
|
|
|
|
|
|
%prep
|
2022-01-28 10:09:12 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
2023-02-20 10:05:58 +00:00
|
|
|
|
2020-10-30 09:56:59 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
# MANUAL BEGIN
|
2022-01-28 10:09:12 +00:00
|
|
|
if test "%{_lib}" = "lib64" ; then
|
|
|
|
sed -i -e "s,/lib>,/lib64>," -e "s,/lib\",/lib64\"," myConfig
|
2006-10-31 15:21:52 +00:00
|
|
|
fi
|
2022-01-28 10:09:12 +00:00
|
|
|
# Fix rpmlint warning "wrong-file-end-of-line-encoding"
|
|
|
|
sed -i 's/\r$//' ChangeLog Changes README demos/*
|
|
|
|
|
|
|
|
# Copy license
|
|
|
|
cp -a pTk/license.terms license.terms.pTk
|
|
|
|
cp -a pTk/mTk/license.terms license.terms.mTk
|
2020-10-30 09:56:59 +00:00
|
|
|
# MANUAL END
|
2006-10-31 15:21:52 +00:00
|
|
|
|
|
|
|
%build
|
2020-10-30 09:56:59 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
2022-01-28 10:09:12 +00:00
|
|
|
%make_build
|
2008-12-23 19:53:45 +00:00
|
|
|
|
|
|
|
%check
|
2006-10-31 15:21:52 +00:00
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
2020-10-30 09:56:59 +00:00
|
|
|
%perl_make_install
|
2006-10-31 15:21:52 +00:00
|
|
|
%perl_process_packlist
|
2020-10-30 09:56:59 +00:00
|
|
|
%perl_gen_filelist
|
2006-10-31 15:21:52 +00:00
|
|
|
|
2020-10-30 09:56:59 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%doc ChangeLog Changes demos README
|
2022-01-28 10:09:12 +00:00
|
|
|
%license COPYING license.terms.mTk license.terms.pTk
|
2022-02-03 12:51:49 +00:00
|
|
|
%exclude %{perl_vendorarch}/auto/Tk/pTk
|
2006-10-31 15:21:52 +00:00
|
|
|
|
|
|
|
%changelog
|