ppisar pushed to perl-Unicode-Collate (master). "Import"
notifications at fedoraproject.org
notifications at fedoraproject.org
Fri Jul 10 11:34:35 UTC 2015
From d5fe49a487a94454631772b6437f2eeefe65119e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
Date: Fri, 10 Jul 2015 13:34:14 +0200
Subject: Import
diff --git a/.gitignore b/.gitignore
index e69de29..1c22400 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Unicode-Collate-1.12.tar.gz
diff --git a/Unicode-Collate-1.12-Create-Locale-directory-with-default-mask.patch b/Unicode-Collate-1.12-Create-Locale-directory-with-default-mask.patch
new file mode 100644
index 0000000..e6650f1
--- /dev/null
+++ b/Unicode-Collate-1.12-Create-Locale-directory-with-default-mask.patch
@@ -0,0 +1,40 @@
+From 444b828e15fd7e507c283120e6bd88a264ae5b91 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Thu, 2 Jul 2015 16:06:11 +0200
+Subject: [PATCH] Create Locale directory with default mask
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Petr Písař <ppisar at redhat.com>
+---
+ mklocale | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/mklocale b/mklocale
+index fc3f269..53b8a1c 100644
+--- a/mklocale
++++ b/mklocale
+@@ -511,7 +511,7 @@ my @txts = grep /^[a-zA-Z]/, readdir DIR;
+ closedir DIR;
+
+ my $target = 'Locale';
+-mkdir $target, 0666;
++mkdir $target;
+ for my $txt (@txts) {
+ my %locale_keys;
+ my $txtfile = File::Spec->catfile($source, $txt);
+@@ -519,8 +519,8 @@ for my $txt (@txts) {
+ $pl =~ s/\.txt\z/.pl/ or croak "$PACKAGE: $source/$txt is not .txt";
+ my $plfile = File::Spec->catfile($target, $pl);
+
+- open my $fh, $txtfile or croak "$PACKAGE: $source/$txt is not found";
+- open my $ph, ">$plfile" or croak "$PACKAGE: $target/$pl can't be made";
++ open my $fh, $txtfile or croak "$PACKAGE: $source/$txt is not found: $!";
++ open my $ph, ">$plfile" or croak "$PACKAGE: $target/$pl can't be made: $!";
+ binmode $ph;
+
+ my $ptxt = '';
+--
+2.4.3
+
diff --git a/perl-Unicode-Collate.spec b/perl-Unicode-Collate.spec
new file mode 100644
index 0000000..de72e11
--- /dev/null
+++ b/perl-Unicode-Collate.spec
@@ -0,0 +1,67 @@
+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 at redhat.com> 1.12-348
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..577a1bd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9eb22e6d7745d4d29b6753c79cbe5014 Unicode-Collate-1.12.tar.gz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-Unicode-Collate.git/commit/?h=master&id=d5fe49a487a94454631772b6437f2eeefe65119e
More information about the perl-devel
mailing list