commit da63ad40221ac0206dad52af41a009357af6be70 Author: MSVSphere Packaging Team Date: Fri Oct 25 18:15:28 2024 +0300 import perl-Unicode-Collate-1.31-510.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c617b9e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Unicode-Collate-1.31.tar.gz diff --git a/.perl-Unicode-Collate.metadata b/.perl-Unicode-Collate.metadata new file mode 100644 index 0000000..ed4e60a --- /dev/null +++ b/.perl-Unicode-Collate.metadata @@ -0,0 +1 @@ +98d2fbef41a0c97c67bf3ff31e77d656b49754c9 SOURCES/Unicode-Collate-1.31.tar.gz diff --git a/SPECS/perl-Unicode-Collate.spec b/SPECS/perl-Unicode-Collate.spec new file mode 100644 index 0000000..0e666a3 --- /dev/null +++ b/SPECS/perl-Unicode-Collate.spec @@ -0,0 +1,242 @@ +Name: perl-Unicode-Collate +Version: 1.31 +Release: 510%{?dist} +Summary: Unicode Collation Algorithm +# Collate/allkeys.txt: Unicode-DFS-2016 (the file contains a link to +# ) +# other files: GPL-1.0-or-later OR Artistic-1.0-Perl +License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Unicode-DFS-2016 +URL: https://metacpan.org/release/Unicode-Collate +Source0: https://cpan.metacpan.org/authors/id/S/SA/SADAHIRO/Unicode-Collate-%{version}.tar.gz +BuildRequires: coreutils +BuildRequires: gcc +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(File::Spec) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(base) +BuildRequires: perl(Unicode::Normalize) +BuildRequires: perl(XSLoader) +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). + +%package tests +Summary: Tests for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: perl-Test-Harness + +%description tests +Tests from %{name}. Execute them +with "%{_libexecdir}/%{name}/test". + +%prep +%setup -q -n Unicode-Collate-%{version} + +# Remove pregenerated files +rm Collate/Locale/* +# Collate/CJK/Korean.pm is an input for the mklocale script, do not remove it + +# Help file to recognise the Perl scripts +for F in t/*.t; do + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" + chmod +x "$F" +done + +%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 NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" +%{make_build} + +%install +%{make_install} +find %{buildroot} -type f -name '*.bs' -size 0 -delete +%{_fixperms} %{buildroot}/* + +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a t %{buildroot}%{_libexecdir}/%{name} +cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' +#!/bin/sh +cd %{_libexecdir}/%{name} && exec prove -I . -r -j "$(getconf _NPROCESSORS_ONLN)" +EOF +chmod +x %{buildroot}%{_libexecdir}/%{name}/test + +%check +export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') +make test + +%files +%doc Changes README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Unicode* +%{_mandir}/man3/* + +%files tests +%{_libexecdir}/%{name} + +%changelog +* Thu Jul 18 2024 Jitka Plesnikova - 1.31-510 +- Increase release to favour standalone package + +* Mon Jun 24 2024 Troy Dawson - 1.31-503 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 1.31-502 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.31-501 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.31-500 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jul 11 2023 Jitka Plesnikova - 1.31-499 +- Increase release to favour standalone package + +* Mon Mar 06 2023 Michal Josef Špaček - 1.31-491 +- Update license to SPDX format + +* Fri Jan 20 2023 Fedora Release Engineering - 1.31-490 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.31-489 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon May 30 2022 Jitka Plesnikova - 1.31-488 +- Increase release to favour standalone package + +* Mon Aug 23 2021 Jitka Plesnikova - 1.31-1 +- 1.31 bump + +* Tue Jul 27 2021 Fedora Release Engineering - 1.30-2 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon Jun 07 2021 Jitka Plesnikova - 1.30-1 +- 1.30 bump +- Package tests + +* Fri May 21 2021 Jitka Plesnikova - 1.29-477 +- Increase release to favour standalone package + +* Wed Jan 27 2021 Fedora Release Engineering - 1.29-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Sep 29 2020 Jitka Plesnikova - 1.29-1 +- 1.29 bump + +* Wed Sep 23 2020 Jitka Plesnikova - 1.28-1 +- 1.28 bump + +* Tue Jul 28 2020 Fedora Release Engineering - 1.27-457 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 22 2020 Jitka Plesnikova - 1.27-456 +- Increase release to favour standalone package + +* Thu Feb 06 2020 Tom Stellard - 1.27-441 +- Spec file cleanups: Use make_build and make_install macros +- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make +- https://fedoraproject.org/wiki/Perl/Tips#ExtUtils::MakeMake + +* Thu Jan 30 2020 Fedora Release Engineering - 1.27-440 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 1.27-439 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu May 30 2019 Jitka Plesnikova - 1.27-438 +- Increase release to favour standalone package + +* Sat Feb 02 2019 Fedora Release Engineering - 1.27-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jan 03 2019 Petr Pisar - 1.27-1 +- 1.27 bump + +* Fri Jul 13 2018 Fedora Release Engineering - 1.25-417 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Jun 27 2018 Jitka Plesnikova - 1.25-416 +- Increase release to favour standalone package + +* Fri Feb 09 2018 Fedora Release Engineering - 1.25-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Nov 23 2017 Petr Pisar - 1.25-1 +- 1.25 bump + +* Tue Nov 21 2017 Petr Pisar - 1.24-1 +- 1.24 bump + +* Mon Nov 13 2017 Petr Pisar - 1.23-1 +- 1.23 bump + +* Mon Nov 06 2017 Petr Pisar - 1.21-1 +- 1.21 bump + +* Fri Nov 03 2017 Petr Pisar - 1.20-1 +- 1.20 bump + +* Thu Aug 03 2017 Fedora Release Engineering - 1.19-395 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.19-394 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Jun 03 2017 Jitka Plesnikova - 1.19-393 +- Perl 5.26 rebuild + +* 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