OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-ScreenColor?expand=0&rev=4
50 lines
1.4 KiB
RPMSpec
50 lines
1.4 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
# norootforbuild
|
|
|
|
Name: perl-Term-ScreenColor
|
|
Version: 1.17
|
|
Release: 0
|
|
Summary: Term::Screen based screen positioning and coloring module
|
|
Source: http://search.cpan.org/CPAN/authors/id/R/RU/RUITTENB/Term-ScreenColor-%{version}.tar.gz
|
|
URL: http://search.cpan.org/dist/Term-ScreenColor/
|
|
Group: Development/Libraries/Perl
|
|
License: Perl License
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
Requires: perl = %{perl_version}
|
|
Requires: perl(Term::Screen) >= 1.03
|
|
BuildRequires: perl(Term::Screen) >= 1.03
|
|
BuildRequires: make perl
|
|
BuildRequires: screen
|
|
|
|
%description
|
|
Term::ScreenColor adds ANSI coloring support, along with a few other useful
|
|
methods, to those provided in Term::Screen.
|
|
|
|
%prep
|
|
%setup -q -n "Term-ScreenColor-%{version}"
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
%build
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
|
|
# don't run check, won't work without a proper terminal
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc ARTISTIC COPYING Changes
|
|
%dir %{perl_vendorlib}/Term
|
|
%{perl_vendorlib}/Term/ScreenColor.pm
|
|
%dir %{perl_vendorarch}/auto/Term
|
|
%{perl_vendorarch}/auto/Term/ScreenColor
|
|
%doc %{perl_man3dir}/Term::ScreenColor.%{perl_man3ext}%{ext_man}
|
|
/var/adm/perl-modules/%{name}
|
|
|