This commit is contained in:
compile_success 2019-12-04 15:01:56 +08:00
commit 3f2ccfbde3
2 changed files with 64 additions and 0 deletions

BIN
Unicode-UTF8-0.62.tar.gz Normal file

Binary file not shown.

64
perl-Unicode-UTF8.spec Normal file
View File

@ -0,0 +1,64 @@
%bcond_with perl_Unicode_UTF8_enables_Module_Install_ReadmeFromPod
Name: perl-Unicode-UTF8
Version: 0.62
Release: 8
Summary: Module to dencode and ecode of UTF-8 encoding
License: GPL+ and Artistic
URL: https://metacpan.org/release/Unicode-UTF8
Source0: https://cpan.metacpan.org/authors/id/C/CH/CHANSEN/Unicode-UTF8-%{version}.tar.gz
BuildRequires: coreutils findutils make perl-interpreter perl-devel perl-generators
BuildRequires: perl(Carp) perl(Exporter) perl(strict) perl(warnings) perl(XSLoader)
BuildRequires: perl(Encode) >= 1.9801 perl(IO::File) perl(lib) perl(Scalar::Util)
BuildRequires: perl(Test::Builder) perl(Test::More) >= 0.47 perl(Test::Fatal) >= 0.006
%if %{with perl_Unicode_UTF8_enables_Module_Install_ReadmeFromPod}
BuildRequires: perl(inc::Module::Install) perl(Module::Install::ReadmeFromPod)
%else
BuildRequires: perl(base) perl(Config) perl(Cwd) perl(ExtUtils::MakeMaker) perl(Fcntl)
BuildRequires: perl(File::Basename) perl(File::Find) perl(File::Path) perl(Pod::Text) perl(vars)
%endif
BuildRequires: perl(Taint::Runtime) >= 0.03 perl(Test::LeakTrace) >= 0.10
BuildRequires: perl(Test::Pod) >= 1.00 perl(Variable::Magic)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Exporter) perl(XSLoader)
%{?perl_default_filter}
%description
The package is a module which provides functions to dencode and ecode UTF-8 encoding
%package help
Summary: Documention for perl-Unicode-UTF8 package
%description help
Documention for perl-Unicode-UTF8 package
%prep
%autosetup -n Unicode-UTF8-%{version}
%if %{with perl_Unicode_UTF8_enables_Module_Install_ReadmeFromPod}
rm -rf inc/
%endif
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name '*.bs' -empty -delete
%{_fixperms} -c %{buildroot}
%check
make test
%files
%{perl_vendorarch}/Unicode/
%{perl_vendorarch}/auto/Unicode/
%exclude %{perl_vendorarch}/auto/Unicode/UTF8/.packlist
%files help
%doc Changes README
%{_mandir}/man3/Unicode::UTF8.3*
%changelog
* Mon Dec 2 2019 zhujunhao <zhujunhao5@huawei.com> - 0.62-8
- Package init