diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c7a0ee7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Unicode-Collate-1.20.tar.gz diff --git a/.perl-Unicode-Collate.metadata b/.perl-Unicode-Collate.metadata new file mode 100644 index 0000000..1184266 --- /dev/null +++ b/.perl-Unicode-Collate.metadata @@ -0,0 +1 @@ +af776d86aae8f3ea3bf2dd6e570621ee0c7940cf SOURCES/Unicode-Collate-1.20.tar.gz diff --git a/SOURCES/Unicode-Collate-1.20-Fixes-for-removal-dot-from-INC.patch b/SOURCES/Unicode-Collate-1.20-Fixes-for-removal-dot-from-INC.patch new file mode 100644 index 0000000..ceed739 --- /dev/null +++ b/SOURCES/Unicode-Collate-1.20-Fixes-for-removal-dot-from-INC.patch @@ -0,0 +1,31 @@ +From 1538096643d1197db700fe16969a47ecddfaac99 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Fri, 3 Nov 2017 09:38:44 +0100 +Subject: [PATCH] Fixes for removal dot from INC +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +CPAN RT#121664 + +Signed-off-by: Petr Písař +--- + mklocale | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/mklocale b/mklocale +index a1f7092..1e607be 100644 +--- a/mklocale ++++ b/mklocale +@@ -546,7 +546,7 @@ for my $txt (@txts) { + s/\s*\z/.pm/; + my $f = File::Spec->catfile($CUR_DIR, split /::/, $_); + $f = 'Korean.pm' if /::Korean\.pm/; # using the newer one +- require $f; ++ require "./$f"; + next; + } + if (/^(alternate)\s+(\S+)/) { +-- +2.13.6 + diff --git a/SPECS/perl-Unicode-Collate.spec b/SPECS/perl-Unicode-Collate.spec new file mode 100644 index 0000000..de24af8 --- /dev/null +++ b/SPECS/perl-Unicode-Collate.spec @@ -0,0 +1,113 @@ +Name: perl-Unicode-Collate +Version: 1.20 +Release: 2%{?dist} +Summary: Unicode Collation Algorithm +# Collate/allkeys.txt: Unicode (the file contains a link to +# ) +# other files: GPL+ or Artistic +License: (GPL+ or Artistic) and Unicode +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 +# Adapt to Perl without "." im @INC, CPAN RT#121664 +Patch0: Unicode-Collate-1.20-Fixes-for-removal-dot-from-INC.patch +BuildRequires: gcc +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl-interpreter +BuildRequires: perl-devel +BuildRequires: perl-generators +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 +# +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 -delete +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Unicode* +%{_mandir}/man3/* + +%changelog +* Fri Mar 29 2019 Jitka Plesnikova - 1.20-2 +- Rebuild with enable hardening (bug #1636329) + +* Fri Nov 03 2017 Petr Pisar - 1.20-1 +- 1.20 bump + +* Mon May 15 2017 Jitka Plesnikova - 1.19-3 +- Fixes for removal '.' from @INC in Perl 5.26 + +* Sat Feb 11 2017 Fedora Release Engineering - 1.19-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 05 2016 Petr Pisar - 1.19-1 +- 1.19 bump + +* Tue Nov 08 2016 Petr Pisar - 1.18-1 +- 1.18 bump + +* Mon Oct 31 2016 Petr Pisar - 1.17-1 +- 1.17 bump + +* Wed Oct 26 2016 Petr Pisar - 1.16-1 +- 1.16 bump + +* Mon Oct 24 2016 Petr Pisar - 1.15-1 +- 1.15 bump + +* Mon Sep 19 2016 Petr Pisar - 1.14-366 +- License corrected to ((GPL+ or Artistic) and Unicode) + +* Sat May 14 2016 Jitka Plesnikova - 1.14-365 +- Increase release to favour standalone package + +* Thu Feb 04 2016 Fedora Release Engineering - 1.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Jul 13 2015 Petr Pisar - 1.14-1 +- 1.14 bump + +* Thu Jul 02 2015 Petr Pisar 1.12-348 +- Specfile autogenerated by cpanspec 1.78. +- Run mklocale only if not bootstrapping