From 0aa78730be90320cf4b55b98d620051657f9982a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= <con...@redhat.com> Date: Mon, 30 Nov 2015 16:43:15 +0100 Subject: Package cleanup
- Enable the test suite; it works in the modern mock & koji --- perl-Term-Size.spec | 84 ++++++++++++++++++++++++++++------------------------- 1 file changed, 45 insertions(+), 39 deletions(-) diff --git a/perl-Term-Size.spec b/perl-Term-Size.spec index bac4a2c..18de958 100644 --- a/perl-Term-Size.spec +++ b/perl-Term-Size.spec @@ -1,65 +1,71 @@ -Name: perl-Term-Size -Version: 0.207 -Release: 11%{?dist} -# see Copyright -License: GPL+ or Artistic -Group: Development/Libraries -Summary: Simple way to get terminal size -Source0: http://search.cpan.org/CPAN/authors/id/F/FE/FERREIRA/Term-Size-%{version}.tar.gz -Url: http://search.cpan.org/dist/Term-Size -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Name: perl-Term-Size +Version: 0.207 +Release: 12%{?dist} +License: GPL+ or Artistic +Summary: Simple way to get terminal size +Source0: http://search.cpan.org/CPAN/authors/id/F/FE/FERREIRA/Term-Size-%{version}.tar.gz +Url: http://search.cpan.org/dist/Term-Size # see http://rt.cpan.org/Public/Bug/Display.html?id=38594 -Patch0: perl-Term-Size-0.207-perlio.patch -BuildRequires: perl(ExtUtils::MakeMaker) -%{?_with_display_tests: BuildRequires: perl(Carp), perl(Exporter) } - -# don't "provide" private Perl libs -%global _use_internal_dependency_generator 0 -%global __deploop() while read FILE; do /usr/lib/rpm/rpmdeps -%{1} ${FILE}; done | /bin/sort -u -%global __find_provides /bin/sh -c "%{__grep} -v '%{perl_vendorarch}/.*\\.so$' | %{__deploop P}" -%global __find_requires /bin/sh -c "%{__deploop R}" +Patch0: %{name}-0.207-perlio.patch +# Build +BuildRequires: findutils +BuildRequires: gcc +BuildRequires: make +BuildRequires: perl +BuildRequires: perl-devel +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# Runtime +BuildRequires: perl(AutoLoader) +BuildRequires: perl(Carp) +BuildRequires: perl(DynaLoader) +BuildRequires: perl(Exporter) +BuildRequires: perl(strict) +BuildRequires: perl(vars) +# Tests only +BuildRequires: perl(Test::More) +# Optional tests only +BuildRequires: perl(Test::Pod) >= 1.18 +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) %description -*Term::Size* is a Perl module which provides a straightforward way to +Term::Size is a Perl module which provides a straightforward way to retrieve the terminal size. -Both functions take an optional filehandle argument, which defaults to -'*STDIN{IO}'. They both return a list of two values, which are the current -width and height, respectively, of the terminal associated with the -specified filehandle. +Both functions take an optional filehandle argument, which defaults +to *STDIN{IO}. They both return a list of two values, which are the +current width and height, respectively, of the terminal associated with +the specified filehandle. -'Term::Size::chars' returns the size in units of characters, whereas -'Term::Size::pixels' uses units of pixels. +Term::Size::chars returns the size in units of characters, whereas +Term::Size::pixels uses units of pixels. %prep %setup -q -n Term-Size-%{version} %patch0 -p1 %build -%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 make %{?_smp_mflags} %install -make pure_install PERL_INSTALL_ROOT=%{buildroot} -find %{buildroot} -type f -name .packlist -exec rm -f {} ';' -find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' - +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name '*.bs' -a -size 0 -delete %{_fixperms} %{buildroot}/* %check -# tests will fail under mock (no terminal size to get!) In particular, tests -# 2, 3 and 5 fail regardless of what platform they're being complied for under -# mock. -%{?_with_display_tests: make test } +make test %files %doc Changes README Copyright -%{perl_vendorarch}/* -%exclude %dir %{perl_vendorarch}/auto -%{_mandir}/man3/*.3* +%{perl_vendorarch}/Term* +%{perl_vendorarch}/auto +%{_mandir}/man3/* %changelog +* Mon Nov 30 2015 Petr Ĺ abata <con...@redhat.com> - 0.207-12 +- Package cleanup +- Enable the test suite; it works in the modern mock & koji + * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> - 0.207-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild -- cgit v0.11.2 http://pkgs.fedoraproject.org/cgit/perl-Term-Size.git/commit/?h=master&id=0aa78730be90320cf4b55b98d620051657f9982a -- 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