[perl-PerlIO-via-symlink] Modernize spec file

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

 



commit edd0ada5ca7bdbc3fa3bb2f49d780d046137746c
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Thu Jul 18 15:23:54 2013 +0200

    Modernize spec file

 perl-PerlIO-via-symlink.spec |   32 ++++++++++++++++++--------------
 1 files changed, 18 insertions(+), 14 deletions(-)
---
diff --git a/perl-PerlIO-via-symlink.spec b/perl-PerlIO-via-symlink.spec
index 9f50897..d9e8955 100644
--- a/perl-PerlIO-via-symlink.spec
+++ b/perl-PerlIO-via-symlink.spec
@@ -6,11 +6,20 @@ License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/PerlIO-via-symlink/
 Source0:        http://www.cpan.org/modules/by-module/PerlIO/PerlIO-via-symlink-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
-BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl
+BuildRequires:  perl(inc::Module::Install)
+# Run-time:
+BuildRequires:  perl(Errno)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(Symbol)
+BuildRequires:  perl(warnings)
+# Tests:
+BuildRequires:  perl(Config)
+BuildRequires:  perl(POSIX)
+BuildRequires:  perl(Test)
 BuildRequires:  perl(Test::More)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 The PerlIO layer symlink allows you to create a symbolic link by writing to
@@ -18,29 +27,23 @@ the file handle.
 
 %prep
 %setup -q -n PerlIO-via-symlink-%{version}
+# Remove bundled modules, CPAN RT#86016
+rm -rf inc/*
+sed -i -e '/^inc\//d' MANIFEST
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
+make pure_install DESTDIR=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null \;
-
 chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
 
 %check
 make test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc CHANGES README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
@@ -48,6 +51,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Wed Jul 17 2013 Petr Pisar <ppisar@xxxxxxxxxx> - 0.05-17
 - Perl 5.18 rebuild
+- Modernize spec file
 
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.05-16
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_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





[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