File perl-SDL.spec of Package perl-SDL

#
# spec file for package perl-SDL
#
# Copyright (c) 2012 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/
#


Name:           perl-SDL
BuildRequires:  Mesa-devel
BuildRequires:  libSDL-devel
BuildRequires:  libSDL_Pango-devel
BuildRequires:  libSDL_gfx-devel
BuildRequires:  libSDL_image-devel
BuildRequires:  libSDL_mixer-devel
BuildRequires:  libSDL_net-devel
BuildRequires:  libSDL_sound-devel
BuildRequires:  libSDL_ttf-devel
BuildRequires:  perl-YAML
BuildRequires:  perl(Alien::SDL)
BuildRequires:  perl(Capture::Tiny)
BuildRequires:  perl(File::ShareDir)
BuildRequires:  perl(Module::Build) >= 0.4000
BuildRequires:  perl(Module::Metadata)
BuildRequires:  perl(Test::Most)
BuildRequires:  perl(Tie::Simple)
Url:            http://sdl.perl.org/
Requires:       perl = %{perl_version}
Version:        2.540
Release:        0
Summary:        Glue between Perl and SDL
License:        LGPL-2.1+ and OFL-1.1
Group:          System/Libraries
Source:         http://search.cpan.org/CPAN/authors/id/J/JT/JTPALMER/SDL-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       SDL_perl = %{version}
Obsoletes:      SDL_perl < 2.540
Provides:       perl-SDL_Perl = %{version}
Obsoletes:      perl-SDL_Perl < 2.540

%description
SDL Perl are a set of bindings to the Simple DirectMedia Layer (SDL).

Simple DirectMedia Layer is a cross-platform multimedia library designed to
provide low level access to audio, keyboard, mouse, joystick, 3D hardware via
OpenGL, and 2D video framebuffer. It is used by MPEG playback software,
emulators, and many popular games, including the award winning Linux port of
"Civilization: Call To Power."

%prep
%setup -q -n SDL-%{version}

%build
perl Build.PL installdirs=vendor
./Build

%install
./Build destdir=%{buildroot} installdirs=vendor install
%perl_process_packlist

%files
%defattr(-,root,root)
%doc CHANGELOG COPYING README
%{perl_vendorarch}/SDL
%{perl_vendorarch}/SDLx
%{perl_vendorarch}/Module
%{perl_vendorarch}/auto/SDL
%{perl_vendorarch}/auto/SDL_perl
%{perl_vendorarch}/auto/SDLx
%dir %{perl_vendorarch}/auto/share
%dir %{perl_vendorarch}/auto/share/dist
%{perl_vendorarch}/auto/share/dist/SDL
%dir %{perl_vendorarch}/pods
%{perl_vendorarch}/pods/SDL
%{perl_vendorarch}/pods/SDL.pod
%{perl_vendorarch}/pods/SDLx
%{perl_vendorarch}/*.pm
%{_mandir}/man3/*

%changelog
openSUSE Build Service is sponsored by