perl-Tk-vl.spec 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. %define pkgname Tk
  2. Summary: A perl module for Tk.
  3. Name: perl-%{pkgname}
  4. Version: 804.028
  5. Release: 1%{_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. # security fix
  12. Patch100: Tk-804.027-suse-CVE-2006-4484.patch
  13. Provides: perl(Tk::LabRadio) = 4.004
  14. Provides: perl(Tk::TextReindex) = 4.004
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. %description
  18. Perl bindings to the Tk Graphical User Interface ToolKit.
  19. %prep
  20. %setup -q -n %{pkgname}-%{version}
  21. # security fix
  22. %patch100 -p0 -b .CVE-2006-4484
  23. %build
  24. find . -type f -exec %{__perl} -pi -e 's|^#!/.*bin/perl\S*|#!%{__perl}|i;' {} \;
  25. %ifarch x86_64
  26. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} \
  27. INSTALLDIRS=vendor X11LIB=/usr/X11R6/%{_lib}
  28. %else
  29. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor
  30. %endif
  31. make %{?_smp_mflags}
  32. # make test
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. make install
  36. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  37. find $RPM_BUILD_ROOT%{_prefix} -type f -print | \
  38. sed "s@^$RPM_BUILD_ROOT@@g" | \
  39. grep -v perllocal.pod | \
  40. grep -v "\.packlist" > %{pkgname}-%{version}-filelist
  41. if [ "$(cat %{pkgname}-%{version}-filelist)X" = "X" ] ; then
  42. echo "ERROR: EMPTY FILE LIST"
  43. exit -1
  44. fi
  45. %clean
  46. rm -rf $RPM_BUILD_ROOT
  47. %files -f %{pkgname}-%{version}-filelist
  48. %defattr(-,root,root)
  49. %doc README MANIFEST
  50. %changelog
  51. * Sun Aug 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 804.028-1
  52. - new upstream release
  53. - build with perl-8.10.0
  54. * Fri Mar 28 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 804.027-3
  55. - add patch100 for fix CVE-2006-4484
  56. - with new versioning policy
  57. - add Vendor/Distribution tag
  58. * Mon Dec 31 2007 Shu KONNO <owa@bg.wakwak.com> 804.027-0vl2
  59. - added X11LIB to build (for x86_64)
  60. * Sun Oct 22 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 804.027-0vl1
  61. - updated to 804.027
  62. - build with perl-5.8.6
  63. - no noarch now (arch-dependent files/binaries are actually included)
  64. * Sun Oct 03 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 804.026-0vl1
  65. - initial build for Vine Linux