ppisar pushed to perl-SDL (master). "Move Module::Build::SDL to perl-Module-Build-SDL sub-package (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Wed Oct 14 15:20:26 UTC 2015


From c8f1374ff430db3ecbcef1ee3745cbdaaeb691c7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
Date: Wed, 14 Oct 2015 17:10:58 +0200
Subject: Move Module::Build::SDL to perl-Module-Build-SDL sub-package

This frees perl-SDL from dependencies on developmental packages like
Module::Build.
---
 perl-SDL.spec | 23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)

diff --git a/perl-SDL.spec b/perl-SDL.spec
index 7d2ad99..14c3ea4 100644
--- a/perl-SDL.spec
+++ b/perl-SDL.spec
@@ -58,7 +58,6 @@ BuildRequires:  perl(Test::Most) >= 0.21
 BuildRequires:  perl(threads)
 BuildRequires:  perl(threads::shared)
 Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
-Requires:       perl(ExtUtils::CBuilder::Base)
 Requires:       perl(File::ShareDir) >= 1.0
 
 %define _use_internal_dependency_generator 0
@@ -70,6 +69,19 @@ 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.
 
+
+%package -n perl-Module-Build-SDL
+Summary:        Module::Build subclass for building SDL applications
+Requires:       %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:       perl(ExtUtils::CBuilder::Base)
+
+%description -n perl-Module-Build-SDL
+Module::Build::SDL is a subclass of Module::Build created to make easy
+some tasks specific to SDL applications - e.g. packaging SDL
+application/game into PAR archive.
+
+
 %prep
 %setup -q -n SDL-%{version}
 # Move the pod files directly to directory lib to have correctly generated
@@ -99,15 +111,20 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %files
-%doc CHANGELOG COPYING TODO
+%license COPYING
+%doc CHANGELOG TODO
 %{perl_vendorarch}/auto/*
 %{perl_vendorarch}/SDL*
+%{_mandir}/man3/SDL*
+
+%files -n perl-Module-Build-SDL
 %{perl_vendorarch}/Module*
-%{_mandir}/man3/*
+%{_mandir}/man3/Module::*
 
 %changelog
 * Wed Oct 14 2015 Petr Pisar <ppisar at redhat.com> - 2.546-4
 - Specify all dependencies
+- Move Module::Build::SDL to perl-Module-Build-SDL sub-package
 
 * Thu Jun 18 2015 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.546-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
-- 
cgit v0.11.2


	http://pkgs.fedoraproject.org/cgit/perl-SDL.git/commit/?h=master&id=c8f1374ff430db3ecbcef1ee3745cbdaaeb691c7


More information about the perl-devel mailing list