From e6032ff5e8af024637383aef54b47821173a7b60 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <con...@redhat.com>
Date: Thu, 28 Jan 2016 13:11:10 +0100
Subject: Package cleanup

- Enable tests
---
 perl-Expect-Simple.spec | 52 ++++++++++++++++++++++---------------------------
 1 file changed, 23 insertions(+), 29 deletions(-)

diff --git a/perl-Expect-Simple.spec b/perl-Expect-Simple.spec
index 64dadcd..26e7928 100644
--- a/perl-Expect-Simple.spec
+++ b/perl-Expect-Simple.spec
@@ -1,60 +1,54 @@
 Name:           perl-Expect-Simple
 Version:        0.04
-Release:        21%{?dist}
+Release:        22%{?dist}
 Summary:        Wrapper around the Expect module
-
-Group:          Development/Libraries
 License:        GPLv2+
 URL:            http://search.cpan.org/dist/Expect-Simple/
 Source0:        
http://www.cpan.org/authors/id/D/DJ/DJERIUS/Expect-Simple-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
 BuildArch:      noarch
+# Build
+BuildRequires:  make
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+# Runtime
+BuildRequires:  perl(Carp)
 BuildRequires:  perl(Expect)
-BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Tests only
 BuildRequires:  perl(Test::More)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo 
$version))
 
 %description
 Expect::Simple is a wrapper around the Expect module which should
 suffice for simple applications. It hides most of the Expect
 machinery; the Expect object is available for tweaking if need be.
 
-
 %prep
 %setup -q -n Expect-Simple-%{version}
 
-
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
-
 %install
-rm -rf $RPM_BUILD_ROOT
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
-%{_fixperms} $RPM_BUILD_ROOT/*
-
+make pure_install DESTDIR=%{buildroot}
+%{_fixperms} %{buildroot}/*
 
 %check
-# switch off because of broken mock - tty
-##make test
-
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
+make test
 
 %files
-%defattr(-,root,root,-)
-%doc LICENSE README
-%{perl_vendorlib}/Expect/
-%{_mandir}/man3/*.3pm*
-
+%license LICENSE
+%doc ChangeLog Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
 
 %changelog
+* Thu Jan 28 2016 Petr Ĺ abata <con...@redhat.com> - 0.04-22
+- Package cleanup
+- Enable tests
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
- 0.04-21
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.11.2


        
http://pkgs.fedoraproject.org/cgit/perl-Expect-Simple.git/commit/?h=master&id=e6032ff5e8af024637383aef54b47821173a7b60
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to