- create sub-package
This commit is contained in:
Marcela Mašláňová 2010-03-16 07:57:55 +00:00
parent 893cf0704b
commit bd7694ea51
3 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1 @@
App-cpanminus-0.9923.tar.gz

75
perl-App-cpanminus.spec Normal file
View File

@ -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á <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.

View File

@ -0,0 +1 @@
c3d9886b8d2995359948b15be713eba7 App-cpanminus-0.9923.tar.gz