%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Tk Version: 804.029 Release: 1mamba Summary: Graphical User Interface ToolKit module for Perl Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/Tk-%{version}.tar.gz License: GPL, Artistic, BSD Requires: perl >= %perl_major_ver Requires: glibc >= 2.3.2 ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libX11-devel BuildRequires: libz-devel BuildRequires: perl-devel >= %perl_major_ver ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root Provides: perl(Tk::LabRadio), perl(Tk::TextReindex), perl(Tk::MMtry) %description This a re-port of a perl interface to Tk8.4. C code is derived from Tcl/Tk8.4.5. It also includes all the C code parts of Tix8.1.4 from SourceForge. The perl code corresponding to Tix's Tcl code is not fully implemented. Perl API is essentially the same as Tk800 series Tk800.025 but has not been verified as compliant. There ARE differences see pod/804delta.pod. %prep %setup -q -n Tk-%{version} # make the perl calls FHS-2.2 compliants find . -type f -exec sed -i ' s@!/usr/local/bin/perl@!/usr/bin/perl@g s@!/bin/perl@!/usr/bin/perl@g' {} \; # fix non existing class `perl(Tk::LabRadio)' #sed -i 's@Tk::LabRadio;@Tk::LabRadiobutton@' \ # demos/demos/LabEnLabRad.pm # fix non existing class `perl(Tk::TextReindex)' #sed -i 's@Tk::TextReindex@Tk::ReindexedText@g' \ # TextList/reindex.pl %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make # fix non existing class `perl(Tk::LabRadio)' #sed -i 's@Tk::LabRadio;@Tk::LabRadiobutton@' \ # blib/lib/Tk/demos/LabEnLabRad.pm # fix non existing class `perl(Tk::TextReindex)' #sed -i 's@Tk::TextReindex@Tk::ReindexedText@g' \ # blib/lib/Tk/reindex.pl #Xvfb :95 -fp /usr/X11R6/lib/X11/fonts/misc & #trap "kill $!" EXIT #sleep 5 #DISPLAY=:95 make test %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall_perl packlist=`find %{buildroot} -name .packlist` [ -z "$packlist" ] && exit 1 || cat $packlist | \ sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ sort -u > .packlist && rm $packlist strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` for dir in `find %{buildroot} -type d | grep $strid`; do echo "%dir ${dir#%buildroot}" >> .packlist done %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} rm -f .packlist %files -f .packlist %defattr(-,root,root) %doc COPYING Change.log Changes Funcs.doc INSTALL MANIFEST %doc PPM-HowTo README* ToDo VERSIONS pTk/license.terms pTk/Tix.license %changelog * Thu Nov 11 2010 Silvan Calarco 804.029-1mamba - update to 804.029 * Tue Feb 02 2010 Automatic Build System 804.028_502-1mamba - automatic update by autodist * Thu Jul 09 2009 Automatic Build System 804.028_501-1mamba - automatic update by autodist * Wed Nov 05 2008 Silvan Calarco 804.028-2mamba - automatic rebuild by autodist * Sun Sep 14 2008 gil 804.028-1mamba - update to 804.028 * Thu Dec 21 2006 Silvan Calarco 804.027-1qilnx - update to version 804.027 by autospec * Fri Jan 13 2006 Stefano Cotta Ramusino 800.025-6qilnx - specfile updated and fixed - fixed license * Wed Jan 19 2005 Silvan Calarco 800.025-5qilnx - added missing requirements for perl packages * Tue Jul 20 2004 Davide Madrisan 800.025-4qilnx - specfile now perl version indipendent * Wed Jan 07 2004 Davide Madrisan 800.025-3qilnx - rebuilt with perl 5.8.2 * Tue Dec 30 2003 Davide Madrisan 800.025-2qilnx - specfile updated - rebuilt with perl 5.8.1 * Tue Oct 07 2003 Davide Madrisan 800.025-1qilnx - first build