perl-App-cpanminus/perl-App-cpanminus.spec
Petr Písař ea39459f42 1.3000 bump
Consolidate dependencies.
2011-03-03 15:03:16 +01:00

126 lines
3.6 KiB
RPMSpec

Name: perl-App-cpanminus
Version: 1.3000
Release: 1%{?dist}
Summary: Library for get, unpack, build and install CPAN modules
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/App-cpanminus/
Source0: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?filter_setup:
%filter_from_requires /^perl(App::cpanminus::script)$/d
%?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
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
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 \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%defattr(-,root,root,-)
%doc Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*
%files -n cpanminus
%defattr(-,root,root,-)
%doc README
%{_bindir}/cpanm
%{_mandir}/man1/*
%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
- 1.2001 bump
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1008-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu Jan 27 2011 Petr Pisar <ppisar@redhat.com> - 1.1008-1
- 1.1008 bump
* Mon Jan 24 2011 Petr Pisar <ppisar@redhat.com> - 1.1007-1
- 1.1007 bump
* Mon Jan 3 2011 Petr Sabata <psabata@redhat.com> - 1.1006-1
- 1.1006 bump
* Thu Dec 2 2010 Petr Sabata <psabata@redhat.com> - 1.1004-1
- 1.1004 bump
* Fri Nov 19 2010 Petr Pisar <ppisar@redhat.com> - 1.1002-1
- 1.1002 bump
* Mon Sep 27 2010 Petr Pisar <ppisar@redhat.com> - 1.0015-1
- 1.0015 bump
* Thu Sep 23 2010 Petr Pisar <ppisar@redhat.com> - 1.0014-1
- 1.0014 bump
* Tue Sep 14 2010 Petr Pisar <ppisar@redhat.com> - 1.0013-1
- 1.0013 bump
- Correct description spelling
* Thu Apr 29 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.9935-3
- Mass rebuild with perl-5.12.0
* Tue Mar 16 2010 Marcela Mašláňová <mmaslano@redhat.com> 0.9935-2
- filter unwanted requires
* Tue Mar 16 2010 Marcela Mašláňová <mmaslano@redhat.com> 0.9935-1
- update
* Tue Mar 16 2010 Marcela Mašláňová <mmaslano@redhat.com> 0.9923-1
- update
- create sub-package
* Tue Mar 2 2010 Marcela Mašláňová <mmaslano@redhat.com> 0.9911-1
- new version & fix description
* Tue Feb 23 2010 Marcela Mašláňová <mmaslano@redhat.com> 0.09-1
- Specfile autogenerated by cpanspec 1.78.