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