[5864] | 1 | %define real_name Net-CLI-Interact |
---|
| 2 | |
---|
| 3 | Summary: Toolkit for CLI Automation |
---|
| 4 | Name: perl-%{real_name} |
---|
| 5 | Version: 1.120670 |
---|
| 6 | Release: 1%{?_dist_release} |
---|
| 7 | License: GPL+ or Artistic |
---|
| 8 | Group: Development/Libraries |
---|
| 9 | Source0: http://search.cpan.org/CPAN/authors/id/O/OL/OLIVER/%{real_name}-%{version}.tar.gz |
---|
| 10 | URL: http://search.cpan.org/dist/%{real_name} |
---|
| 11 | BuildArch: noarch |
---|
| 12 | |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 14 | |
---|
| 15 | BuildRequires: perl(Class::MOP) |
---|
| 16 | BuildRequires: perl(Class::MOP::Class) |
---|
| 17 | BuildRequires: perl(File::Basename) |
---|
| 18 | BuildRequires: perl(FileHandle) |
---|
| 19 | BuildRequires: perl(IPC::Run) |
---|
| 20 | BuildRequires: perl(List::Util) |
---|
| 21 | BuildRequires: perl(Log::Dispatch::Config) |
---|
| 22 | BuildRequires: perl(Log::Dispatch::Configurator::Any) |
---|
| 23 | BuildRequires: perl(Moose) |
---|
| 24 | BuildRequires: perl(Moose::Role) |
---|
| 25 | BuildRequires: perl(Moose::Util::TypeConstraints) |
---|
| 26 | BuildRequires: perl(Net::Telnet) |
---|
| 27 | BuildRequires: perl(POSIX) |
---|
| 28 | BuildRequires: perl(Path::Class) |
---|
| 29 | BuildRequires: perl(Time::HiRes) |
---|
| 30 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
| 31 | |
---|
| 32 | Vendor: Project Vine |
---|
| 33 | Distribution: Vine Linux |
---|
| 34 | Packager: shaolin |
---|
| 35 | |
---|
| 36 | %description |
---|
| 37 | This module exists to support developers of applications |
---|
| 38 | and libraries which must interact with a command line interface. |
---|
| 39 | |
---|
| 40 | %prep |
---|
| 41 | %setup -q -n %{real_name}-%{version} |
---|
| 42 | |
---|
| 43 | %build |
---|
| 44 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" |
---|
| 45 | make %{?_smp_mflags} |
---|
| 46 | |
---|
| 47 | %install |
---|
| 48 | rm -rf %{buildroot} |
---|
| 49 | make pure_install DESTDIR=%{buildroot} |
---|
| 50 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
| 51 | find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
| 52 | %{_fixperms} %{buildroot} |
---|
| 53 | |
---|
| 54 | %clean |
---|
| 55 | rm -rf %{buildroot} |
---|
| 56 | |
---|
| 57 | %check |
---|
| 58 | make test |
---|
| 59 | |
---|
| 60 | %files |
---|
| 61 | %defattr(-, root, root, 0755) |
---|
| 62 | %doc Changes MANIFEST META.yml README |
---|
| 63 | %doc %{_mandir}/man3/* |
---|
| 64 | %{perl_vendorlib}/* |
---|
| 65 | |
---|
| 66 | %changelog |
---|
| 67 | * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.03-1 |
---|
| 68 | - initial build for Vine Linux |
---|