rpms/perl-SDL/devel filter-depends.sh, NONE, 1.1 filter-provides.sh, NONE, 1.1 perl-SDL-gfxPie.patch, NONE, 1.1 perl-SDL-no-mixertest.patch, NONE, 1.1 perl-SDL.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Hans de Goede (jwrdegoede) fedora-extras-commits at redhat.com
Wed Aug 16 10:10:25 UTC 2006


Author: jwrdegoede

Update of /cvs/extras/rpms/perl-SDL/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26282/devel

Modified Files:
	.cvsignore sources 
Added Files:
	filter-depends.sh filter-provides.sh perl-SDL-gfxPie.patch 
	perl-SDL-no-mixertest.patch perl-SDL.spec 
Log Message:
auto-import perl-SDL-2.1.3-2 on branch devel from perl-SDL-2.1.3-2.src.rpm


--- NEW FILE filter-depends.sh ---
#!/bin/sh
/usr/lib/rpm/redhat/find-requires "$@" | grep -v Pod::ToDemo


--- NEW FILE filter-provides.sh ---
#!/bin/sh
/usr/lib/rpm/redhat/find-provides "$@" | \
  grep -vE 'perl\(main\)|perl\(Walker\)'

perl-SDL-gfxPie.patch:

--- NEW FILE perl-SDL-gfxPie.patch ---
--- src/SDL.xs~	2003-03-27 12:17:23.000000000 +0200
+++ src/SDL.xs	2005-02-25 20:32:07.353170226 +0200
@@ -71,6 +71,7 @@
 #include <SDL_gfxPrimitives.h>
 #include <SDL_framerate.h>
 #include <SDL_imageFilter.h>
+#define PERL_SDL_GFXVERSION SDL_VERSIONNUM(SDL_GFXPRIMITIVES_MAJOR,SDL_GFXPRIMITIVES_MINOR,SDL_GFXPRIMITIVES_MICRO)
 #endif
 
 #ifdef USE_THREADS
@@ -3742,7 +3743,11 @@
     Sint16 end;
     Uint32 color;
 CODE:
+#if PERL_SDL_GFXVERSION >= 2012
+     RETVAL = filledPieColor( dst, x, y, rad, start, end, color );
+#else
      RETVAL = filledpieColor( dst, x, y, rad, start, end, color );
+#endif
 OUTPUT:
      RETVAL
 
@@ -3759,7 +3764,11 @@
     Uint8 b;
     Uint8 a;
 CODE:
+#if PERL_SDL_GFXVERSION >= 2012
+     RETVAL = filledPieRGBA( dst, x, y, rad, start, end, r, g, b, a );
+#else
      RETVAL = filledpieRGBA( dst, x, y, rad, start, end, r, g, b, a );
+#endif
 OUTPUT:
      RETVAL
 

perl-SDL-no-mixertest.patch:

--- NEW FILE perl-SDL-no-mixertest.patch ---
--- SDL_Perl-2.1.3/t/mixerpm.t.no-mixertest	2005-10-05 11:25:49.000000000 +0200
+++ SDL_Perl-2.1.3/t/mixerpm.t	2006-08-15 08:42:41.000000000 +0200
@@ -16,7 +16,7 @@
 use Test::More;
 
 if ( SDL::Config->has('SDL_mixer') ) {
-	plan ( tests => 3 );
+	plan ( tests => 2 );
 } else {
 	plan ( skip_all => 'SDL_mixer support not compiled' );
 }
@@ -59,9 +59,3 @@
 	playing
 	playing_music
 	/);
-
-# these are exported by default, so main:: should know them:
-SDL::Init(SDL_INIT_AUDIO);
-my $mixer = SDL::Mixer->new();
-isa_ok($mixer, 'SDL::Mixer');
-


--- NEW FILE perl-SDL.spec ---
Name:           perl-SDL
Version:        2.1.3
Release:        2%{?dist}
Summary:        SDL bindings for the Perl language
Group:          Development/Libraries
License:        LGPL
URL:            http://sdl.perl.org/
Source0:        http://search.cpan.org/CPAN/authors/id/D/DG/DGOEHRIG/SDL_Perl-%{version}.tar.gz
Source1:        filter-depends.sh
Source2:        filter-provides.sh
Patch0:         http://ftp.debian.org/debian/pool/main/s/sdlperl/sdlperl_2.1.2-1.diff.gz
Patch1:         %{name}-no-mixertest.patch
Patch2:         %{name}-gfxPie.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  SDL_mixer-devel SDL_image-devel SDL_net-devel SDL_ttf-devel
BuildRequires:  SDL_gfx-devel libjpeg-devel libpng-devel libGLU-devel perl
BuildRequires:  perl(Module::Build) perl(YAML)
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

# hack filter wrong perl(Pod::ToDemo) Requires out of autogenerated Requires
# and wrong perl(main), perl(Walker) out of Provides
%define _use_internal_dependency_generator 0
%define __find_requires %{SOURCE1}
%define __find_provides %{SOURCE2}

%description
SDL (Simple DirectMedia Layer) bindings for the perl language.


%prep
%setup -q -n SDL_Perl-%{version}
%patch0 -p1
# Cherry pick the debian patches we want
patch -p1 -b -z .deb < debian/patches/030_glu_nurbs.diff
patch -p1 < debian/patches/030_opengl_fixes.diff
%patch1 -p1 -z .no-mixertest
%patch2 -p0 -z .gfxPie


