perl-Unicode-EastAsianWidth/perl-Unicode-EastAsianWidth.spec
2019-12-17 09:59:37 +08:00

49 lines
1.4 KiB
RPMSpec

Name: perl-Unicode-EastAsianWidth
Version: 1.33
Release: 15
Summary: East Asian Width properties
License: CC0
URL: https://metacpan.org/release/Unicode-EastAsianWidth
Source0: https://cpan.metacpan.org/authors/id/A/AU/AUDREYT/Unicode-EastAsianWidth-%{version}.tar.gz
Patch0: perl-Unicode-EastAsianWidth-no-inc.patch
BuildArch: noarch
BuildRequires: perl perl-generators perl-Exporter perl-ExtUtils-MakeMaker
BuildRequires: perl-Module-Package perl-Pod-Markdown perl-Module-Package-Au
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%{?perl_default_filter}
%description
This module provide user-defined Unicode properties that deal with width
status of East Asian characters, as specified in
<http://www.unicode.org/unicode/reports/tr11/>.
%prep
%autosetup -n Unicode-EastAsianWidth-%{version} -p1
rm -rf inc/*
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
%{_fixperms} %{buildroot}
%check
make test
%files
%defattr(-,root,root)
%doc Changes README
%{perl_vendorlib}/Unicode/
%{_mandir}/man3/*
%changelog
* Thu Dec 5 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.33-15
- Package init