%{?scl:%scl_package perl-Term-Cap}
Name: %{?scl_prefix}perl-Term-Cap
Version: 1.17
Release: 366%{?dist}
Summary: Perl termcap interface
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Term-Cap/
Source0: http://www.cpan.org/authors/id/J/JS/JSTOWE/Term-Cap-%{version}.tar.gz
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: %{?scl_prefix}perl
BuildRequires: %{?scl_prefix}perl-generators
BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker)
# Run-time:
# ncurses for infocmp tool
BuildRequires: ncurses
BuildRequires: %{?scl_prefix}perl(Carp)
BuildRequires: %{?scl_prefix}perl(strict)
BuildRequires: %{?scl_prefix}perl(vars)
# Tests:
BuildRequires: %{?scl_prefix}perl(Test::More)
# ncurses for infocmp tool
Requires: ncurses
Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'}))
Requires: %{?scl_prefix}perl(Carp)
Conflicts: %{?scl_prefix}perl < 4:5.22.0-347
%description
These are low-level functions to extract and use capabilities from a terminal
capability (termcap) database.
%prep
%setup -q -n Term-Cap-%{version}
%build
%{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor && make %{?_smp_mflags}%{?scl:'}
%install
%{?scl:scl enable %{scl} '}make pure_install DESTDIR=$RPM_BUILD_ROOT%{?scl:'}
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
%{?scl:scl enable %{scl} '}make test%{?scl:'}
%files
%doc LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Mon Jul 11 2016 Petr Pisar <ppisar@redhat.com> - 1.17-366
- SCL
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.17-365
- Increase release to favour standalone package
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.17-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Aug 26 2015 Petr Pisar <ppisar@redhat.com> - 1.17-1
- 1.17 bump
* Wed Jul 01 2015 Petr Pisar <ppisar@redhat.com> 1.16-1
- Specfile autogenerated by cpanspec 1.78.