!1 Init package
From: @misaka00251 Reviewed-by: @wangyangdahai Signed-off-by: @wangyangdahai
This commit is contained in:
commit
909221579d
BIN
Encode-JIS2K-0.03.tar.gz
Normal file
BIN
Encode-JIS2K-0.03.tar.gz
Normal file
Binary file not shown.
65
perl-Encode-JIS2K.spec
Normal file
65
perl-Encode-JIS2K.spec
Normal file
@ -0,0 +1,65 @@
|
||||
Name: perl-Encode-JIS2K
|
||||
Version: 0.03
|
||||
Release: 1
|
||||
Summary: JIS X 0212 (aka JIS 2000) Encodings
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Encode-JIS2K
|
||||
Source0: https://cpan.metacpan.org/modules/by-module/Encode/Encode-JIS2K-%{version}.tar.gz
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: perl(base)
|
||||
BuildRequires: perl(Config)
|
||||
BuildRequires: perl(Encode)
|
||||
BuildRequires: perl(Encode::CJKConstants)
|
||||
BuildRequires: perl(Encode::Encoding)
|
||||
BuildRequires: perl(Encode::JP::H2Z)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(File::Basename)
|
||||
BuildRequires: perl(File::Compare)
|
||||
BuildRequires: perl(File::Spec)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(warnings)
|
||||
BuildRequires: perl(XSLoader)
|
||||
BuildRequires: perl-Encode-devel
|
||||
BuildRequires: perl-generators
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
Requires: perl(Encode::JP::H2Z)
|
||||
|
||||
%{?perl_default_filter}
|
||||
|
||||
%description
|
||||
This module implements encodings that covers JIS X 0213 charset (AKA JIS 2000,
|
||||
hence the module name).
|
||||
|
||||
%prep
|
||||
%setup -q -n Encode-JIS2K-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
||||
# No usage for this
|
||||
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
|
||||
* Tue Jul 05 2022 misaka00251 <misaka00251@misakanet.cn> - 0.03-1
|
||||
- Init package (Thanks to fedora team)
|
||||
Loading…
x
Reference in New Issue
Block a user