Fix dependencies and modernize the spec
This commit is contained in:
parent
f0e34f9bcc
commit
d667476d99
@ -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@redhat.com> - 1.008004-11
|
||||
- Add missing buildtime dependencies
|
||||
- Drop useless deps
|
||||
- Drop command macros
|
||||
- Modernize the spec
|
||||
|
||||
* Mon Aug 20 2012 Petr Pisar <ppisar@redhat.com> - 1.008004-10
|
||||
- Fix CSH support (bug #849609)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user