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