commit 10244d5461435a0c7e18561af1f3fe39792b8f24 Author: Petr Šabata <contyk@xxxxxxxxxx> Date: Thu Nov 15 12:47:46 2012 +0100 Fix the dependencies, license, and re-enable the tests perl-IO-Tty.spec | 44 +++++++++++++++++++------------------------- 1 files changed, 19 insertions(+), 25 deletions(-) --- diff --git a/perl-IO-Tty.spec b/perl-IO-Tty.spec index 91e2a6c..41d378c 100644 --- a/perl-IO-Tty.spec +++ b/perl-IO-Tty.spec @@ -1,17 +1,18 @@ Name: perl-IO-Tty Version: 1.10 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Perl interface to pseudo tty's - -License: GPL+ or Artistic +License: (GPL+ or Artistic) and BSD Group: Development/Libraries URL: http://search.cpan.org/dist/IO-Tty/ Source0: http://www.cpan.org/authors/id/T/TO/TODDR/IO-Tty-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(IO::File) +BuildRequires: perl(IO::Handle) BuildRequires: perl(Test::More) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) # don't "provide" private Perl libs %global _use_internal_dependency_generator 0 @@ -22,42 +23,35 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi %description IO::Tty and IO::Pty provide an interface to pseudo tty's. - %prep %setup -q -n IO-Tty-%{version} - %build -%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" 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 f -name '*.bs' -a -size 0 -exec rm -f {} ';' -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' -%{_fixperms} $RPM_BUILD_ROOT/* - +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' +%{_fixperms} %{buildroot}/* %check -##make test - - -%clean -rm -rf $RPM_BUILD_ROOT - +make test %files -%defattr(-,root,root,-) %doc ChangeLog README %{perl_vendorarch}/auto/IO/ %{perl_vendorarch}/IO/ %{_mandir}/man3/*.3pm* - %changelog +* Thu Nov 15 2012 Petr Šabata <contyk@xxxxxxxxxx> - 1.10-8 +- Fix the dependencies +- Re-enable the test suite +- Modernize the spec +- Correct the license tag + * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.10-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel