commit 4fb8e1aa108938ce0c7e6eb15b7c34bf7372debc Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:13:35 2019 -0400 Package init diff --git a/Unicode-Collate-1.25.tar.gz b/Unicode-Collate-1.25.tar.gz new file mode 100644 index 0000000..11bc136 Binary files /dev/null and b/Unicode-Collate-1.25.tar.gz differ diff --git a/perl-Unicode-Collate.spec b/perl-Unicode-Collate.spec new file mode 100644 index 0000000..f219a20 --- /dev/null +++ b/perl-Unicode-Collate.spec @@ -0,0 +1,75 @@ +%global base_name Unicode-Collate + +Name: perl-Unicode-Collate +Version: 1.25 +Release: 4 +Summary: Unicode Collation Algorithm (UCA) +License: (GPL+ or Artistic) and Unicode +URL: http://search.cpan.org/dist/Unicode-Collate/ +Source0: http://www.cpan.org/authors/id/S/SA/SADAHIRO/Unicode-Collate-%{version}.tar.gz + +BuildRequires: gcc coreutils findutils make perl-devel perl-generators perl-interpreter +BuildRequires: perl(Carp) perl(constant) perl(ExtUtils::MakeMaker) >= 6.76 perl(File::Spec) +BuildRequires: perl(strict) perl(warnings) perl(base) perl(Unicode::Normalize) perl(XSLoader) +Requires: perl(Unicode::Normalize) perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Conflicts: perl < 4:5.22.0-347 + +%description +The package is an algorithm defined in Unicode Technical Report #10, which defines a +customizable method to compare two strings. These comparisons can then be used to collate +or sort text in any writing system and language that can be represented with Unicode. + +%package_help + +%prep +%autosetup -n %{base_name}-%{version} + +rm Collate/Locale/* + +%build +perl mklocale +mv Locale/*.pl Collate/Locale +mv Korean.pm Collate/CJK + +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS" +%make_build + +%install +make pure_install DESTDIR=%{buildroot} +%{_fixperms} %{buildroot}/* + +%check +make test + +%pre + +%preun + +%post + +%postun + +%files +%defattr(-,root,root) +%doc Changes README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Unicode* + +%files help +%{_mandir}/man3/* + +%changelog +* Fri Sep 27 2019 chengquan - 1.25-3 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix spec rule in openeuler + +* Fri Sep 20 2019 chengquan - 1.25-2 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:revise requires in openeuler + +* Mon Sep 16 2019 openEuler Buildteam - 1.25-1 +- Package init