[perl-File-ShareDir-PAR/f21] Specify all dependencies; Modernize spec file

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

 



commit df3f921891ead1994733ae89522e2ddfe4d8f0c7
Author: Jitka Plesnikova <jplesnik@xxxxxxxxxx>
Date:   Thu Feb 12 14:51:25 2015 +0100

    Specify all dependencies; Modernize spec file

 perl-File-ShareDir-PAR.spec |   50 +++++++++++++++++++++++++-----------------
 1 files changed, 30 insertions(+), 20 deletions(-)
---
diff --git a/perl-File-ShareDir-PAR.spec b/perl-File-ShareDir-PAR.spec
index d17909f..406bd40 100644
--- a/perl-File-ShareDir-PAR.spec
+++ b/perl-File-ShareDir-PAR.spec
@@ -1,26 +1,35 @@
 Name:           perl-File-ShareDir-PAR
 Version:        0.06
-Release:        13%{?dist}
+Release:        14%{?dist}
 Summary:        File::ShareDir with PAR support
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/File-ShareDir-PAR/
 Source0:        http://www.cpan.org/authors/id/S/SM/SMUELLER/File-ShareDir-PAR-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
+BuildRequires:  perl(inc::Module::Install)
+# Run-time
+BuildRequires:  perl(base)
+BuildRequires:  perl(Carp)
 BuildRequires:  perl(Class::Inspector) >= 1.12
-BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Config)
+BuildRequires:  perl(constant)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(File::Path)
 BuildRequires:  perl(File::ShareDir) >= 1.02
+BuildRequires:  perl(File::Spec)
 BuildRequires:  perl(PAR) >= 0.989
+BuildRequires:  perl(strict)
+BuildRequires:  perl(vars)
+BuildRequires:  perl(warnings)
+# Test
+BuildRequires:  perl(Cwd)
+BuildRequires:  perl(PAR::Dist)
 BuildRequires:  perl(Test::More) >= 0.47
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 Requires:       perl(File::ShareDir) >= 1.02
 Requires:       perl(PAR) >= 0.989
 
-# RPM 4.8 style:
-%filter_from_requires /perl(File::ShareDir)$/d
-%filter_setup
-# RPM 4.9 style
 %global __requires_exclude %{?__requires_exclude:__requires_exclude|}perl\\(File::ShareDir\\)$
 
 %description
@@ -29,36 +38,37 @@ tries hard to be compatible with PAR packaged applications.
 
 %prep
 %setup -q -n File-ShareDir-PAR-%{version}
+rm -r inc
+sed -i -e '/^inc\// d' MANIFEST
+find -type f -exec chmod -x {} +
 
 %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 -depth -type d -exec rmdir {} 2>/dev/null \;
-rm -rf $RPM_BUILD_ROOT/blib/lib/auto/share/dist/File-ShareDir-PAR/
-rm -rf $RPM_BUILD_ROOT/blib/lib/auto/share/module/File-ShareDir-PAR/test_file.txt
+rm -rf $RPM_BUILD_ROOT/%{perl_vendorlib}/auto/share/dist/File-ShareDir-PAR
+rm -rf $RPM_BUILD_ROOT/%{perl_vendorlib}/auto/share/module/File-ShareDir-PAR/test_file.txt
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
 make test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
-%doc Changes LICENSE
+%license LICENSE
+%doc Changes
 %{perl_vendorlib}/File/ShareDir
 %{perl_vendorlib}/auto/share/*/File-ShareDir-PAR
 %{_mandir}/man3/*
 
 %changelog
+* Thu Feb 12 2015 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 0.06-14
+- Specify all dependencies (BZ#1190828) 
+- Modernize spec file
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.06-13
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_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