From: SÅ‚awomir Paszkiewicz Date: Wed, 27 Mar 2013 11:44:23 +0000 (+0100) Subject: - initial X-Git-Tag: auto/th/perl-IO-Interactive-0.0.6-1~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=1e720fdd097f8d57f52ad78543abc81052b5e177;p=packages%2Fperl-IO-Interactive.git - initial --- 1e720fdd097f8d57f52ad78543abc81052b5e177 diff --git a/perl-IO-Interactive.spec b/perl-IO-Interactive.spec new file mode 100644 index 0000000..08d8385 --- /dev/null +++ b/perl-IO-Interactive.spec @@ -0,0 +1,57 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%define pdir IO +%define pnam Interactive +%include /usr/lib/rpm/macros.perl +Summary: IO::Interactive - Utilities for interactive I/O +Name: perl-IO-Interactive +Version: 0.0.6 +Release: 1 +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz + Source0-md5: 6ca9b8b8afc8b7d5e85985ea864d2431 +URL: http://search.cpan.org/dist/IO-Interactive/ +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This module provides three utility subroutines that make it easier to +develop interactive applications... + + + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} pure_install \ + DESTDIR=$RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%{perl_vendorlib}/IO/*.pm +%{_mandir}/man3/* +%{_examplesdir}/%{name}-%{version}