%build
perl Build.PL
./Build
# <sigh> I don't know why but for some reason these dirs get put under
# blib/arch/auto/src instead of blib/arch/auto causing them to be installed
# in the wrong location and "./Build test" to fail. We copy them because if
# we move them the next call to ./Build will recreate them in the wrong
# location anyways. Unfortunatly with the copy the wrong located originals
# will also end up getting installed so we must remove those in %%install
cp -r blib/arch/auto/src/SDL* blib/arch/auto


%check
./Build test


%install
rm -rf $RPM_BUILD_ROOT
./Build install installdirs=vendor destdir=$RPM_BUILD_ROOT
rm -fr $RPM_BUILD_ROOT%{perl_vendorarch}/auto/src
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc BUGS CHANGELOG COPYING README TODO
%{perl_vendorarch}/auto/SDL*
%{perl_vendorarch}/SDL*
%{_mandir}/man3/SDL*.3*


%changelog
* Wed Aug 16 2006 Hans de Goede <j.w.r.degoede at hhs.nl> 2.1.3-2
- Filter wrong perl(main) and perl(Walker) out of Provides

* Tue Aug 15 2006 Hans de Goede <j.w.r.degoede at hhs.nl> 2.1.3-1
- Major new upstream version 2.1.3
- Thanks to the rpmforge crew for the filter depends hack!

* Mon Aug 14 2006 Hans de Goede <j.w.r.degoede at hhs.nl> 1.20.3-8
- Submit to Fedora Extras since it will build without the patented smpeg
  and none of the packages currently using perl-SDL need the smpeg part.
- Drop smpeg BR (see above).
- Cleanup BR's a bit to match FE-guidelines

* Sat Mar 18 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.20.3-7
- Sync with Debian's 1.20.3-4.
- Default SDL_mixer tests to off.

* Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> 1.20.3-6
- switch to new release field
- fix BR

* Tue Feb 28 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
- add dist

* Thu Sep 29 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.20.3-0.lvn.5
- Clean up obsolete pre-FC3 support (SDL_gfx support is now unconditional).
- Drop zero Epochs.

* Mon Jul  4 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.20.3-0.lvn.4
- Clean up obsolete pre-FC2 support.

* Fri Feb 25 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.20.3-0.lvn.3
- Build with SDL_gfx support by default, add "--without gfx" build option.
- Patch to sync with SDL_gfx >= 2.0.12 API changes (bug 374).

* Sun Jul 11 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.20.3-0.lvn.2
- Add "--without mixertest" build option for build roots without audio devices,
  and "--without tests" option to disable tests altogether, needed in FC1
  due to buggy libtiff package (bug 107).

* Sat Jul  3 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.20.3-0.lvn.1
- Update to 1.20.3.
- Clean up list of searched include dirs.

* Wed Jun 30 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.20.0-0.lvn.4
- Partial specfile rewrite according to current fedora.us Perl spec template.
- Use tarball + patch from Debian.
- Borrow libGLU fix from Ian Burrell and Matthias Saou, and adjust it a bit:
  http://lists.freshrpms.net/pipermail/freshrpms-list/2003-December/006843.html
- BuildRequire SDL_ttf-devel.

* Fri Jun 27 2003 Phillip Compton <pcompton at proteinmedia dot com> 0:1.20.0-0.fdr.3
- Applied patch to spec from Ville Skyttä changeing:
- BuildRequires: smpeg-devel.
- Run make tesst during build.
- Get rid of unneeded files in installation directories.
- Make installed files writable so that non-root strip works.

* Sun Jun 22 2003 Phillip Compton <pcompton at proteinmedia dot com> 0:1.20.0-0.fdr.2
- Used cpanflute2 to redo the build and install sections.

* Tue May 27 2003 Phillip Compton <pcompton at proteinmedia dot com> 0:1.20.0-0.fdr.1
- Fedorafied

* Mon Mar 31 2003 Matthias Saou <matthias.saou at est.une.marmotte.net>
- Rebuilt for Red Hat Linux 9.

* Mon Feb 17 2003 Matthias Saou <matthias.saou at est.une.marmotte.net>
- Update to 1.20.0.

* Mon Oct 28 2002 Matthias Saou <matthias.saou at est.une.marmotte.net>
- Update to 1.19.0.
- Major spec file adaptation :-/

* Fri Sep 20 2002 Matthias Saou <matthias.saou at est.une.marmotte.net>
- Update to 1.18.7.
- Minor spec cleanups.

* Mon Apr 15 2002 Matthias Saou <matthias.saou at est.une.marmotte.net>
- Update to 1.16.

* Thu Feb  7 2002 Matthias Saou <matthias.saou at est.une.marmotte.net>
- Initial RPM release.


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/perl-SDL/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	16 Aug 2006 10:09:02 -0000	1.1
+++ .cvsignore	16 Aug 2006 10:10:25 -0000	1.2
@@ -0,0 +1,2 @@
+SDL_Perl-2.1.3.tar.gz
+sdlperl_2.1.2-1.diff.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-SDL/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	16 Aug 2006 10:09:02 -0000	1.1
+++ sources	16 Aug 2006 10:10:25 -0000	1.2
@@ -0,0 +1,2 @@
+6ce26e1b710ce52def4ec22637cd5176  SDL_Perl-2.1.3.tar.gz
+726952ce300a650ec6c9d05085fcc0fb  sdlperl_2.1.2-1.diff.gz




More information about the fedora-extras-commits mailing list