[perl-IO-Tty] Fix the dependencies, license, and re-enable the tests
Petr Šabata
psabata at fedoraproject.org
Thu Nov 15 11:47:51 UTC 2012
commit 10244d5461435a0c7e18561af1f3fe39792b8f24
Author: Petr Šabata <contyk at redhat.com>
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 at redhat.com> - 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 at lists.fedoraproject.org> - 1.10-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list