Last active
March 22, 2018 14:08
-
-
Save psychonaut/3810976f2e024b90cae616b5521233ec to your computer and use it in GitHub Desktop.
RPM spec file for perl-App-cpanminus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: perl-App-cpanminus | |
Version: 1.7043 | |
Release: 1%{?dist} | |
Summary: Get, unpack, build and install modules from CPAN | |
License: GPL+ or Artistic | |
Group: Development/Libraries | |
URL: http://search.cpan.org/dist/App-cpanminus/ | |
Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/App-cpanminus-%{version}.tar.gz | |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
BuildArch: noarch | |
BuildRequires: perl >= 0:5.008001 | |
BuildRequires: perl(ExtUtils::MakeMaker) | |
BuildRequires: perl(Test::More) | |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) | |
%description | |
cpanminus is a script to get, unpack, build and install modules from CPAN | |
and does nothing else. | |
%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 PERL_INSTALL_ROOT=$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 cpanfile LICENSE META.json README | |
%{perl_vendorlib}/* | |
%{_mandir}/man3/* | |
%{_mandir}/man1/* | |
%{_bindir}/cpanm | |
%changelog | |
* Thu Mar 22 2018 [email protected] 1.7043-1 | |
- Specfile autogenerated by cpanspec 1.78. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment