ppisar pushed to perl-Unicode-Collate (master). "Run mklocale only if not bootstrapping"
notifications at fedoraproject.org
notifications at fedoraproject.org
Fri Jul 10 12:19:31 UTC 2015
From 81eeeee30fbab0c7a58e379707870b5a86f1484e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
Date: Fri, 10 Jul 2015 14:15:25 +0200
Subject: Run mklocale only if not bootstrapping
diff --git a/perl-Unicode-Collate.spec b/perl-Unicode-Collate.spec
index de72e11..6c213d3 100644
--- a/perl-Unicode-Collate.spec
+++ b/perl-Unicode-Collate.spec
@@ -17,6 +17,11 @@ BuildRequires: perl(constant)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(strict)
+%if !%{defined perl_bootstrap}
+# mklocale requires Korean.pm which uses Unicode::Collate, this is a cyclic
+# reflexive dependency, CPAN RT#105791
+BuildRequires: perl(Unicode::Collate)
+%endif
BuildRequires: perl(warnings)
# Run-time:
BuildRequires: perl(base)
@@ -33,16 +38,20 @@ Collation Algorithm).
%prep
%setup -q -n Unicode-Collate-%{version}
%patch0 -p1
+%if !%{defined perl_bootstrap}
# Remove pregenerated files
rm Collate/Locale/*
# Collate/CJK/Korean.pm is input for mklocale script, do not remove it here
+%endif
%build
+%if !%{defined perl_bootstrap}
# Regenerate code from Collate/allkeys.txt whose authority is
# <http://www.unicode.org/Public/UCA/latest/allkeys.txt>
perl mklocale
mv Locale/*.pl Collate/Locale
mv Korean.pm Collate/CJK
+%endif
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
@@ -65,3 +74,4 @@ make test
%changelog
* Thu Jul 02 2015 Petr Pisar <ppisar at redhat.com> 1.12-348
- Specfile autogenerated by cpanspec 1.78.
+- Run mklocale only if not bootstrapping
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-Unicode-Collate.git/commit/?h=master&id=81eeeee30fbab0c7a58e379707870b5a86f1484e
More information about the perl-devel
mailing list