perl-Tk-vl.spec 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. %define pkgname Tk
  2. Summary: A perl module for Tk.
  3. Name: perl-%{pkgname}
  4. Version: 804.028
  5. Release: 3%{_dist_release}
  6. Group: Development/Libraries
  7. License: GPL or Artistic
  8. URL: http://perltk.org/
  9. Source0: %{pkgname}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: libX11-devel libpng-devel
  12. ## bug fix
  13. # fixed: http://rt.cpan.org/Public/Bug/Display.html?id=38746
  14. Patch11: perl-Tk-fix38746.patch
  15. ## security fix
  16. Patch100: Tk-804.027-suse-CVE-2006-4484.patch
  17. Provides: perl(Tk::LabRadio) = 4.004
  18. Provides: perl(Tk::TextReindex) = 4.004
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. %description
  22. Perl bindings to the Tk Graphical User Interface ToolKit.
  23. %prep
  24. %setup -q -n %{pkgname}-%{version}
  25. %{__mkdir} pTk.docs
  26. %{__cp} pTk/Tix.license pTk/license.terms pTk/license.html_lib pTk.docs
  27. ## bug fix
  28. %patch11 -p0 -b .bug38746
  29. ## security fix
  30. %patch100 -p0 -b .CVE-2006-4484
  31. %build
  32. find . -type f -exec %{__perl} -pi -e 's|^#!/.*bin/perl\S*|#!%{__perl}|i;' {} \;
  33. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor
  34. make %{?_smp_mflags}
  35. # make test
  36. %install
  37. rm -rf $RPM_BUILD_ROOT
  38. make install
  39. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  40. find $RPM_BUILD_ROOT%{_prefix} -type f -print | \
  41. sed "s@^$RPM_BUILD_ROOT@@g" | \
  42. grep -v perllocal.pod | \
  43. grep -v "\.packlist" > %{pkgname}-%{version}-filelist
  44. if [ "$(cat %{pkgname}-%{version}-filelist)X" = "X" ] ; then
  45. echo "ERROR: EMPTY FILE LIST"
  46. exit -1
  47. fi
  48. %clean
  49. rm -rf $RPM_BUILD_ROOT
  50. %files -f %{pkgname}-%{version}-filelist
  51. %defattr(-,root,root)
  52. %doc README MANIFEST COPYING Change.log Changes README.linux pTk.docs
  53. %changelog
  54. * Sat Jan 9 2010 IWAI, Masaharu <iwai@alib.jp> 804.028-3
  55. - add BuildRequires: libX11-devel libpng-devel : <BTS:VineLinux:866>
  56. - drop X11LIBS argument for Makefile.PL on x86_64 architecture
  57. - add documents
  58. * Mon Jan 4 2010 IWAI, Masaharu <iwai@alib.jp> 804.028-2
  59. - add patch11 for fix CPAN bug #38746: <BTS:VineLinux:866>
  60. - see http://rt.cpan.org/Public/Bug/Display.html?id=38746
  61. * Sun Aug 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 804.028-1
  62. - new upstream release
  63. - build with perl-8.10.0
  64. * Fri Mar 28 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 804.027-3
  65. - add patch100 for fix CVE-2006-4484
  66. - with new versioning policy
  67. - add Vendor/Distribution tag
  68. * Mon Dec 31 2007 Shu KONNO <owa@bg.wakwak.com> 804.027-0vl2
  69. - added X11LIB to build (for x86_64)
  70. * Sun Oct 22 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 804.027-0vl1
  71. - updated to 804.027
  72. - build with perl-5.8.6
  73. - no noarch now (arch-dependent files/binaries are actually included)
  74. * Sun Oct 03 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 804.026-0vl1
  75. - initial build for Vine Linux