commit
732bcafe55
BIN
MIME-Charset-1.012.2.tar.gz
Normal file
BIN
MIME-Charset-1.012.2.tar.gz
Normal file
Binary file not shown.
79
perl-MIME-Charset.spec
Normal file
79
perl-MIME-Charset.spec
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
Name: perl-MIME-Charset
|
||||||
|
Version: 1.012.2
|
||||||
|
Release: 2
|
||||||
|
Summary: Charset Information for MIME
|
||||||
|
License: Distributable, see COPYING
|
||||||
|
Group: Development/Libraries
|
||||||
|
URL: http://search.cpan.org/dist/MIME-Charset/
|
||||||
|
Source0: http://www.cpan.org/authors/id/N/NE/NEZUMI/MIME-Charset-%{version}.tar.gz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: coreutils findutils make perl-interpreter perl-generators
|
||||||
|
BuildRequires: perl(inc::Module::Install) perl(Module::Install::Metadata) perl(Module::Install::Win32) perl(Module::Install::WriteAll)
|
||||||
|
BuildRequires: perl(Carp) perl(constant) perl(Encode::Encoding) perl(Exporter) perl(strict) perl(vars) perl(Test::More)
|
||||||
|
BuildRequires: perl(Test::Pod) >= 1.00 sed perl(ExtUtils::MakeMaker)
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
|
%description
|
||||||
|
MIME::Charset provides information about character sets used for MIME
|
||||||
|
messages on Internet.
|
||||||
|
%package help
|
||||||
|
Summary : Charset Information for MIME
|
||||||
|
Provides: perl-MIME-Charset-doc
|
||||||
|
%description help
|
||||||
|
MIME::Charset provides information about character sets used for MIME
|
||||||
|
messages on Internet.
|
||||||
|
%prep
|
||||||
|
%setup -q -n MIME-Charset-%{version}
|
||||||
|
%build
|
||||||
|
export PERL_MM_OPT=""
|
||||||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
export PERL_MM_OPT=""
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||||
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||||
|
|
||||||
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
|
pushd %{buildroot}
|
||||||
|
touch filelist.lst
|
||||||
|
if [ -d usr/bin ];then
|
||||||
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/sbin ];then
|
||||||
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/lib64 ];then
|
||||||
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/lib ];then
|
||||||
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
popd
|
||||||
|
mv %{buildroot}/filelist.lst .
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%files -f filelist.lst
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc ARTISTIC Changes COPYING META.json README
|
||||||
|
%{perl_vendorlib}/*
|
||||||
|
%files help
|
||||||
|
%{_mandir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Jul 23 2020 maminjie <maminjie1@huawei.com> 1.012.2-2
|
||||||
|
- Add build requires
|
||||||
|
|
||||||
|
* Mon Jun 15 2020 Perl_Bot <Perl_Bot@openeuler.org> 1.012.2-1
|
||||||
|
- Specfile autogenerated by Perl_Bot
|
||||||
4
perl-MIME-Charset.yaml
Normal file
4
perl-MIME-Charset.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: metacpan
|
||||||
|
src_repo: MIME-Charset
|
||||||
|
tag_prefix: ^
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user