]> git.pld-linux.org Git - packages/perl-Expect-Simple.git/blob - perl-Expect-Simple.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Expect-Simple.git] / perl-Expect-Simple.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Expect
6 %define pnam    Simple
7 Summary:        Expect::Simple - wrapper around the Expect module
8 Summary(pl.UTF-8):      Expect::Simple - wrapper dla modułu Expect
9 Name:           perl-Expect-Simple
10 Version:        0.04
11 Release:        1
12 License:        GPL v2+
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Expect/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  bf185be42e59996021f088788168f9ab
16 URL:            http://search.cpan.org/dist/Expect-Simple/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-Expect
21 %endif
22 Requires:       perl-dirs >= 2.1-11
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Expect::Simple is a wrapper around the Expect module which should
28 suffice for simple applications. It hides most of the Expect
29 machinery; the Expect object is available for tweaking if need be.
30
31 %description -l pl.UTF-8
32 Expect::Simple to wrapper dla modułu Expect. Powinien wystarczyć dla
33 prostych aplikacji. Ukrywa większość maszynerii Expecta; obiekt Expect
34 jest dostępny w razie potrzeby.
35
36 %prep
37 %setup -q -n %{pdir}-%{pnam}-%{version}
38
39 %build
40 %{__perl} Makefile.PL \
41         INSTALLDIRS=vendor
42 %{__make}
43
44 %{?with_tests:%{__make} test}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc README
58 %{perl_vendorlib}/Expect/*.pm
59 %{_mandir}/man3/*
This page took 0.063767 seconds and 4 git commands to generate.