OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Term-Shell?expand=0&rev=4
53 lines
1.3 KiB
RPMSpec
53 lines
1.3 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
# norootforbuild
|
|
|
|
Name: perl-Term-Shell
|
|
Version: 0.02
|
|
Release: 0
|
|
Summary: Simple Command-Line Shell Framework
|
|
Source: http://search.cpan.org/CPAN/authors/id/N/NE/NEILW/Term-Shell-%{version}.tar.gz
|
|
URL: http://search.cpan.org/dist/Term-Shell
|
|
Group: Development/Libraries/Perl
|
|
License: Perl License
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
%{perl_requires}
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: make
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
|
%description
|
|
Term::Shell lets you write simple command-line shells. All the boring
|
|
details like command-line parsing, terminal handling, and tab completion
|
|
are handled for you.
|
|
|
|
%prep
|
|
%setup -q -n "Term-Shell-%{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
|
|
|
|
%check
|
|
%__make test
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc Changes README examples
|
|
%dir %{perl_vendorlib}/Term
|
|
%{perl_vendorlib}/Term/Shell.pm
|
|
%doc %{perl_vendorlib}/Term/Shell.pod
|
|
%dir %{perl_vendorarch}/auto/Term
|
|
%{perl_vendorarch}/auto/Term/Shell
|
|
%doc %{perl_man3dir}/Term::Shell.%{perl_man3ext}%{ext_man}
|
|
|