diff --git a/README.md b/README.md index fa2ea56..689d83f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # perl-SDL +SDL_perl provides multimedia programming support for perl through use of the Simple DirectMedia Layer http://www.libsdl.org. +It provides both a high level, object orient develpment framework, and a low level C style API. +SDL_perl supports a variety of additional SDL libraries, such as SDL_image, SDL_mixer, SDL_ttf, and SDL_net. + diff --git a/perl-SDL-2.540-perl-5.16.2.patch b/perl-SDL-2.540-perl-5.16.2.patch new file mode 100644 index 0000000..c94d248 --- /dev/null +++ b/perl-SDL-2.540-perl-5.16.2.patch @@ -0,0 +1,24 @@ +diff -Nru SDL-2.540.orig/META.json SDL-2.540/META.json +--- SDL-2.540.orig/META.json 2012-05-26 22:42:34.000000000 +0200 ++++ SDL-2.540/META.json 2013-02-18 12:40:54.408542995 +0100 +@@ -34,7 +34,7 @@ + "ExtUtils::CBuilder" : "0.260301", + "File::Find" : "0", + "File::ShareDir" : "1.0", +- "Module::Build" : "0.4", ++ "Module::Build" : "0.3901", + "Tie::Simple" : "0" + } + }, +diff -Nru SDL-2.540.orig/META.yml SDL-2.540/META.yml +--- SDL-2.540.orig/META.yml 2012-05-26 22:42:35.000000000 +0200 ++++ SDL-2.540/META.yml 2013-02-18 12:41:12.420353641 +0100 +@@ -18,7 +18,7 @@ + ExtUtils::CBuilder: 0.260301 + File::Find: 0 + File::ShareDir: 1.0 +- Module::Build: 0.4 ++ Module::Build: 0.3901 + Tie::Simple: 0 + dynamic_config: 1 + generated_by: 'Module::Build version 0.4, CPAN::Meta::Converter version 2.120630' diff --git a/perl-SDL.spec b/perl-SDL.spec new file mode 100644 index 0000000..e2e5b17 --- /dev/null +++ b/perl-SDL.spec @@ -0,0 +1,122 @@ +Name: perl-SDL +Version: 2.541_10 +Release: 2mamba +Summary: SDL_perl Multimedia Perl Extension +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://bloodgate.com/perl/sdl/sdl_perl.html +Source: http://search.cpan.org/CPAN/authors/id/J/JT/JTPALMER/SDL-%{version}.tar.gz +Patch0: perl-SDL-2.540-perl-5.16.2.patch +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libSDL-devel +BuildRequires: libSDL_gfx-devel +BuildRequires: libSDL_image-devel +BuildRequires: libSDL_mixer-devel +BuildRequires: libSDL_Pango-devel +BuildRequires: libSDL_ttf-devel +BuildRequires: perl-Alien-SDL +BuildRequires: perl-Archive-Zip +BuildRequires: perl-devel +BuildRequires: perl-Tie-Simple +## AUTOBUILDREQ-END +# required if create a new build +BuildRequires: perl-Module-Build +BuildRequires: perl-ExtUtils-CBuilder +BuildRequires: perl-YAML +BuildRequires: perl-Test-Most +BuildRequires: perl-Alien-SDL >= 1.440-2mamba +Provides: perl(SDL::Constants),perl(SDL::OpenGL::Constants) +Provides: SDL_perl +Obsoletes: SDL_perl +Provides: SDL_Perl +Obsoletes: SDL_Perl +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +# FIXME: checks for `CON_console.h' not provided by `libSDL_console-devel' + +%description +SDL_perl provides multimedia programming support for perl through use of the Simple DirectMedia Layer http://www.libsdl.org. +It provides both a high level, object orient develpment framework, and a low level C style API. +SDL_perl supports a variety of additional SDL libraries, such as SDL_image, SDL_mixer, SDL_ttf, and SDL_net. + +%prep +%setup -q -n SDL-%{version} +#%patch0 -p1 + +%build +perl Build.PL installdirs=vendor +./Build +#./Build test + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +./Build install --destdir=%{buildroot} + +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%{buildroot},,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm -f $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%files -f .packlist +%defattr(-,root,root) +%doc COPYING +#CHANGELOG README TODO + +%changelog +* Thu Jul 18 2013 Silvan Calarco 2.541_10-2mamba +- rebuilt with libSDL_gfx 2.0.24 which means rebuilt with updated perl-Alien-SDL + +* Thu Mar 07 2013 Automatic Build System 2.541_10-1mamba +- automatic version update by autodist + +* Fri Feb 08 2013 Automatic Build System 2.540-1mamba +- update to 2.540 + +* Mon Nov 12 2012 Silvan Calarco 2.2.6-4mamba +- perl 5.16 mass rebuild + +* Fri Dec 16 2011 Silvan Calarco 2.2.6-3mamba +- rebuilt with libSDL_gfx 2.0.23 + +* Sun Oct 24 2010 Davide Madrisan 2.2.6-2mamba +- rebuilt with installdirs=vendor + +* Sat Jul 03 2010 Silvan Calarco 2.2.6-1mamba +- update to 2.2.6 + +* Tue Aug 11 2009 Automatic Build System 2.2.0-1mamba +- automatic update by autodist + +* Wed Nov 05 2008 Silvan Calarco 2.1.3-3mamba +- automatic rebuild by autodist + +* Sun Jul 13 2008 gil 2.1.3-2mamba +- removed: LD_LIBRARY_PATH, Build test (rebuild failed) +- new buildrequires: perl-Module-Build, perl-ExtUtils-CBuilder, perl-YAML + +* Tue Jul 01 2008 Silvan Calarco 2.1.3-1mamba +- update to 2.1.3 +- rename to perl-SDL; provide SDL_perl and SDL_Perl + +* Fri Jun 10 2005 Alessandro Ramazzina 1.20.3-1qilnx +- update to version 1.20.3 by autospec + +* Thu Nov 11 2004 Davide Madrisan 1.19.2-2qilnx +- rebuild and moved to devel official QiLinux repository +- added missing build requirements +- specfile rewritten to use the standard for perl packages + +* Wed Sep 08 2004 Matteo Bernasconi 1.19.2-1qilnx +- first build