[perl-SDL] Update to 2.540

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit f8547ff387cc6b04828f77fac1e712ee1e5fa4cd
Author: Petr Šabata <contyk@xxxxxxxxxx>
Date:   Thu Jul 12 14:37:49 2012 +0200

    Update to 2.540
    
    Mostly rewritten.  Thanks to Jitka Plesníková.

 .gitignore    |    1 +
 perl-SDL.spec |  103 ++++++++++++++++++++++++++++++++++++++------------------
 sources       |    2 +-
 3 files changed, 72 insertions(+), 34 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 25f0fb2..dec5a48 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 SDL_Perl-2.1.3.tar.gz
 sdlperl_2.1.2-1.diff.gz
 /SDL_Perl-v2.2.6.tar.gz
+/SDL-2.540.tar.gz
diff --git a/perl-SDL.spec b/perl-SDL.spec
index 32bcd5f..7999454 100644
--- a/perl-SDL.spec
+++ b/perl-SDL.spec
@@ -1,59 +1,96 @@
 Name:           perl-SDL
-Version:        2.2.6
-Release:        7%{?dist}
-Summary:        SDL bindings for the Perl language
+Version:        2.540
+Release:        1%{?dist}
+Summary:        Simple DirectMedia Layer for Perl
 Group:          Development/Libraries
 License:        LGPLv2+
 URL:            http://sdl.perl.org/
-Source0:        http://search.cpan.org/CPAN/authors/id/K/KT/KTHAKORE/SDL_Perl-v%{version}.tar.gz
-Source1:        filter-depends.sh
-Source2:        filter-provides.sh
-Patch1:         %{name}-no-mixertest.patch
-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) perl(Test::More)
-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
+Source0:        http://www.cpan.org/authors/id/J/JT/JTPALMER/SDL-%{version}.tar.gz
+
+BuildRequires:  libGLU-devel
+BuildRequires:  libjpeg-devel
+BuildRequires:  libpng-devel
+BuildRequires:  SDL_gfx-devel
+BuildRequires:  SDL_image-devel
+BuildRequires:  SDL_mixer-devel
+BuildRequires:  SDL_net-devel
+BuildRequires:  SDL_Pango-devel
+BuildRequires:  SDL_ttf-devel
+BuildRequires:  perl >= 0:5.008000
+BuildRequires:  perl(Alien::SDL) >= 1.426
+BuildRequires:  perl(Archive::Zip)
+BuildRequires:  perl(base)
+BuildRequires:  perl(Capture::Tiny)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(constant)
+BuildRequires:  perl(CPAN) >= 1.92
+BuildRequires:  perl(Data::Dumper)
+BuildRequires:  perl(Encode)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(ExtUtils::CBuilder)
+BuildRequires:  perl(File::ShareDir) >= 1.0
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(lib)
+BuildRequires:  perl(List::Util)
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Scalar::Util)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Test::Most) >= 0.21
+BuildRequires:  perl(Test::Simple) >= 0.88
+BuildRequires:  perl(threads)
+BuildRequires:  perl(threads::shared)
+BuildRequires:  perl(Tie::Simple)
+BuildRequires:  perl(Time::HiRes)
+Requires:       perl(CPAN) >= 1.92
+Requires:       perl(File::ShareDir) >= 1.0
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
 %define _use_internal_dependency_generator 0
-%define __find_requires %{SOURCE1}
-%define __find_provides %{SOURCE2}
+%{?perl_default_filter}
 
 %description
-SDL (Simple DirectMedia Layer) bindings for the perl language.
-
+SDL_perl is a package of Perl modules that provide both functional and
+object oriented interfaces to the Simple DirectMedia Layer for Perl 5. This
+package takes 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-v%{version}
-%patch1 -p1 -z .no-mixertest
-
+%setup -q -n SDL-%{version}
+# Move the pod files directly to directory lib to have correctly generated
+# man pages without prefix pods::
+cd lib/pods
+find * -type d -exec mkdir -p ../{} \;
+find * -type f -exec mv {} ../{} \;
+cd ..
+rm -r pods
+cd ..
+sed -i -e 's|lib/pods|lib|' MANIFEST
 
 %build
-perl Build.PL
+%{__perl} Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS"
 ./Build
 
-
 %check
 ./Build test
 
-
 %install
-./Build install installdirs=vendor destdir=$RPM_BUILD_ROOT
-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 {} ';'
-chmod -R u+w $RPM_BUILD_ROOT/*
-
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+%{_fixperms} $RPM_BUILD_ROOT/*
 
 %files
-%defattr(-,root,root,-)
-%doc BUGS CHANGELOG COPYING README TODO
-%{perl_vendorarch}/auto/SDL*
+%doc CHANGELOG COPYING README TODO
+%{perl_vendorarch}/auto/*
 %{perl_vendorarch}/SDL*
-%{_mandir}/man3/SDL*.3*
+%{perl_vendorarch}/Module*
+%{_mandir}/man3/*
 
 
 %changelog
+* Wed Jul 04 2012 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 2.540-1
+- Update to 2.540
+
 * Mon Jun 11 2012 Petr Pisar <ppisar@xxxxxxxxxx> - 2.2.6-7
 - Perl 5.16 rebuild
 
diff --git a/sources b/sources
index 31a8e2b..70ca9f9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-445950ca7b9991f34ec792bbac8386b6  SDL_Perl-v2.2.6.tar.gz
+1a5d7849cbdfde4982b28458e38ab172  SDL-2.540.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux