diff --git a/.cvsignore b/.cvsignore index e69de29..98f7abf 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +App-cpanminus-0.9923.tar.gz diff --git a/perl-App-cpanminus.spec b/perl-App-cpanminus.spec new file mode 100644 index 0000000..6fa3498 --- /dev/null +++ b/perl-App-cpanminus.spec @@ -0,0 +1,75 @@ +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á 0.9923-1 +- update +- create sub-package + +* Tue Mar 2 2010 Marcela Mašláňová 0.9911-1 +- new version & fix description + +* Tue Feb 23 2010 Marcela Mašláňová 0.09-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..f4cf6dc 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c3d9886b8d2995359948b15be713eba7 App-cpanminus-0.9923.tar.gz