perl-MIME-Charset/perl-MIME-Charset.spec
chenyx2012 ab9c73fa21 License compliance rectification
(cherry picked from commit 815ea07c31c9d8594f6760627a0a662364d66acc)
2024-06-12 15:14:57 +08:00

83 lines
2.5 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: perl-MIME-Charset
Version: 1.012.2
Release: 3
Summary: Charset Information for MIME
License: GPL-1.0-or-later or Artistic-1.0
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
* Tue Jul 19 2022 Chenyx <chenyixiong3@huawei.com> - 1.012.2-3
- License compliance rectification
* 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