File perl-Tk-CodeText.spec of Package perl-Tk-CodeText

#
# spec file for package perl-Tk-CodeText
#
# Copyright (c) 2025 SUSE LLC
#
# 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.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%define cpan_name Tk-CodeText
Name:           perl-Tk-CodeText
Version:        0.68
Release:        0
License:        Artistic-1.0 OR GPL-1.0-or-later
Summary:        Programmer's Swiss army knife Text widget
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/H/HA/HANJE/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(File::Path) >= 2.180000
BuildRequires:  perl(File::Spec) >= 3.75
BuildRequires:  perl(Getopt::Long) >= 2.54
BuildRequires:  perl(Math::Round) >= 0.08
BuildRequires:  perl(Syntax::Kamelon) >= 0.24
BuildRequires:  perl(Test::Tk) >= 3.03
BuildRequires:  perl(Tk) >= 804.030
BuildRequires:  perl(Tk::ColorEntry) >= 0.11
BuildRequires:  perl(Tk::PopList) >= 0.14
BuildRequires:  perl(Tk::YADialog) >= 0.05
Requires:       perl(File::Path) >= 2.180000
Requires:       perl(File::Spec) >= 3.75
Requires:       perl(Getopt::Long) >= 2.54
Requires:       perl(Math::Round) >= 0.08
Requires:       perl(Syntax::Kamelon) >= 0.24
Requires:       perl(Test::Tk) >= 3.03
Requires:       perl(Tk) >= 804.030
Requires:       perl(Tk::ColorEntry) >= 0.11
Requires:       perl(Tk::PopList) >= 0.14
Requires:       perl(Tk::YADialog) >= 0.05
%{perl_requires}

%description
*Tk::CodeText* aims to be a Scintilla like text widget for Perl/Tk.

Version 0.40 of *Tk::CodeText* was re-written from scratch. This version
and all later versions are not backwards compatible with version 0.3.4 and
earlier.

It leans heavily on Syntax::Kamelon.

It features:

* line numbers on display

* code folding

* status bar

The status bar has document info and tools for setting tab size, indent
style and syntax

* advanced word based undo/redo stack

It keeps track of the last saving point and selections

* syntax highlighting in many languages and formats.

* commenting and uncommenting blocks and lines

* indenting and unindenting blocks and lines

* automatic indentation

* autocomplete

* matching of nested {}, () and [] pairs

%prep
%autosetup  -n %{cpan_name}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
make test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%doc CHANGES README.md

%changelog
openSUSE Build Service is sponsored by