Specify all dependencies
This commit is contained in:
parent
a097e9cfa5
commit
d8720eb9f5
@ -1,20 +1,21 @@
|
|||||||
Name: perl-File-Which
|
Name: perl-File-Which
|
||||||
Version: 1.09
|
Version: 1.09
|
||||||
Release: 10%{?dist}
|
Release: 11%{?dist}
|
||||||
Summary: Portable implementation of the 'which' utility
|
Summary: Portable implementation of the 'which' utility
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: http://search.cpan.org/dist/File-Which/
|
URL: http://search.cpan.org/dist/File-Which/
|
||||||
Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/File-Which-%{version}.tar.gz
|
Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/File-Which-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
%if !%{defined perl_bootstrap}
|
%if !%{defined perl_bootstrap}
|
||||||
|
BuildRequires: perl(constant)
|
||||||
|
BuildRequires: perl(Exporter)
|
||||||
|
BuildRequires: perl(File::Spec)
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
BuildRequires: perl(Test::Script)
|
BuildRequires: perl(Test::Script)
|
||||||
%endif
|
%endif
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
|
||||||
%description
|
%description
|
||||||
File::Which is a portable implementation (in Perl) of 'which', and can
|
File::Which is a portable implementation (in Perl) of 'which', and can
|
||||||
@ -23,35 +24,25 @@ installed somewhere in your PATH, or just check for its existence. It
|
|||||||
includes the command-line utility 'pwhich' which has the same function
|
includes the command-line utility 'pwhich' which has the same function
|
||||||
as 'which'.
|
as 'which'.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n File-Which-%{version}
|
%setup -q -n File-Which-%{version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
||||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
|
chmod -R u+w %{buildroot}/*
|
||||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if !%{defined perl_bootstrap}
|
%if !%{defined perl_bootstrap}
|
||||||
make test
|
make test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc Changes README
|
%doc Changes README
|
||||||
%{_bindir}/pwhich
|
%{_bindir}/pwhich
|
||||||
%{perl_vendorlib}/File/
|
%{perl_vendorlib}/File/
|
||||||
@ -60,6 +51,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 24 2012 Petr Šabata <contyk@redhat.com> - 1.09-11
|
||||||
|
- Specify all dependencies
|
||||||
|
- Modernize spec
|
||||||
|
- Drop command macros
|
||||||
|
|
||||||
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-10
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-10
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user