diff --git a/.gitignore b/.gitignore index e69de29..7df7621 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Alien-SDL-1.428.tar.gz diff --git a/perl-Alien-SDL.spec b/perl-Alien-SDL.spec new file mode 100644 index 0000000..721b8dd --- /dev/null +++ b/perl-Alien-SDL.spec @@ -0,0 +1,74 @@ +Name: perl-Alien-SDL +Version: 1.428 +Release: 1%{?dist} +Summary: Building, finding and using SDL binaries +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Alien-SDL/ +Source0: http://www.cpan.org/authors/id/F/FR/FROGGS/Alien-SDL-%{version}.tar.gz +BuildArch: noarch +BuildRequires: SDL_image-devel +BuildRequires: SDL_mixer-devel +BuildRequires: SDL_ttf-devel +BuildRequires: SDL_gfx-devel +BuildRequires: freetype-devel +BuildRequires: pango-devel +BuildRequires: perl(Archive::Extract) +BuildRequires: perl(Archive::Tar) +BuildRequires: perl(Archive::Zip) +BuildRequires: perl(Capture::Tiny) +BuildRequires: perl(Digest::SHA) +BuildRequires: perl(ExtUtils::CBuilder) +BuildRequires: perl(File::Fetch) >= 0.24 +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Path) >= 2.08 +BuildRequires: perl(File::ShareDir) >= 1.00 +BuildRequires: perl(File::Spec) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(File::Temp) +BuildRequires: perl(File::Which) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Test::More) +BuildRequires: perl(Text::Patch) >= 1.4 +Requires: perl(ExtUtils::CBuilder) +Requires: perl(File::ShareDir) >= 1.00 +Requires: perl(File::Fetch) >= 0.24 +Requires: perl(Text::Patch) >= 1.4 +Requires: perl(File::Path) >= 2.08 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} +# RPM 4.9 style +%global __requires_exclude %__requires_exclude|^perl\\(File::ShareDir\\)$ + +%description +In short Alien::SDL can be used to detect and get configuration settings from +an installed SDL and related libraries. Based on your platform it offers the +possibility to download and install prebuilt binaries or to build SDL & co. +from source codes. + +%prep +%setup -q -n Alien-SDL-%{version} +sed -i 's/\r//' README + +%build +%{__perl} Build.PL installdirs=vendor --with-sdl-config +./Build + +%install +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%files +%doc Changes LICENSE patches README TODO +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Aug 01 2011 Marcela Mašláňová 1.428-1 +- Specfile autogenerated by cpanspec 1.79. diff --git a/sources b/sources index e69de29..59bad4b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +130938070a94982cdefe7a4fdc8e1c66 Alien-SDL-1.428.tar.gz