--- /dev/null
+%include /usr/lib/rpm/macros.perl
+Summary: SDL perl module
+Summary(pl): Modu³ perla SDL
+Name: perl-SDL
+Version: 1.14
+Release: 1
+License: LGPL
+Group: Development/Languages/Perl
+Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/SDL/SDL_perl-%{version}.tar.gz
+Patch0: %{name}-detection.patch
+BuildRequires: OpenGL-devel
+BuildRequires: SDL-devel
+BuildRequires: SDL_mixer-devel
+BuildRequires: SDL_net-devel
+BuildRequires: SDL_ttf-devel
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
+BuildRequires: glut-devel
+BuildRequires: perl >= 5.6
+BuildRequires: rpm-perlprov >= 3.0.3-16
+Provides: perl(SDL::OpenGL)
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+SDL_perl is a package of perl modules that provides both functional
+and object orient interfaces to the Simple DirectMedia Layer for Perl
+5. This package does take some liberties with the SDL API, and
+attempts to adhere to the spirit of both the SDL and Perl.
+
+%prep
+%setup -q -n SDL_perl-%{version}
+%patch0 -p1
+
+%build
+perl Makefile.PL
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc BUGS CHANGELOG SFont-README TODO
+%{perl_sitearch}/SDL*
+%{perl_sitearch}/auto/SDL*