File perl-SDL_Perl.spec of Package perl-SDL_Perl

#
# spec file for package perl-SDL_Perl (Version 2.2.6)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           perl-SDL_Perl
BuildRequires:  Mesa-devel libSDL_image-devel libSDL_mixer-devel libSDL_net-devel libSDL_ttf-devel perl-Module-Build perl-YAML
Url:            http://sdl.perl.org/
License:        LGPLv2.1+
Group:          System/Libraries
Requires:       perl = %{perl_version}
Version:        2.2.6
Release:        6
Summary:        Glue between Perl and SDL
# .bz2 is larger than .gz, that's why we use .gz  ...
Source:         http://search.cpan.org/CPAN/authors/id/K/KT/KTHAKORE/SDL_Perl-v%{version}.tar.gz
Patch0:         %{name}-2.1.3-perl-5.10.0.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       SDL_perl = %{version}
Obsoletes:      SDL_perl <= %{version}

%description
Programming SDL with Perl.



Authors:
--------
    David J. Goehrig <dave@sdlperl.org>

%prep
%setup -q -n SDL_Perl-v%{version}
%patch0

%build
perl Build.PL destdir=$RPM_BUILD_ROOT installdirs=vendor
./Build

%install
./Build install
%perl_process_packlist
# for < 11.4
rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/SDL/.packlist
# %check
# ./Build test

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc CHANGELOG COPYING README
%{perl_vendorarch}/SDL
%{perl_vendorarch}/auto/SDL
%{perl_vendorarch}/auto/SDL_perl
%{perl_vendorarch}/*.pm
%{_mandir}/man3/*

%changelog