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

90 lines
2.5 KiB
RPMSpec
Raw Normal View History

2010-03-16 07:57:55 +00:00
Name: perl-App-cpanminus
2010-04-16 07:16:28 +00:00
Version: 0.9935
2010-04-29 17:39:42 +00:00
Release: 3%{?dist}
2010-03-16 07:57:55 +00:00
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)
2010-03-16 08:03:36 +00:00
BuildRequires: perl(Test::More)
2010-03-16 07:57:55 +00:00
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}
2010-04-19 07:59:01 +00:00
%{?filter_setup:
%filter_from_requires /^perl(App::cpanminus::script)$/d
%?perl_default_filter
}
2010-03-16 07:57:55 +00:00
%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
2010-04-29 17:39:42 +00:00
* Thu Apr 29 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.9935-3
- Mass rebuild with perl-5.12.0
2010-04-19 07:59:01 +00:00
* Tue Mar 16 2010 Marcela Mašláňová <mmaslano@redhat.com> 0.9935-2
- filter unwanted requires
2010-04-16 07:16:28 +00:00
* Tue Mar 16 2010 Marcela Mašláňová <mmaslano@redhat.com> 0.9935-1
- update
2010-03-16 07:57:55 +00:00
* 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.