56b18f
Name:           perl-Unicode-Collate
56b18f
Version:        1.25
56b18f
Release:        2%{?dist}
56b18f
Summary:        Unicode Collation Algorithm
56b18f
# Collate/allkeys.txt:  Unicode (the file contains a link to
56b18f
#                       <http: www.unicode.org="" terms_of_use.html="">)
56b18f
# other files:          GPL+ or Artistic
56b18f
License:        (GPL+ or Artistic) and Unicode
56b18f
URL:            http://search.cpan.org/dist/Unicode-Collate/
56b18f
Source0:        http://www.cpan.org/authors/id/S/SA/SADAHIRO/Unicode-Collate-%{version}.tar.gz
56b18f
BuildRequires:  coreutils
56b18f
BuildRequires:  gcc
56b18f
BuildRequires:  findutils
56b18f
BuildRequires:  make
56b18f
BuildRequires:  perl-devel
56b18f
BuildRequires:  perl-generators
56b18f
BuildRequires:  perl-interpreter
56b18f
BuildRequires:  perl(Carp)
56b18f
BuildRequires:  perl(constant)
56b18f
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
56b18f
BuildRequires:  perl(File::Spec)
56b18f
BuildRequires:  perl(strict)
56b18f
BuildRequires:  perl(warnings)
56b18f
# Run-time:
56b18f
BuildRequires:  perl(base)
56b18f
BuildRequires:  perl(Unicode::Normalize)
56b18f
BuildRequires:  perl(XSLoader)
56b18f
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
56b18f
Requires:       perl(Unicode::Normalize)
56b18f
Conflicts:      perl < 4:5.22.0-347
56b18f
56b18f
%description
56b18f
This package is Perl implementation of Unicode Technical Standard #10 (Unicode
56b18f
Collation Algorithm).
56b18f
56b18f
%prep
56b18f
%setup -q -n Unicode-Collate-%{version}
56b18f
56b18f
# Remove pregenerated files
56b18f
rm Collate/Locale/*
56b18f
# Collate/CJK/Korean.pm is input for mklocale script, do not remove it here
56b18f
56b18f
%build
56b18f
# Regenerate code from Collate/allkeys.txt whose authority is
56b18f
# <http: www.unicode.org="" public="" uca="" latest="" allkeys.txt="">
56b18f
perl mklocale
56b18f
mv Locale/*.pl Collate/Locale
56b18f
mv Korean.pm Collate/CJK
56b18f
56b18f
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
56b18f
make %{?_smp_mflags}
56b18f
56b18f
%install
56b18f
make pure_install DESTDIR=$RPM_BUILD_ROOT
56b18f
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
56b18f
%{_fixperms} $RPM_BUILD_ROOT/*
56b18f
56b18f
%check
56b18f
make test
56b18f
56b18f
%files
56b18f
%doc Changes README
56b18f
%{perl_vendorarch}/auto/*
56b18f
%{perl_vendorarch}/Unicode*
56b18f
%{_mandir}/man3/*
56b18f
56b18f
%changelog
56b18f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.25-2
56b18f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
56b18f
56b18f
* Thu Nov 23 2017 Petr Pisar <ppisar@redhat.com> - 1.25-1
56b18f
- 1.25 bump
56b18f
56b18f
* Tue Nov 21 2017 Petr Pisar <ppisar@redhat.com> - 1.24-1
56b18f
- 1.24 bump
56b18f
56b18f
* Mon Nov 13 2017 Petr Pisar <ppisar@redhat.com> - 1.23-1
56b18f
- 1.23 bump
56b18f
56b18f
* Mon Nov 06 2017 Petr Pisar <ppisar@redhat.com> - 1.21-1
56b18f
- 1.21 bump
56b18f
56b18f
* Fri Nov 03 2017 Petr Pisar <ppisar@redhat.com> - 1.20-1
56b18f
- 1.20 bump
56b18f
56b18f
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.19-395
56b18f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
56b18f
56b18f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.19-394
56b18f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
56b18f
56b18f
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.19-393
56b18f
- Perl 5.26 rebuild
56b18f
56b18f
* Mon May 15 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.19-3
56b18f
- Fixes for removal '.' from @INC in Perl 5.26
56b18f
56b18f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.19-2
56b18f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
56b18f
56b18f
* Mon Dec 05 2016 Petr Pisar <ppisar@redhat.com> - 1.19-1
56b18f
- 1.19 bump
56b18f
56b18f
* Tue Nov 08 2016 Petr Pisar <ppisar@redhat.com> - 1.18-1
56b18f
- 1.18 bump
56b18f
56b18f
* Mon Oct 31 2016 Petr Pisar <ppisar@redhat.com> - 1.17-1
56b18f
- 1.17 bump
56b18f
56b18f
* Wed Oct 26 2016 Petr Pisar <ppisar@redhat.com> - 1.16-1
56b18f
- 1.16 bump
56b18f
56b18f
* Mon Oct 24 2016 Petr Pisar <ppisar@redhat.com> - 1.15-1
56b18f
- 1.15 bump
56b18f
56b18f
* Mon Sep 19 2016 Petr Pisar <ppisar@redhat.com> - 1.14-366
56b18f
- License corrected to ((GPL+ or Artistic) and Unicode)
56b18f
56b18f
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.14-365
56b18f
- Increase release to favour standalone package
56b18f
56b18f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.14-2
56b18f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
56b18f
56b18f
* Mon Jul 13 2015 Petr Pisar <ppisar@redhat.com> - 1.14-1
56b18f
- 1.14 bump
56b18f
56b18f
* Thu Jul 02 2015 Petr Pisar <ppisar@redhat.com> 1.12-348
56b18f
- Specfile autogenerated by cpanspec 1.78.
56b18f
- Run mklocale only if not bootstrapping