diff --git a/MIME-Charset-1.012.2.tar.gz b/MIME-Charset-1.012.2.tar.gz new file mode 100644 index 0000000..5637a07 Binary files /dev/null and b/MIME-Charset-1.012.2.tar.gz differ diff --git a/perl-MIME-Charset.spec b/perl-MIME-Charset.spec new file mode 100644 index 0000000..de82834 --- /dev/null +++ b/perl-MIME-Charset.spec @@ -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 1.012.2-2 +- Add build requires + +* Mon Jun 15 2020 Perl_Bot 1.012.2-1 +- Specfile autogenerated by Perl_Bot diff --git a/perl-MIME-Charset.yaml b/perl-MIME-Charset.yaml new file mode 100644 index 0000000..8e491c2 --- /dev/null +++ b/perl-MIME-Charset.yaml @@ -0,0 +1,4 @@ +version_control: metacpan +src_repo: MIME-Charset +tag_prefix: ^ +seperator: "."