Files
perl-Term-EditorEdit/perl-Term-EditorEdit.spec
2025-08-12 18:17:33 +02:00

72 lines
2.2 KiB
RPMSpec

#
# spec file for package perl-Term-EditorEdit
#
# Copyright (c) 2024 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 Term-EditorEdit
Name: perl-Term-EditorEdit
Version: 0.1.600
Release: 0
%define cpan_version 0.0016
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Edit a document via $EDITOR
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RO/ROKR/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Any::Moose)
BuildRequires: perl(Test::Most)
BuildRequires: perl(Text::Clip)
BuildRequires: perl(Try::Tiny)
Requires: perl(Any::Moose)
Requires: perl(Text::Clip)
Requires: perl(Try::Tiny)
Provides: perl(Term::EditorEdit) = %{version}
Provides: perl(Term::EditorEdit::Edit)
%undefine __perllib_provides
%{perl_requires}
%description
Term::EditorEdit is a tool for prompting the user to edit a piece of text
via '$VISUAL' or '$EDITOR' and return the result
In addition to just editing a document, this module can distinguish between
a document preamble and document content, giving you a way to provide
"out-of-bound" information to whoever is editing. Once an edit is complete,
only the content (whatever was below the preamble) is returned
%prep
%autosetup -n %{cpan_name}-%{cpan_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
%changelog