Files
perl-UI-Dialog/perl-UI-Dialog.spec

72 lines
3.0 KiB
RPMSpec

#
# spec file for package perl-UI-Dialog
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: perl-UI-Dialog
Version: 1.21
Release: 0
%define cpan_name UI-Dialog
Summary: Wrapper for Various Dialog Applications
License: This library is free software and 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 and 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 and 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 and if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/UI-Dialog/
Source0: http://www.cpan.org/authors/id/K/KC/KCK/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(File::Slurp)
BuildRequires: perl(String::ShellQuote)
Requires: perl(File::Slurp)
Requires: perl(String::ShellQuote)
%{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
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes CONTRIBUTORS examples LICENSE README TODO
%changelog