From 8de3be17ac28c829e70ae8d342e6f1ad16c886e9 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Mon, 7 Oct 2019 14:26:21 +0100 Subject: [PATCH] Spec tidy-up - Use author-independent source URL - Fix permissions verbosely --- perl-Unicode-Map.spec | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/perl-Unicode-Map.spec b/perl-Unicode-Map.spec index 1a4e416..3c54054 100644 --- a/perl-Unicode-Map.spec +++ b/perl-Unicode-Map.spec @@ -1,18 +1,18 @@ Name: perl-Unicode-Map Version: 0.112 -Release: 48%{?dist} +Release: 49%{?dist} Summary: Perl module for mapping charsets from and to utf16 unicode License: GPL+ or Artistic URL: https://metacpan.org/release/Unicode-Map -Source0: https://cpan.metacpan.org/authors/id/M/MS/MSCHWARTZ/Unicode-Map-0.112.tar.gz +Source0: https://cpan.metacpan.org/modules/by-module/Unicode/Unicode-Map-%{version}.tar.gz # Module Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make -BuildRequires: perl-interpreter BuildRequires: perl-devel BuildRequires: perl-generators +BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) # Module Runtime BuildRequires: perl(Carp) @@ -32,19 +32,19 @@ Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %{?perl_default_filter} %description -This module converts strings from and to 2-byte Unicode UCS2 -format. All mappings happen via 2 byte UTF16 encodings, not via 1 byte -UTF8 encoding. To convert between UTF8 and UTF16 use Unicode::String. +This module converts strings from and to 2-byte Unicode UCS2 format. +All mappings happen via 2 byte UTF16 encodings, not via 1 byte UTF8 +encoding. To convert between UTF8 and UTF16 use Unicode::String. + For historical reasons this module coexists with Unicode::Map8. Please use Unicode::Map8 unless you need to care for >1 byte character -sets, e.g. chinese GB2312. Anyway, if you stick to the basic -functionality (see documentation) you can use both modules -equivalently. +sets, e.g. Chinese GB2312. Anyway, if you stick to the basic +functionality (see documentation) you can use both modules equivalently. %prep %setup -q -n Unicode-Map-%{version} -# See bug 191387 +# See http://bugzilla.redhat.com/191387 echo ' # Add support for perl-Spreadsheet-ParseExcel name: CP932Excel @@ -54,14 +54,14 @@ map: $DestMap/MS/WIN/CP932Excel.map ' >> Map/REGISTRY %build -perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE='%{optflags}' make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -delete -find %{buildroot} -type f -name '*.bs' -a -empty -delete -%{_fixperms} %{buildroot} +find %{buildroot} -type f -name '*.bs' -empty -delete +%{_fixperms} -c %{buildroot} %check make test @@ -80,6 +80,11 @@ make test %{_mandir}/man3/Unicode::Map.3* %changelog +* Mon Oct 7 2019 Paul Howarth - 0.112-49 +- Spec tidy-up + - Use author-independent source URL + - Fix permissions verbosely + * Fri Jul 26 2019 Fedora Release Engineering - 0.112-48 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild