diff --git a/.gitignore b/.gitignore index 44dc59a..7851ae1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /Term-Encoding-0.02.tar.gz +/Term-Encoding-0.03.tar.gz diff --git a/perl-Term-Encoding.spec b/perl-Term-Encoding.spec index e7a6aea..c02548f 100644 --- a/perl-Term-Encoding.spec +++ b/perl-Term-Encoding.spec @@ -1,26 +1,36 @@ +# Use I18N::Langinfo for handling locales properly +%bcond_without perl_Term_Encoding_enables_locale + Name: perl-Term-Encoding -Version: 0.02 -Release: 14%{?dist} +Version: 0.03 +Release: 1%{?dist} Summary: Detect encoding of the current terminal License: GPL+ or Artistic URL: https://metacpan.org/release/Term-Encoding Source0: https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/Term-Encoding-%{version}.tar.gz BuildArch: noarch -BuildRequires: perl-interpreter +BuildRequires: make BuildRequires: perl-generators -BuildRequires: perl(inc::Module::Install) +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) # Run-time: BuildRequires: perl(base) BuildRequires: perl(Exporter) -BuildRequires: perl(strict) -BuildRequires: perl(warnings) # Win32::Console not used +%if %{with perl_Term_Encoding_enables_locale} # Optional run-time: BuildRequires: perl(I18N::Langinfo) +%endif # Tests: BuildRequires: perl(Test::More) +# Test::Pod not used Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(warnings) +%if %{with perl_Term_Encoding_enables_locale} +Recommends: perl(I18N::Langinfo) +%endif %description Term::Encoding is a simple Perl module to detect an encoding the current @@ -28,28 +38,29 @@ terminal expects, in various ways. %prep %setup -q -n Term-Encoding-%{version} -# Remove bundled modules -rm -r ./inc/* -sed -i -e '/^inc\//d' MANIFEST %build -perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install DESTDIR=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{make_install} %{_fixperms} $RPM_BUILD_ROOT/* %check +unset AUTHOR_TESTING DEV_MIYAGAWA_UNIX DEV_MIYAGAWA_WIN32 make test %files -%doc Changes +%license LICENSE +%doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog +* Fri Mar 22 2019 Petr Pisar - 0.03-1 +- 0.03 bump + * Sat Feb 02 2019 Fedora Release Engineering - 0.02-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index a79a0f7..cda65ec 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -67b7fb38ec7779a3fb79a047fd7edbb5 Term-Encoding-0.02.tar.gz +SHA512 (Term-Encoding-0.03.tar.gz) = 781be5087b65e90267daa3efa95bd03b3f2b2f8b3c8aac492238159c0dea3dfef7a82acded856b9551d389e2fcf5baf19a4ff9924da35377d28616b49015a0ce