SDL_perl-vl.spec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. %define name SDL_perl
  2. %define version 2.2.6
  3. %define release 1%{?_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-v%{version}.tar.gz
  10. License: Artistic and GPL
  11. Group: Development/Libraries
  12. URL: http://search.cpan.org/dist/SDL_Perl/
  13. Requires: perl
  14. BuildRequires: perl, perl-Module-Build >= 0.22
  15. BuildRequires: SDL-devel >= 1.2.6, smpeg-devel >= 0.4.4
  16. BuildRequires: SDL_image-devel >= 1.2.2, SDL_gfx-devel >= 2.0.3
  17. BuildRequires: SDL_mixer-devel >= 1.2.5, SDL_ttf-devel >= 2.0.5
  18. BuildRequires: SDL_net-devel >= 1.2.4
  19. BuildRequires: perl-YAML
  20. BuildRequires: libGLU-devel
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. %description
  23. SDL_perl is a package of perl modules that provides both
  24. functional and object orient interfaces to the Simple DirectMedia
  25. Layer for Perl 5.
  26. %description -l ja
  27. SDL_perl は、Perl 5 に SDL (Simple DirectMedia Layer) 用の機能
  28. とオブジェクト指向のインターフェースを提供する、Perl モジュール
  29. のパッケージです。
  30. %prep
  31. %setup -q -n SDL_Perl-v%{version}
  32. # apply patch from CPAN bug report #19155
  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. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  40. %clean
  41. %{__rm} -rf ${RPM_BUILD_ROOT}
  42. %files
  43. %defattr(-,root,root)
  44. %doc BUGS CHANGELOG COPYING MANIFEST README TODO
  45. %{perl_vendorarch}/SDL.pm
  46. %{perl_vendorarch}/SDL/*
  47. %{perl_vendorarch}/SDL_perl.pm
  48. %{perl_vendorarch}/auto/SDL/*
  49. %{perl_vendorarch}/auto/SDL_perl/*
  50. %{_mandir}/man3/SDL.3pm*
  51. %{_mandir}/man3/SDL::*
  52. %changelog
  53. * Thu Dec 30 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.6-1
  54. - new upstream release
  55. - remove Patch0
  56. - add BuildRequires: perl-YAML, libGLU-devel
  57. * Mon Jun 22 2009 Shu KONNO <owa@bg.wakwak.com> 2.1.2-2
  58. - spec in utf-8
  59. * Wed Sep 03 2008 Shu KONNO <owa@bg.wakwak.com> 2.1.2-1vl5
  60. - applied new versioning policy, spec in utf-8
  61. * Mon Mar 26 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 2.1.2-0vl1
  62. - initial build for Vine Linux