# Perform optional tests %bcond_without perl_Term_Terminfo_enables_optional_test # Parse terminfo database with unibilium instead of ncurses %bcond_without perl_Term_Terminfo_enables_unibilium Name: perl-Term-Terminfo Version: 0.09 Release: 12%{?dist} Summary: Access the terminfo database License: GPL+ or Artistic URL: https://metacpan.org/release/Term-Terminfo Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Term-Terminfo-%{version}.tar.gz BuildRequires: coreutils BuildRequires: findutils BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::CBuilder) BuildRequires: perl(Module::Build::Using::PkgConfig) BuildRequires: perl(strict) BuildRequires: perl(warnings) %if %{with perl_Term_Terminfo_enables_unibilium} BuildRequires: pkgconfig(unibilium) >= 0.1.0 %else BuildRequires: ncurses-devel BuildRequires: perl(ExtUtils::CChecker) >= 0.02 %endif # Run-time: BuildRequires: perl(Carp) BuildRequires: perl(XSLoader) # Tests: BuildRequires: perl(Test::More) >= 0.88 %if %{with perl_Term_Terminfo_enables_optional_test} # Optional tests: BuildRequires: perl(Test::Pod) >= 1.00 %endif %description Objects in Term::Terminfo Perl class provide access to the terminfo database entries. %prep %setup -q -n Term-Terminfo-%{version} %if !%{with perl_Term_Terminfo_enables_optional_test} rm t/99pod.t perl -i -ne 'print $_ unless m{^t/99pod\.t}' MANIFEST %endif %build perl Build.PL --installdirs=vendor --optimize="$RPM_OPT_FLAGS" ./Build %install ./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete %{_fixperms} $RPM_BUILD_ROOT/* %check ./Build test %files %license LICENSE %doc Changes README %{perl_vendorarch}/auto/* %{perl_vendorarch}/Term* %{_mandir}/man3/* %changelog * Thu Jan 25 2024 Fedora Release Engineering - 0.09-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.09-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.09-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Jitka Plesnikova - 0.09-9 - Perl 5.38 rebuild * Fri Jan 20 2023 Fedora Release Engineering - 0.09-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.09-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue May 31 2022 Jitka Plesnikova - 0.09-6 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.09-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.09-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.09-3 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.09-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Sep 30 2020 Petr Pisar 0.09-1 - Specfile autogenerated by cpanspec 1.78.