68 lines
2.0 KiB
RPMSpec
68 lines
2.0 KiB
RPMSpec
|
Name: perl-Unicode-Collate
|
||
|
Version: 1.12
|
||
|
Release: 348%{?dist}
|
||
|
Summary: Unicode Collation Algorithm
|
||
|
License: (GPL+ or Artistic) and UCD
|
||
|
Group: Development/Libraries
|
||
|
URL: http://search.cpan.org/dist/Unicode-Collate/
|
||
|
Source0: http://www.cpan.org/authors/id/S/SA/SADAHIRO/Unicode-Collate-%{version}.tar.gz
|
||
|
# Fix mklocale script, CPAN RT#105621
|
||
|
Patch0: Unicode-Collate-1.12-Create-Locale-directory-with-default-mask.patch
|
||
|
BuildRequires: coreutils
|
||
|
BuildRequires: findutils
|
||
|
BuildRequires: make
|
||
|
BuildRequires: perl
|
||
|
BuildRequires: perl(Carp)
|
||
|
BuildRequires: perl(constant)
|
||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||
|
BuildRequires: perl(File::Spec)
|
||
|
BuildRequires: perl(strict)
|
||
|
BuildRequires: perl(warnings)
|
||
|
# Run-time:
|
||
|
BuildRequires: perl(base)
|
||
|
BuildRequires: perl(DynaLoader)
|
||
|
BuildRequires: perl(Unicode::Normalize)
|
||
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||
|
Requires: perl(Unicode::Normalize)
|
||
|
Conflicts: perl < 4:5.22.0-347
|
||
|
|
||
|
%description
|
||
|
This package is Perl implementation of Unicode Technical Standard #10 (Unicode
|
||
|
Collation Algorithm).
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n Unicode-Collate-%{version}
|
||
|
%patch0 -p1
|
||
|
# Remove pregenerated files
|
||
|
rm Collate/Locale/*
|
||
|
# Collate/CJK/Korean.pm is input for mklocale script, do not remove it here
|
||
|
|
||
|
%build
|
||
|
# 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
|
||
|
|
||
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
%install
|
||
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
||
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||
|
|
||
|
%check
|
||
|
make test
|
||
|
|
||
|
%files
|
||
|
%doc Changes README
|
||
|
%{perl_vendorarch}/auto/*
|
||
|
%{perl_vendorarch}/Unicode*
|
||
|
%{_mandir}/man3/*
|
||
|
|
||
|
%changelog
|
||
|
* Thu Jul 02 2015 Petr Pisar <ppisar@redhat.com> 1.12-348
|
||
|
- Specfile autogenerated by cpanspec 1.78.
|