File perl-SDL.spec of Package perl-SDL

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

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)
Requires:       perl = %{perl_version}
Version:        2.544
Release:        0
Summary:        Glue between Perl and SDL
License:        LGPL-2.1+ and OFL-1.1
Group:          System/Libraries
Source1:        perl-SDL.rpmlintrc
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

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."

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

perl Build.PL installdirs=vendor

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

%dir %{perl_vendorarch}/auto/share
%dir %{perl_vendorarch}/auto/share/dist
%dir %{perl_vendorarch}/pods