%define pkgname Tk Summary: A perl module for Tk. Name: perl-%{pkgname} Version: 804.028 Release: 1%{_dist_release} Group: Development/Libraries License: GPL or Artistic URL: http://perltk.org/ Source0: %{pkgname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-root # security fix Patch100: Tk-804.027-suse-CVE-2006-4484.patch Provides: perl(Tk::LabRadio) = 4.004 Provides: perl(Tk::TextReindex) = 4.004 Vendor: Project Vine Distribution: Vine Linux %description Perl bindings to the Tk Graphical User Interface ToolKit. %prep %setup -q -n %{pkgname}-%{version} # security fix %patch100 -p0 -b .CVE-2006-4484 %build find . -type f -exec %{__perl} -pi -e 's|^#!/.*bin/perl\S*|#!%{__perl}|i;' {} \; %ifarch x86_64 CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} \ INSTALLDIRS=vendor X11LIB=/usr/X11R6/%{_lib} %else CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor %endif make %{?_smp_mflags} # make test %install rm -rf $RPM_BUILD_ROOT make install [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress find $RPM_BUILD_ROOT%{_prefix} -type f -print | \ sed "s@^$RPM_BUILD_ROOT@@g" | \ grep -v perllocal.pod | \ grep -v "\.packlist" > %{pkgname}-%{version}-filelist if [ "$(cat %{pkgname}-%{version}-filelist)X" = "X" ] ; then echo "ERROR: EMPTY FILE LIST" exit -1 fi %clean rm -rf $RPM_BUILD_ROOT %files -f %{pkgname}-%{version}-filelist %defattr(-,root,root) %doc README MANIFEST %changelog * Sun Aug 24 2008 Daisuke SUZUKI 804.028-1 - new upstream release - build with perl-8.10.0 * Fri Mar 28 2008 Satoshi IWAMOTO 804.027-3 - add patch100 for fix CVE-2006-4484 - with new versioning policy - add Vendor/Distribution tag * Mon Dec 31 2007 Shu KONNO 804.027-0vl2 - added X11LIB to build (for x86_64) * Sun Oct 22 2006 MATSUBAYASHI Kohji 804.027-0vl1 - updated to 804.027 - build with perl-5.8.6 - no noarch now (arch-dependent files/binaries are actually included) * Sun Oct 03 2004 Daisuke SUZUKI 804.026-0vl1 - initial build for Vine Linux