Run mklocale only if not bootstrapping
This commit is contained in:
parent
d5fe49a487
commit
81eeeee30f
@ -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@redhat.com> 1.12-348
|
||||
- Specfile autogenerated by cpanspec 1.78.
|
||||
- Run mklocale only if not bootstrapping
|
||||
|
||||
Loading…
Reference in New Issue
Block a user