diff --git a/perl-IO-Tty.spec b/perl-IO-Tty.spec index 6077242..23d630c 100644 --- a/perl-IO-Tty.spec +++ b/perl-IO-Tty.spec @@ -1,15 +1,12 @@ -%{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)} - Name: perl-IO-Tty Version: 1.02 -Release: 3 - +Release: 4%{?dist} Summary: Perl interface to pseudo tty's License: GPL or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/IO-Tty/ -Source0: http://www.cpan.org/authors/id/R/RG/RGIERSIG/IO-Tty-1.02.tar.gz +Source0: http://www.cpan.org/authors/id/R/RG/RGIERSIG/IO-Tty-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl @@ -23,22 +20,20 @@ IO::Tty and IO::Pty provide an interface to pseudo tty's. %build -CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor -make OPTIMIZE="$RPM_OPT_FLAGS" +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -make install \ - PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \ - INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib} -find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \ - -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';' +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 -type d -depth -exec rmdir {} 2>/dev/null ';' chmod -R u+w $RPM_BUILD_ROOT/* -%check || : +%check make test @@ -49,13 +44,16 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc ChangeLog README -%{perl_vendorarch}/auto/IO -%{perl_vendorarch}/IO -%{_mandir}/man3/*.3* +%{perl_vendorarch}/auto/IO/ +%{perl_vendorarch}/IO/ +%{_mandir}/man3/IO::*ty*.3* %changelog -* Fri Apr 7 2005 Michael Schwendt +* Tue Jan 17 2006 Ville Skyttä - 1.02-4 +- Rebuild, cosmetic cleanups. + +* Fri Apr 7 2005 Michael Schwendt - 1.02-3 - rebuilt * Sun Feb 1 2004 Ville Skyttä - 0:1.02-0.fdr.2