%define module Tk %define name perl-%{module} %define version 804.027 %define subrel 1 %define release %mkrel 7 Summary: Tk modules for Perl Name: %{name} Version: %{version} Release: %{release} Group: Development/Perl BuildRequires: perl-devel pwlib-devel XFree86-devel License: GPL or Artistic URL: http://www.cpan.org/ Source: ftp://sunsite.doc.ic.ac.uk/packages/CPAN/modules/by-module/%{module}/%{module}-%{version}.tar.bz2 Patch0: Tk-804.027-suse-CVE-2006-4484.patch Provides: perl/tk ptk pTk Requires: perl Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Provides: perl(Tk::LabRadio) perl(Tk::TextReindex) # to remove on upgrade ( misc) Obsoletes: perl-Tk-PNG %package devel Summary: Tk modules for Perl (development package) Group: Development/C Requires: perl-Tk = %{version} %package doc Summary: Tk modules for Perl (documentation package) Group: Development/Perl Requires: perl-Tk = %{version} %description This package provides the modules and Tk code for Perl/Tk, as written by Nick Ing-Simmons (pTk), John Ousterhout(Tk), and Ioi Kim Lam(Tix). It gives you the ability to develop perl applications using the Tk GUI. It includes the source code for the Tk and Tix elements it uses. The licences for the various components differ, so check the copyright. %description devel This package provides the modules and Tk code for Perl/Tk, as written by Nick Ing-Simmons (pTk), John Ousterhout(Tk), and Ioi Kim Lam(Tix). It gives you the ability to develop perl applications using the Tk GUI. It includes the source code for the Tk and Tix elements it uses. The licences for the various components differ, so check the copyright. This is the development package. %description doc This package provides the modules and Tk code for Perl/Tk, as written by Nick Ing-Simmons (pTk), John Ousterhout(Tk), and Ioi Kim Lam(Tix). It gives you the ability to develop perl applications using the Tk GUI. It includes the source code for the Tk and Tix elements it uses. The licences for the various components differ, so check the copyright. This is the documentation package. %prep %setup -q -n %{module}-%{version} %patch -p0 -b .cve-2006-4484 find . -type f | xargs perl -pi -e 's|^#!.*/bin/perl\S*|#!/usr/bin/perl|' # Make it lib64 aware, avoid patch perl -pi -e "s,(/usr/X11(R6|\\*)|\\\$X11|\(\?:)/lib,\1/%{_lib},g" \ myConfig pTk/mTk/{unix,tixUnix/{itcl2.0,tk4.0}}/configure #(peroyvind) --center does no longer seem to be working, obsoleted by -c perl -pi -e "s#--center#-c#" ./Tk/MMutil.pm %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make OPTIMIZE="$RPM_OPT_FLAGS" LD_RUN_PATH="" %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %{__chmod} 644 $RPM_BUILD_ROOT%{_mandir}/man3*/* # Remove unpackaged files, add them if you find a use # Tie::Watch is packaged separately rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/{Tie/Watch.pm,Tk/prolog.ps} rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{ptk{ed,sh},widget}.1* rm -f $RPM_BUILD_ROOT%{_mandir}/man3/Tie::Watch.3pm* ## compress all .pm files (as using perl-PerlIO-gzip). #find $RPM_BUILD_ROOT -name "*.pm" | xargs gzip -9 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc COPYING ToDo Changes README README.linux %{_bindir}/* %{_mandir}/man*/* %{perl_vendorarch}/Tk.pm* %dir %{perl_vendorarch}/Tk %{perl_vendorarch}/Tk/*.pm* %{perl_vendorarch}/Tk/*.pl %{perl_vendorarch}/Tk/*.gif %{perl_vendorarch}/Tk/*.xbm %{perl_vendorarch}/Tk/*.xpm %{perl_vendorarch}/Tk/license.terms %{perl_vendorarch}/Tk/Credits %{perl_vendorarch}/Tk/DragDrop %{perl_vendorarch}/Tk/Event %{perl_vendorarch}/Tk/Menu %{perl_vendorarch}/Tk/Text %{perl_vendorarch}/Tk/demos %{perl_vendorarch}/auto/Tk %{perl_vendorarch}/fix_4_os2.pl %files devel %defattr(-,root,root) %doc COPYING Funcs.doc INSTALL %{perl_vendorarch}/Tk/pTk %{perl_vendorarch}/Tk/*.def %{perl_vendorarch}/Tk/*.h %{perl_vendorarch}/Tk/*.m %{perl_vendorarch}/Tk/*.t %{perl_vendorarch}/Tk/typemap %files doc %defattr(-,root,root) %doc COPYING %{perl_vendorarch}/Tk.pod %{perl_vendorarch}/Tk/*.pod %{perl_vendorarch}/Tk/README.Adjust %changelog * Wed Mar 26 2008 Vincent Danen <vdanen@mandriva.com> 804.027-7.1mdv2007.0 - P0: security fix for CVE-2006-4484 * Thu Jun 22 2006 Michael Scherer <misc@mandriva.org> 804.027-7mdv2007.0 - add a Obsoletes on perl-Tk-PNG as it is now included in the source * Sun Jun 18 2006 Stefan van der Eijk <stefan@eijk.nu> 804.027-6 - rebuild for png - %%mkrel * Sun Jan 01 2006 Mandriva Linux Team <http://www.mandrivaexpert.com/> 804.027-5mdk - Rebuild * Wed Feb 02 2005 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 804.027-4mdk - Require Tie::Watch * Mon Nov 15 2004 Götz Waschk <waschk@linux-mandrake.com> 804.027-3mdk - rebuild for new perl * Thu May 06 2004 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 804.027-2mdk - Remove the manpage for Tie::Watch (which is packaged separately) * Thu Apr 22 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 804.027-1mdk - 804.027 * Wed Aug 13 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 800.024-4mdk - rebuild for new perl - drop Prefix tag - don't use PREFIX - use %%makeinstall_std macro - fix no longer working --center option to pod2man