]> git.pld-linux.org Git - packages/perl-IO-Interactive.git/commitdiff
- initial
authorSławomir Paszkiewicz <paszczus@pld-linux.org>
Wed, 27 Mar 2013 11:44:23 +0000 (12:44 +0100)
committerSławomir Paszkiewicz <paszczus@pld-linux.org>
Wed, 27 Mar 2013 11:44:23 +0000 (12:44 +0100)
perl-IO-Interactive.spec [new file with mode: 0644]

diff --git a/perl-IO-Interactive.spec b/perl-IO-Interactive.spec
new file mode 100644 (file)
index 0000000..08d8385
--- /dev/null
@@ -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}
This page took 0.061091 seconds and 4 git commands to generate.