%define pkg_name QWizard %define pkg_version 3.03 %define rpm_pkg_version 3.03 %define rpm_pkg_release 1.n0i.3 %define __perl_requires %{_tmppath}/%{name}-%{version}-%{release}.requires Summary: A system for running wizard screens Name: perl-%{pkg_name} Version: %{rpm_pkg_version} %if "%{pkg_version}" == "%{rpm_pkg_version}" Release: %{rpm_pkg_release} %else Release: %{rpm_pkg_release}.%(echo %{pkg_version} | tr - _) %endif Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: ftp://ftp.cpan.org/authors/id/H/HA/HARDAKER/%{pkg_name}-%{pkg_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: perl(:MODULE_COMPAT_%(%{__perl} -le 'printf "%%vd", $^V')) %description The QWizard module allows script authors to concentrate on the content of the forms they want their users to fill in without worrying about the display. It allows "Question Wizard" like interfaces to be very easily created and the results of the input easily acted upon. Scripts written which are entirely based on QWizard inputs are able to be run from the command line which will show a Gtk2, Tk window or as a ReadLine interactive session or as a CGI script without modification. %prep %setup -n %{pkg_name}-%{pkg_version} %build PERL_MM_USE_DEFAULT=1 %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name .packlist -delete || : find $RPM_BUILD_ROOT -type f -name '*.bs' -a -empty -delete || : find $RPM_BUILD_ROOT -depth -type d -a -empty -delete || : %{__chmod} -R u+w,go-w $RPM_BUILD_ROOT/* find $RPM_BUILD_ROOT | xargs -r touch %{__grep} -rsl '^#!.*perl' examples/ \ | xargs -r %{__perl} -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' # custom requires script: dropping optional/alternative output methods %{__cat} < %{__perl_requires} #!%{_buildshell} %{__cat} | %{__grep} -v $RPM_BUILD_ROOT%{_docdir} | /usr/lib/rpm/perl.req $* \ | %{__grep} -v 'CGI' \ | %{__grep} -v 'Glib' \ | %{__grep} -v 'Gtk' \ | %{__grep} -v 'Term::ReadLine' \ | %{__grep} -v 'Tk' EOF %{__chmod} 700 %{__perl_requires} %clean %{__rm} -rf $RPM_BUILD_ROOT %{__rm} -f %{__perl_requires} %files %defattr(-,root,root,-) %doc examples/ README %{perl_vendorlib}/* %exclude %{perl_vendorlib}/auto/ %{_mandir}/man*/* %changelog * Wed Jun 28 2006 Marius Feraru - 3.03-1.n0i.3 - version 3.03 * Wed Jun 21 2006 Marius Feraru - 3.0-1.n0i.2 - version 3.0 * Fri Sep 02 2005 Marius Feraru 2.2.1-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.10 - rebuild on perl 5.8.7