Browse Source

rebuild: perl-Tk

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@3934 ec354946-7b23-47d6-9f5a-488ba84defc7
owa 14 years ago
parent
commit
b11ca50a80
1 changed files with 35 additions and 2 deletions
  1. 35 2
      p/perl-Tk/perl-Tk-vl.spec

+ 35 - 2
p/perl-Tk/perl-Tk-vl.spec

@@ -1,9 +1,11 @@
+# if you wanna test, add " --define '_run_test 1' " option to rpmbuild command
+%define run_test %{?_run_test:1}%{!?_run_test:0}
 %define pkgname Tk
 
 Summary:	A perl module for Tk.
 Name:		perl-%{pkgname}
 Version:	804.028
-Release:	3%{_dist_release}
+Release:	4%{_dist_release}
 Group:		Development/Libraries
 License:	GPL or Artistic
 URL:		http://perltk.org/
@@ -18,6 +20,13 @@ Patch11:        perl-Tk-fix38746.patch
 ## security fix
 Patch100:       Tk-804.027-suse-CVE-2006-4484.patch
 
+## for VineLinux6
+Patch200: perl-Tk-804.028.Xlib.patch
+Patch201: perl-Tk-804.028.pTkCallback.patch
+Patch202: perl-Tk-804.028.encGlue.patch
+Patch203: perl-Tk-804.028.tkGlue.patch
+
+
 Provides: perl(Tk::LabRadio) = 4.004
 Provides: perl(Tk::TextReindex) = 4.004
 
@@ -38,11 +47,25 @@ Perl bindings to the Tk Graphical User Interface ToolKit.
 ## security fix
 %patch100 -p0 -b .CVE-2006-4484
 
+## for VineLinux6
+%patch200 -p1 -b .Xlib
+%patch201 -p1 -b .pTkCallback
+%patch202 -p1 -b .encGlue
+%patch203 -p1 -b .tkGlue
+
 %build
 find . -type f -exec %{__perl} -pi -e 's|^#!/.*bin/perl\S*|#!%{__perl}|i;' {} \;
 CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor
 make %{?_smp_mflags}
-# make test
+
+%if %{run_test}
+make test
+#-------------------------------#
+# Sun May 22 2011 ..last tested #
+# Result: PASS
+#-------------------------------#
+%endif
+
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -65,8 +88,18 @@ rm -rf $RPM_BUILD_ROOT
 %files -f %{pkgname}-%{version}-filelist
 %defattr(-,root,root)
 %doc README MANIFEST COPYING Change.log Changes README.linux pTk.docs
+%exclude %{perl_archlib}/perllocal.pod
+%exclude %{perl_vendorarch}/auto/Tk/.packlist
+
 
 %changelog
+* Sun May 22 2011 Shu KONNO <owa@bg.wakwak.com> 804.028-4
+- added Patch200: perl-Tk-804.028.Xlib.patch
+- added Patch201: perl-Tk-804.028.pTkCallback.patch
+- added Patch202: perl-Tk-804.028.encGlue.patch
+- added Patch203: perl-Tk-804.028.tkGlue.patch
+- added _run_test option
+
 * Sat Jan  9 2010 IWAI, Masaharu <iwai@alib.jp> 804.028-3
 - add BuildRequires: libX11-devel libpng-devel : <BTS:VineLinux:866>
 - drop X11LIBS argument for Makefile.PL on x86_64 architecture