1.3000 bump
Consolidate dependencies.
This commit is contained in:
parent
0e9156448b
commit
ea39459f42
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ App-cpanminus-0.9935.tar.gz
|
|||||||
/App-cpanminus-1.1007.tar.gz
|
/App-cpanminus-1.1007.tar.gz
|
||||||
/App-cpanminus-1.1008.tar.gz
|
/App-cpanminus-1.1008.tar.gz
|
||||||
/App-cpanminus-1.2001.tar.gz
|
/App-cpanminus-1.2001.tar.gz
|
||||||
|
/App-cpanminus-1.3000.tar.gz
|
||||||
|
@ -1,63 +1,61 @@
|
|||||||
Name: perl-App-cpanminus
|
Name: perl-App-cpanminus
|
||||||
Version: 1.2001
|
Version: 1.3000
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Library for get, unpack, build and install CPAN modules
|
Summary: Library for get, unpack, build and install CPAN modules
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
URL: http://search.cpan.org/dist/App-cpanminus/
|
URL: http://search.cpan.org/dist/App-cpanminus/
|
||||||
Source0: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-%{version}.tar.gz
|
Source0: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
BuildRequires: perl(LWP)
|
|
||||||
BuildRequires: perl(Module::Build)
|
|
||||||
BuildRequires: perl(Test::More)
|
BuildRequires: perl(Test::More)
|
||||||
Requires: perl(LWP)
|
|
||||||
Requires: perl(Module::Build)
|
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
%description
|
|
||||||
Why? It's dependency free, requires zero configuration, and stands alone
|
|
||||||
but it's maintainable and extensible with plug-ins and friendly to shell
|
|
||||||
scripting. When running, it requires only 10MB of RAM.
|
|
||||||
|
|
||||||
%package -n cpanminus
|
|
||||||
License: GPL+ or Artistic
|
|
||||||
Group: Development/Libraries
|
|
||||||
Summary: Get, unpack, build and install modules from CPAN
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
|
|
||||||
%description -n cpanminus
|
|
||||||
cpanminus is a script to get, unpack, build and install modules from CPAN.
|
|
||||||
Dependency-free, zero configuration, standalone...
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -n App-cpanminus-%{version}
|
|
||||||
%{?filter_setup:
|
%{?filter_setup:
|
||||||
%filter_from_requires /^perl(App::cpanminus::script)$/d
|
%filter_from_requires /^perl(App::cpanminus::script)$/d
|
||||||
%?perl_default_filter
|
%?perl_default_filter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%description
|
||||||
|
Why? It's dependency free, requires zero configuration, and stands alone
|
||||||
|
but it's maintainable and extensible with plug-ins and friendly to shell
|
||||||
|
scripting. When running, it requires only 10 MB of RAM.
|
||||||
|
|
||||||
|
# cpanminus subpackage exists only to allow `yum install cpanminus' instead of
|
||||||
|
# `yum install perl-App-cpanminus'.
|
||||||
|
%package -n cpanminus
|
||||||
|
License: GPL+ or Artistic
|
||||||
|
Group: Development/Libraries
|
||||||
|
Summary: Get, unpack, build and install modules from CPAN
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: perl(Cwd)
|
||||||
|
Requires: perl(File::Path)
|
||||||
|
Requires: perl(File::Spec)
|
||||||
|
Requires: perl(Getopt::Long)
|
||||||
|
Requires: perl(LWP)
|
||||||
|
Requires: perl(Module::Build)
|
||||||
|
Requires: perl(Parse::CPAN::Meta)
|
||||||
|
|
||||||
|
%description -n cpanminus
|
||||||
|
cpanminus is a script to get, unpack, build and install modules from CPAN.
|
||||||
|
Dependency-free, zero configuration, standalone…
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n App-cpanminus-%{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 DESTDIR=$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 f -name .packlist -exec rm -f {} \;
|
||||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||||
|
|
||||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc Changes
|
%doc Changes
|
||||||
@ -71,6 +69,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 03 2011 Petr Pisar <ppisar@redhat.com> - 1.3000-1
|
||||||
|
- 1.3000 bump
|
||||||
|
- Clean up spec file
|
||||||
|
- Require modules needed by cpanm
|
||||||
|
|
||||||
* Thu Feb 17 2011 Petr Sabata <psabata@redhat.com> - 1.2001-1
|
* Thu Feb 17 2011 Petr Sabata <psabata@redhat.com> - 1.2001-1
|
||||||
- 1.2001 bump
|
- 1.2001 bump
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user