Spec tidy-up

- Use author-independent source URL
- Fix permissions verbosely
epel9 imports/e9/perl-Unicode-Map-0.112-49.el9
Paul Howarth 5 years ago
parent 50507921c7
commit 8de3be17ac

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

Loading…
Cancel
Save