%define upstream_name UI-Dialog %define upstream_version 1.08 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 3 Summary: OOPerl wrapper for the various dialog applications License: GPL Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/UI/%{upstream_name}-%{upstream_version}.tar.bz2 BuildArch: noarch Requires: perl cdialog %description UI::Dialog is a OOPerl wrapper for the various dialog applications. These dialog backends are currently supported: Zenity, GDialog, XDialog, KDialog, CDialog, and Whiptail. There is also an ASCII backend provided as a last resort interface for the console based dialog variants. UI::Dialog is a class that provides a strict interface to these various backend modules. By using UI:Dialog (with it's imposed limitations on the widgets) you can ensure that your Perl program will function with any available interfaces. 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 %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check make test %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc examples README CONTRIBUTORS Changes TODO COPYRIGHT %{perl_vendorlib}/* %{_mandir}/*/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 1.80.0-3.mga3 + Revision: 374506 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Jan 20 2011 jquelin <jquelin> 1.80.0-2.mga1 + Revision: 27212 - mageia rebuild - imported package perl-UI-Dialog