Files
perl-UI-Dialog/perl-UI-Dialog.spec
2025-08-12 18:18:18 +02:00

92 lines
4.0 KiB
RPMSpec

#
# spec file for package perl-UI-Dialog
#
# 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 UI-Dialog
Name: perl-UI-Dialog
Version: 1.210.0
Release: 0
# 1.21 -> normalize -> 1.210.0
%define cpan_version 1.21
License: This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Summary: Wrapper for various dialog applications
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/K/KC/KCK/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(File::Slurp)
BuildRequires: perl(String::ShellQuote)
Requires: perl(File::Slurp)
Requires: perl(String::ShellQuote)
Provides: perl(UI::Dialog) = %{version}
Provides: perl(UI::Dialog::Backend) = %{version}
Provides: perl(UI::Dialog::Backend::ASCII) = %{version}
Provides: perl(UI::Dialog::Backend::CDialog) = %{version}
Provides: perl(UI::Dialog::Backend::GDialog) = %{version}
Provides: perl(UI::Dialog::Backend::KDialog) = %{version}
Provides: perl(UI::Dialog::Backend::Nautilus) = %{version}
Provides: perl(UI::Dialog::Backend::NotifySend) = %{version}
Provides: perl(UI::Dialog::Backend::Whiptail) = %{version}
Provides: perl(UI::Dialog::Backend::XDialog) = %{version}
Provides: perl(UI::Dialog::Backend::XOSD) = %{version}
Provides: perl(UI::Dialog::Backend::Zenity) = %{version}
Provides: perl(UI::Dialog::Console) = %{version}
Provides: perl(UI::Dialog::GNOME) = %{version}
Provides: perl(UI::Dialog::Gauged) = %{version}
Provides: perl(UI::Dialog::KDE) = %{version}
Provides: perl(UI::Dialog::Screen::Druid) = %{version}
Provides: perl(UI::Dialog::Screen::Menu) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
UI::Dialog supports priority ordering of the backend detection process. So
if you'd prefer that Xdialog should be used first if available, simply
designate the desired order when creating the new object. The default order
for detecting and utilization of the backends are as follows: (with DISPLAY
env): Zenity, GDialog, XDialog, KDialog (without DISPLAY): CDialog,
Whiptail, ASCII
UI::Dialog is the result of a complete re-write of the UDPM CPAN module.
This was done to break away from the bad choice of name
(UserDialogPerlModule) and to implement a cleaner, more detached, OOPerl
interface.
%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 CONTRIBUTORS examples README TODO
%license LICENSE
%changelog