SDL_perl-vl.spec 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. %define name SDL_perl
  2. %define version 2.1.2
  3. %define release 2%{?_dist_release}
  4. Summary: SDL_perl - Simple Direct Media Layer for Perl
  5. Summary(ja): SDL_perl - Perl 用 SDL(Simple DirectMedia Layer) モジュール
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. Source0: http://search.cpan.org/CPAN/authors/id/D/DG/DGOEHRIG/SDL_Perl-%{version}.tar.gz
  10. Patch0: sdl-2.1.3.build.patch
  11. License: Artistic and GPL
  12. Group: Development/Libraries
  13. URL: http://search.cpan.org/dist/SDL_Perl/
  14. Requires: perl
  15. BuildRequires: perl, perl-Module-Build >= 0.22
  16. BuildRequires: SDL-devel >= 1.2.6, smpeg-devel >= 0.4.4
  17. BuildRequires: SDL_image-devel >= 1.2.2, SDL_gfx-devel >= 2.0.3
  18. BuildRequires: SDL_mixer-devel >= 1.2.5, SDL_ttf-devel >= 2.0.5
  19. BuildRequires: SDL_net-devel >= 1.2.4
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. %description
  22. SDL_perl is a package of perl modules that provides both
  23. functional and object orient interfaces to the Simple DirectMedia
  24. Layer for Perl 5.
  25. %description -l ja
  26. SDL_perl は、Perl 5 に SDL (Simple DirectMedia Layer) 用の機能
  27. とオブジェクト指向のインターフェースを提供する、Perl モジュール
  28. のパッケージです。
  29. %prep
  30. %setup -q -n SDL_Perl-%{version}
  31. # apply patch from CPAN bug report #19155
  32. %patch0 -p1 -b .build
  33. %build
  34. CFLAGS="$RPM_OPT_FLAGS" %{__perl} Build.PL installdirs=vendor
  35. ./Build
  36. %install
  37. %{__rm} -rf ${RPM_BUILD_ROOT}
  38. ./Build install destdir=${RPM_BUILD_ROOT}
  39. %clean
  40. %{__rm} -rf ${RPM_BUILD_ROOT}
  41. %files
  42. %defattr(-,root,root)
  43. %doc BUGS CHANGELOG COPYING MANIFEST README TODO
  44. %{perl_vendorarch}/SDL.pm
  45. %{perl_vendorarch}/SDL/*
  46. %{perl_vendorarch}/SDL_perl.pm
  47. %{perl_vendorarch}/auto/SDL/*
  48. %{perl_vendorarch}/auto/SDL_perl/*
  49. %{_mandir}/man3/SDL.3pm*
  50. %{_mandir}/man3/SDL::*
  51. %changelog
  52. * Mon Jun 22 2009 Shu KONNO <owa@bg.wakwak.com> 2.1.2-2
  53. - spec in utf-8
  54. * Wed Sep 03 2008 Shu KONNO <owa@bg.wakwak.com> 2.1.2-1vl5
  55. - applied new versioning policy, spec in utf-8
  56. * Mon Mar 26 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 2.1.2-0vl1
  57. - initial build for Vine Linux