perl-App-cpanminus/perl-App-cpanminus.spec

76 lines
2.1 KiB
RPMSpec
Raw Normal View History

2010-03-16 07:57:55 +00:00
Name: perl-App-cpanminus
Version: 0.9923
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
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(LWP)
BuildRequires: perl(Module::Build)
Requires: perl(LWP)
Requires: perl(Module::Build)
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 plugins 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.
Deps-free, zero-conf, standalone...
%prep
%setup -q -n App-cpanminus-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $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 -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*
%files -n cpanminus
%defattr(-,root,root,-)
%{_bindir}/cpanm
%changelog
* 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.