File SDL_perl.spec of Package SDL_perl

#
# spec file for package SDL_perl (Version 2.1.3)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           SDL_perl
BuildRequires:  Mesa-devel SDL_image-devel SDL_net-devel SDL_ttf-devel
BuildRequires:  SDL_mixer-devel perl-Module-Build perl-YAML
Url:            http://sdl.perl.org/
License:        LGPL v2.1 or later
Group:          System/Libraries
Requires:       perl = %{perl_version}
AutoReqProv:    on
Version:        2.1.3
Release:        18
Summary:        Glue between Perl and SDL
Source:         SDL_Perl-%{version}.tar.gz
Patch:          warning-fix.diff
Patch1:         perl-5.10.0.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Programming SDL with Perl.



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

%prep
%setup -n SDL_Perl-%{version}
%patch
%patch1

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

%install
./Build install
mv $RPM_BUILD_ROOT/%{perl_vendorarch}/auto/src/* \
   $RPM_BUILD_ROOT/%{perl_vendorarch}/auto
rmdir $RPM_BUILD_ROOT/%{perl_vendorarch}/auto/src
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

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

%changelog
* Mon May 05 2008 sndirsch@suse.de
- perl-5.10.0.diff
  * NULL has been added to POSIX module; adjusted definition to
  resolve the conflict (bnc #386412)
* Sat Mar 15 2008 sndirsch@suse.de
- update to release 2.1.3 (bnc #371318)
* Fri Aug 17 2007 sndirsch@suse.de
- fixed Buildrequires for SDL_net/SDL_ttf (Bug #301337)
* Mon Mar 12 2007 sndirsch@suse.de
- warning-fix.diff:
  * fixed compiler warning "array subscript is above array bounds"
  (Bug #253482)
* Fri Sep 08 2006 sndirsch@suse.de
- fixed build in openSUSE buildservice
* Thu Feb 02 2006 sndirsch@suse.de
- added Mesa-devel to BuildRequires to enable OpenGL support again
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Aug 20 2005 sndirsch@suse.de
- added SDL_mixer-devel + libmikmod to #neededforbuild, which
  enables SDL_mixer support again --> fixes sound support in
  frozen-bubble (Bug #106012)
* Sat Jan 10 2004 adrian@suse.de
- add %%defattr
* Wed Aug 20 2003 mjancar@suse.cz
- require the perl version we build with
* Mon Aug 18 2003 sndirsch@suse.de
- downgraded to release 1.20 again as frozen-bubble no longer
  worked :-(
* Sat Aug 16 2003 sndirsch@suse.de
- updated to release 2.0
* Mon Jul 14 2003 mls@suse.de
- fixed build
* Sat Jul 12 2003 sndirsch@suse.de
- fixed build
* Sat Jun 14 2003 sndirsch@suse.de
- fixed filelist
* Sun May 25 2003 sndirsch@suse.de
- removed unpackaged files
* Fri May 23 2003 coolo@suse.de
- use BuildRoot
* Sun Jan 19 2003 sndirsch@suse.de
- updated to release 1.20.0
* Sun Dec 29 2002 sndirsch@suse.de
- updated to release 1.19.1
* Fri Oct 25 2002 sndirsch@suse.de
- fixed %%files section (use macros now)
* Fri Oct 25 2002 sndirsch@suse.de
- created package
openSUSE Build Service is sponsored by