97ca474
Name:           perl-SDL
97ca474
Version:        2.1.3
609414b
Release:        10%{?dist}
97ca474
Summary:        SDL bindings for the Perl language
97ca474
Group:          Development/Libraries
92f53b8
License:        LGPLv2+
97ca474
URL:            http://sdl.perl.org/
97ca474
Source0:        http://search.cpan.org/CPAN/authors/id/D/DG/DGOEHRIG/SDL_Perl-%{version}.tar.gz
97ca474
Source1:        filter-depends.sh
97ca474
Source2:        filter-provides.sh
97ca474
Patch0:         http://ftp.debian.org/debian/pool/main/s/sdlperl/sdlperl_2.1.2-1.diff.gz
97ca474
Patch1:         %{name}-no-mixertest.patch
97ca474
Patch2:         %{name}-gfxPie.patch
97ca474
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
97ca474
BuildRequires:  SDL_mixer-devel SDL_image-devel SDL_net-devel SDL_ttf-devel
97ca474
BuildRequires:  SDL_gfx-devel libjpeg-devel libpng-devel libGLU-devel perl
92f53b8
BuildRequires:  perl(Module::Build) perl(YAML) perl(Test::More)
97ca474
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
97ca474
97ca474
# hack filter wrong perl(Pod::ToDemo) Requires out of autogenerated Requires
97ca474
# and wrong perl(main), perl(Walker) out of Provides
97ca474
%define _use_internal_dependency_generator 0
97ca474
%define __find_requires %{SOURCE1}
97ca474
%define __find_provides %{SOURCE2}
97ca474
97ca474
%description
97ca474
SDL (Simple DirectMedia Layer) bindings for the perl language.
97ca474
97ca474
97ca474
%prep
97ca474
%setup -q -n SDL_Perl-%{version}
97ca474
%patch0 -p1
97ca474
# Cherry pick the debian patches we want
97ca474
patch -p1 -b -z .deb < debian/patches/030_glu_nurbs.diff
97ca474
patch -p1 < debian/patches/030_opengl_fixes.diff
97ca474
%patch1 -p1 -z .no-mixertest
97ca474
%patch2 -p0 -z .gfxPie
97ca474
97ca474
97ca474
%build
97ca474
perl Build.PL
97ca474
./Build
97ca474
# <sigh> I don't know why but for some reason these dirs get put under
97ca474
# blib/arch/auto/src instead of blib/arch/auto causing them to be installed
97ca474
# in the wrong location and "./Build test" to fail. We copy them because if
97ca474
# we move them the next call to ./Build will recreate them in the wrong
97ca474
# location anyways. Unfortunatly with the copy the wrong located originals
97ca474
# will also end up getting installed so we must remove those in %%install
97ca474
cp -r blib/arch/auto/src/SDL* blib/arch/auto
97ca474
97ca474
97ca474
%check
97ca474
./Build test
97ca474
97ca474
97ca474
%install
97ca474
rm -rf $RPM_BUILD_ROOT
97ca474
./Build install installdirs=vendor destdir=$RPM_BUILD_ROOT
97ca474
rm -fr $RPM_BUILD_ROOT%{perl_vendorarch}/auto/src
97ca474
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
97ca474
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
97ca474
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
97ca474
chmod -R u+w $RPM_BUILD_ROOT/*
97ca474
97ca474
97ca474
%clean
97ca474
rm -rf $RPM_BUILD_ROOT
97ca474
97ca474
97ca474
%files
97ca474
%defattr(-,root,root,-)
97ca474
%doc BUGS CHANGELOG COPYING README TODO
97ca474
%{perl_vendorarch}/auto/SDL*
97ca474
%{perl_vendorarch}/SDL*
97ca474
%{_mandir}/man3/SDL*.3*
97ca474
97ca474
97ca474
%changelog
609414b
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.3-10
609414b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
609414b
39851f3
* Mon Mar  3 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.1.3-9
39851f3
- rebuild for new perl (again)
39851f3
382ffea
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.1.3-8
382ffea
- Autorebuild for GCC 4.3
382ffea
38ef0f2
* Thu Feb  7 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.1.3-7
38ef0f2
- rebuild for new perl
38ef0f2
ddb84ed
* Wed Aug 22 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.1.3-6
ddb84ed
- Rebuild for buildId
ddb84ed
92f53b8
* Sun Aug 12 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.1.3-5
92f53b8
- Update License tag for new Licensing Guidelines compliance
92f53b8
- Add BuildRequires: perl(Test::More) to fix building with the new splitup
92f53b8
  perl
92f53b8
475d328
* Tue Jun 19 2007 Matthias Saou <http://freshrpms.net/> 2.1.3-4
475d328
- Rebuild against SDL_gfx 2.0.16.
475d328
84cae9b
* Mon Aug 28 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 2.1.3-3
84cae9b
- FE6 Rebuild
84cae9b
97ca474
* Wed Aug 16 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 2.1.3-2
97ca474
- Filter wrong perl(main) and perl(Walker) out of Provides
97ca474
97ca474
* Tue Aug 15 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 2.1.3-1
97ca474
- Major new upstream version 2.1.3
97ca474
- Thanks to the rpmforge crew for the filter depends hack!
97ca474
97ca474
* Mon Aug 14 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.20.3-8
97ca474
- Submit to Fedora Extras since it will build without the patented smpeg
97ca474
  and none of the packages currently using perl-SDL need the smpeg part.
97ca474
- Drop smpeg BR (see above).
97ca474
- Cleanup BR's a bit to match FE-guidelines
97ca474
97ca474
* Sat Mar 18 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.20.3-7
97ca474
- Sync with Debian's 1.20.3-4.
97ca474
- Default SDL_mixer tests to off.
97ca474
97ca474
* Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> 1.20.3-6
97ca474
- switch to new release field
97ca474
- fix BR
97ca474
97ca474
* Tue Feb 28 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
97ca474
- add dist
97ca474
97ca474
* Thu Sep 29 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.20.3-0.lvn.5
97ca474
- Clean up obsolete pre-FC3 support (SDL_gfx support is now unconditional).
97ca474
- Drop zero Epochs.
97ca474
97ca474
* Mon Jul  4 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.20.3-0.lvn.4
97ca474
- Clean up obsolete pre-FC2 support.
97ca474
97ca474
* Fri Feb 25 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.20.3-0.lvn.3
97ca474
- Build with SDL_gfx support by default, add "--without gfx" build option.
97ca474
- Patch to sync with SDL_gfx >= 2.0.12 API changes (bug 374).
97ca474
97ca474
* Sun Jul 11 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.20.3-0.lvn.2
97ca474
- Add "--without mixertest" build option for build roots without audio devices,
97ca474
  and "--without tests" option to disable tests altogether, needed in FC1
97ca474
  due to buggy libtiff package (bug 107).
97ca474
97ca474
* Sat Jul  3 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.20.3-0.lvn.1
97ca474
- Update to 1.20.3.
97ca474
- Clean up list of searched include dirs.
97ca474
97ca474
* Wed Jun 30 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.20.0-0.lvn.4
97ca474
- Partial specfile rewrite according to current fedora.us Perl spec template.
97ca474
- Use tarball + patch from Debian.
97ca474
- Borrow libGLU fix from Ian Burrell and Matthias Saou, and adjust it a bit:
97ca474
  http://lists.freshrpms.net/pipermail/freshrpms-list/2003-December/006843.html
97ca474
- BuildRequire SDL_ttf-devel.
97ca474
97ca474
* Fri Jun 27 2003 Phillip Compton <pcompton at proteinmedia dot com> 0:1.20.0-0.fdr.3
97ca474
- Applied patch to spec from Ville Skyttä changeing:
97ca474
- BuildRequires: smpeg-devel.
97ca474
- Run make tesst during build.
97ca474
- Get rid of unneeded files in installation directories.
97ca474
- Make installed files writable so that non-root strip works.
97ca474
97ca474
* Sun Jun 22 2003 Phillip Compton <pcompton at proteinmedia dot com> 0:1.20.0-0.fdr.2
97ca474
- Used cpanflute2 to redo the build and install sections.
97ca474
97ca474
* Tue May 27 2003 Phillip Compton <pcompton at proteinmedia dot com> 0:1.20.0-0.fdr.1
97ca474
- Fedorafied
97ca474
97ca474
* Mon Mar 31 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
97ca474
- Rebuilt for Red Hat Linux 9.
97ca474
97ca474
* Mon Feb 17 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
97ca474
- Update to 1.20.0.
97ca474
97ca474
* Mon Oct 28 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
97ca474
- Update to 1.19.0.
97ca474
- Major spec file adaptation :-/
97ca474
97ca474
* Fri Sep 20 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
97ca474
- Update to 1.18.7.
97ca474
- Minor spec cleanups.
97ca474
97ca474
* Mon Apr 15 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
97ca474
- Update to 1.16.
97ca474
97ca474
* Thu Feb  7 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
97ca474
- Initial RPM release.