53 lines
1.5 KiB
RPMSpec
53 lines
1.5 KiB
RPMSpec
|
|
Name: perl-Encode-EUCJPASCII
|
||
|
|
Version: 0.03
|
||
|
|
Release: 1
|
||
|
|
Summary: EucJP-ascii - An eucJP-open mapping
|
||
|
|
License: GPL+ or Artistic
|
||
|
|
URL: https://metacpan.org/release/Encode-EUCJPASCII
|
||
|
|
Source0: https://cpan.metacpan.org/modules/by-module/Encode/Encode-EUCJPASCII-%{version}.tar.gz
|
||
|
|
BuildRequires: make
|
||
|
|
BuildRequires: gcc
|
||
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||
|
|
BuildRequires: perl(Test::More)
|
||
|
|
BuildRequires: perl(Test::Pod)
|
||
|
|
BuildRequires: perl(File::Spec)
|
||
|
|
BuildRequires: perl(Encode)
|
||
|
|
BuildRequires: perl(XSLoader)
|
||
|
|
BuildRequires: perl(base)
|
||
|
|
BuildRequires: perl(Encode::CJKConstants)
|
||
|
|
BuildRequires: perl(Encode::JP::JIS7)
|
||
|
|
BuildRequires: perl-devel
|
||
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||
|
|
|
||
|
|
%{?perl_default_filter}
|
||
|
|
|
||
|
|
%description
|
||
|
|
This module provides eucJP-ascii, one of eucJP-open mappings, and its
|
||
|
|
derivative.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -n Encode-EUCJPASCII-%{version}
|
||
|
|
|
||
|
|
%build
|
||
|
|
%{__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' -a -size 0 -exec rm -f {} ';'
|
||
|
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
|
||
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||
|
|
|
||
|
|
%check
|
||
|
|
make test
|
||
|
|
|
||
|
|
%files
|
||
|
|
%doc Changes README
|
||
|
|
%{perl_vendorarch}/*
|
||
|
|
%exclude %dir %{perl_vendorarch}/auto/
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Thu Jul 21 2022 misaka00251 <misaka00251@misakanet.cn> - 0.03-1
|
||
|
|
- Init package (Thanks to fedora team)
|