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