]> git.pld-linux.org Git - packages/perl-IO-Interactive.git/blame - perl-IO-Interactive.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-IO-Interactive.git] / perl-IO-Interactive.spec
CommitLineData
1e720fdd
SP
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir IO
6%define pnam Interactive
1e720fdd
SP
7Summary: IO::Interactive - Utilities for interactive I/O
8Name: perl-IO-Interactive
9Version: 0.0.6
10Release: 1
11License: GPL v1+ or Artistic
12Group: Development/Languages/Perl
13Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz
f27706a9 14# Source0-md5: 6ca9b8b8afc8b7d5e85985ea864d2431
1e720fdd
SP
15URL: http://search.cpan.org/dist/IO-Interactive/
16BuildRequires: perl-devel >= 1:5.8.0
17BuildRequires: rpm-perlprov >= 4.1-13
18%if %{with tests}
19%endif
20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24This module provides three utility subroutines that make it easier to
25develop interactive applications...
26
27
28
29%prep
30%setup -q -n %{pdir}-%{pnam}-%{version}
31
32%build
33%{__perl} Makefile.PL \
34 INSTALLDIRS=vendor
35%{__make}
36
37%{?with_tests:%{__make} test}
38
39%install
40rm -rf $RPM_BUILD_ROOT
41
42%{__make} pure_install \
43 DESTDIR=$RPM_BUILD_ROOT
44
45install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
46cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
47
48%clean
49rm -rf $RPM_BUILD_ROOT
50
51%files
52%defattr(644,root,root,755)
53%doc Changes README
54%{perl_vendorlib}/IO/*.pm
55%{_mandir}/man3/*
56%{_examplesdir}/%{name}-%{version}
This page took 0.077023 seconds and 4 git commands to generate.