[perl-local-lib] Fix dependencies and modernize the spec

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

 



commit d667476d99785af5f4959a6b77af6cb19f1d35ba
Author: Petr Šabata <contyk@xxxxxxxxxx>
Date:   Tue Nov 20 18:50:40 2012 +0100

    Fix dependencies and modernize the spec

 perl-local-lib.spec |   38 ++++++++++++++++++++------------------
 1 files changed, 20 insertions(+), 18 deletions(-)
---
diff --git a/perl-local-lib.spec b/perl-local-lib.spec
index 83c906e..1780acc 100644
--- a/perl-local-lib.spec
+++ b/perl-local-lib.spec
@@ -1,6 +1,6 @@
 Name:       perl-local-lib
 Version:    1.008004
-Release:    10%{?dist}
+Release:    11%{?dist}
 # lib/local/lib.pm -> GPL+ or Artistic
 License:    GPL+ or Artistic
 Group:      Development/Libraries
@@ -9,28 +9,26 @@ Source:     http://search.cpan.org/CPAN/authors/id/A/AP/APEIRON/local-lib-%{vers
 # Allow evaluation in CSH, RHBZ #849609, CPAN RT #60072
 Patch0:     local-lib-1.008004-Append-semicolon-to-setenv.patch
 Url:        http://search.cpan.org/dist/local-lib
-Requires:   perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:   perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 BuildArch:  noarch
 
 Source10:   perl-homedir.sh
 Source11:   perl-homedir.csh
 
-BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
+BuildRequires: perl(Carp)
+BuildRequires: perl(Cwd)
 BuildRequires: perl(CPAN) >= 1.82
+BuildRequires: perl(ExtUtils::Install) >= 1.43
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
+BuildRequires: perl(File::Path)
+BuildRequires: perl(File::Spec)
+BuildRequires: perl(inc::Module::Install)
 BuildRequires: perl(Module::Build) >= 0.36
-# testing...
+# Tests only
 BuildRequires: perl(Capture::Tiny)
+BuildRequires: perl(File::Temp)
 BuildRequires: perl(Test::More)
 
-### auto-added reqs!
-Requires:       perl(CPAN) >= 1.82
-Requires:       perl(ExtUtils::Install) >= 1.43
-Requires:       perl(ExtUtils::MakeMaker) >= 6.31
-Requires:       perl(Module::Build) >= 0.36
-
-### auto-added brs!
-BuildRequires:  perl(ExtUtils::Install) >= 1.43
-
 %{?perl_default_filter}
 
 %description
@@ -67,18 +65,16 @@ install this package.
 %prep
 %setup -q -n local-lib-%{version}
 %patch0 -p1
+rm -rf inc
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
+make pure_install DESTDIR=%{buildroot}
 find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
-
 %{_fixperms} %{buildroot}/*
-
 mkdir -p %{buildroot}%{_sysconfdir}/profile.d
 cp %{SOURCE10} %{buildroot}%{_sysconfdir}/profile.d/
 cp %{SOURCE11} %{buildroot}%{_sysconfdir}/profile.d/
@@ -95,6 +91,12 @@ make test
 %{_sysconfdir}/profile.d/*
 
 %changelog
+* Tue Nov 20 2012 Petr Šabata <contyk@xxxxxxxxxx> - 1.008004-11
+- Add missing buildtime dependencies
+- Drop useless deps
+- Drop command macros
+- Modernize the spec
+
 * Mon Aug 20 2012 Petr Pisar <ppisar@xxxxxxxxxx> - 1.008004-10
 - Fix CSH support (bug #849609)
 
--
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