[perl-IO-Prompt] Modernize spec file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 6e4a47faf6a38ecc6cf862e05283195729e05071
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Wed Nov 7 11:17:47 2012 +0100

    Modernize spec file

 perl-IO-Prompt.spec |   29 ++++++-----------------------
 1 files changed, 6 insertions(+), 23 deletions(-)
---
diff --git a/perl-IO-Prompt.spec b/perl-IO-Prompt.spec
index bb98340..cd7a937 100644
--- a/perl-IO-Prompt.spec
+++ b/perl-IO-Prompt.spec
@@ -1,3 +1,7 @@
+# tests require working /dev/tty - disabled by default for koji
+# see https://rt.cpan.org/Public/Bug/Display.html?id=54807
+%bcond_with     check
+
 Name:           perl-IO-Prompt
 Summary:        Interactively prompt for user input
 %global cpanver 0.997002
@@ -7,14 +11,7 @@ License:        GPL+ or Artistic
 Group:          Development/Libraries
 Source0:        http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/IO-Prompt-%{cpanver}.tar.gz 
 URL:            http://search.cpan.org/dist/IO-Prompt
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 BuildArch:      noarch
-
-# tests require working /dev/tty - disabled by default for koji
-# see https://rt.cpan.org/Public/Bug/Display.html?id=54807
-%bcond_with     check
-
 BuildRequires:  perl(IO::Handle)
 BuildRequires:  perl(POSIX)
 BuildRequires:  perl(Term::ReadKey)
@@ -23,7 +20,7 @@ BuildRequires:  perl(Test::Pod)
 BuildRequires:  perl(Test::Pod::Coverage)
 BuildRequires:  perl(version)
 BuildRequires:  perl(Want)
-
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %{?perl_default_filter}
 
@@ -31,28 +28,20 @@ BuildRequires:  perl(Want)
 An object-oriented way to prompt for user input -- and control how the user is
 prompted.
 
-
 %prep
 %setup -q -n IO-Prompt-%{cpanver}
-
-sed -i 's/\r//' t/*.t
-
-find . -type f -exec chmod -c -x {} ';'
+find examples -type f -exec chmod -x {} +
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
-
 %install
-rm -rf %{buildroot}
 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 {} ';'
-find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
 %{_fixperms} %{buildroot}/*
 
-
 %check
 %if %{with check}
     make test
@@ -60,13 +49,7 @@ find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
     echo "Not running tests unless --with check is specified"
 %endif
 
-
-%clean
-rm -rf %{buildroot}
-
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README examples/
 %{perl_vendorlib}/*
 %{_mandir}/man3/*.3*
--
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



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux