From 819f1d3a8aaa52957e5cbc5c21291c84896938cb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Fri, 22 Jul 2016 08:30:05 +0200
Subject: Use distribution instead of perl version to control build-time
 dependencies

There is no perl in minimal SRPM build root.
---
 perl-Perl-OSType.spec | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/perl-Perl-OSType.spec b/perl-Perl-OSType.spec
index 01d71f4..aba04f8 100644
--- a/perl-Perl-OSType.spec
+++ b/perl-Perl-OSType.spec
@@ -2,15 +2,15 @@
 %global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 
0.88) ? 1 : 0);' 2>/dev/null || echo 0)
 
 # Select the appropriate system speller
-%if %(perl -e 'print (($] >= 5.010000) ? 1 : 0);')
-%global speller hunspell
-%else
+%if 0%{?rhel} && (0%{?rhel} < 6)
 %global speller aspell
+%else
+%global speller hunspell
 %endif
 
 Name:          perl-Perl-OSType
 Version:       1.010
-Release:       1%{?dist}
+Release:       2%{?dist}
 Summary:       Map Perl operating system names to generic types
 License:       GPL+ or Artistic
 Group:         Development/Libraries
@@ -112,6 +112,9 @@ rm -rf %{buildroot}
 %{_mandir}/man3/Perl::OSType.3*
 
 %changelog
+* Fri Jul 22 2016 Petr Pisar <ppi...@redhat.com> - 1.010-2
+- Use distribution instead of perl version to control build-time dependencies
+
 * Wed Jun 22 2016 Paul Howarth <p...@city-fan.org> - 1.010-1
 - Update to 1.010
   - Added 'msys' as a Unix-type OS
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Perl-OSType.git/commit/?h=master&id=819f1d3a8aaa52957e5cbc5c21291c84896938cb
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to