perl-Expect/perl-Expect.spec

75 lines
1.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Expect (Version 1.21)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Expect
BuildRequires: perl-IO-Stty perl-IO-Tty
Url: http://search.cpan.org/search?module=Expect
License: Artistic
Group: Development/Libraries/Perl
Requires: perl-IO-Tty perl-IO-Stty
Requires: perl = %{perl_version}
AutoReqProv: on
Summary: Expect for perl
Version: 1.21
Release: 47
Source: Expect-%{version}.tar.gz
Patch: Expect.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A tool for automating interactive programs
Authors:
--------
Roland Giersig <RGiersig@cpan.org>
Austin Schutz <tex@habit.com>
%prep
%setup -n Expect-%{version}
%patch -p1
%build
perl Makefile.PL
make %{?_smp_mflags}
make test
%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
chmod 644 %{_builddir}/Expect-%{version}/tutorial/*
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%files
%defattr(-,root,root)
%doc Changes MANIFEST README
%{perl_vendorarch}/auto/Expect/
/%{perl_vendorlib}/Expect.pod
/%{perl_vendorlib}/Expect.pm
%doc tutorial
%doc examples
%doc %{_mandir}/man3/*
/var/adm/perl-modules/perl-Expect
%changelog