- updated to 1.7004
* Set HOME to a writable directory for tests. Thanks to David Suárez for the bug report. (Closes: #750341) * Fixes "--uninstall mentioned twice on man page" (Closes: #741302) * Many other changes in 2 years OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-App-cpanminus?expand=0&rev=16
This commit is contained in:
parent
c074294c4b
commit
34546e1eb0
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a7322b6bfd72412ec86e3258d1f173ad1379f625ca35b1acdc5162eee5fd0edd
|
||||
size 91084
|
3
App-cpanminus-1.7004.tar.gz
Normal file
3
App-cpanminus-1.7004.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:57ee310081bd30fa103caad9d80e68e03f838f7b39ec70dfa5d771c6d7ef9284
|
||||
size 291443
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 8 10:08:03 UTC 2014 - coolo@suse.com
|
||||
|
||||
- updated to 1.7004
|
||||
* Set HOME to a writable directory for tests.
|
||||
Thanks to David Suárez for the bug report. (Closes: #750341)
|
||||
* Fixes "--uninstall mentioned twice on man page"
|
||||
(Closes: #741302)
|
||||
* Many other changes in 2 years
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 01 15:16:57 UTC 2012 - pascal.bleser@opensuse.org
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-App-cpanminus
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,85 +17,51 @@
|
||||
|
||||
|
||||
Name: perl-App-cpanminus
|
||||
Version: 1.5010
|
||||
Version: 1.7004
|
||||
Release: 0
|
||||
Summary: Get, unpack, build and install modules from CPAN
|
||||
%define cpan_name App-cpanminus
|
||||
Summary: get, unpack, build and install modules from CPAN
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Source: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/App-cpanminus-%{version}.tar.gz
|
||||
Url: http://search.cpan.org/dist/App-cpanminus
|
||||
Url: http://search.cpan.org/dist/App-cpanminus/
|
||||
Source: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{perl_requires}
|
||||
BuildRequires: make
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(ExtUtils::Install) >= 1.46
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
|
||||
BuildRequires: perl(Module::Build) >= 0.36
|
||||
Requires: perl(ExtUtils::Install) >= 1.46
|
||||
Requires: perl(ExtUtils::MakeMaker) >= 6.30
|
||||
Requires: perl(ExtUtils::MakeMaker) >= 6.31
|
||||
Requires: perl(Module::Build) >= 0.36
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
cpanminus is a script to get, unpack, build and install modules from CPAN.
|
||||
Why? It's dependency free, requires zero configuration, and stands alone.
|
||||
When running, it requires only 10MB of RAM.
|
||||
cpanminus is a script to get, unpack, build and install modules from CPAN
|
||||
and does nothing else.
|
||||
|
||||
%package -n cpanm
|
||||
Summary: Get, unpack, build and install modules from CPAN
|
||||
Group: Development/Tools/Other
|
||||
Requires: %{name} = %{version}
|
||||
%if 0%{?suse_version} >= 1120
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%description -n cpanm
|
||||
cpanminus is a script to get, unpack, build and install modules from CPAN.
|
||||
Why? It's dependency free, requires zero configuration, and stands alone.
|
||||
When running, it requires only 10MB of RAM.
|
||||
It's dependency free (can bootstrap itself), requires zero configuration,
|
||||
and stands alone. When running, it requires only 10MB of RAM.
|
||||
|
||||
%prep
|
||||
%setup -q -n "App-cpanminus-%{version}"
|
||||
%__sed -i '/^auto_install/d' Makefile.PL
|
||||
%__sed -i 's|6.31|6.30|g' Makefile.PL
|
||||
|
||||
%__grep -rlE 'ExtUtils::MakeMaker.*6\.' . | while read f; do
|
||||
%__perl -p -i -e 's|^(.+ExtUtils::MakeMaker.*?)(6\.\d\d)(.*)$|${1}6.30$3|' "$f"
|
||||
done
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||||
%__make %{?jobs:-j%{jobs}}
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
mkdir .rpmdoc
|
||||
for f in Changes README; do
|
||||
%__ln_s -f ../%{name}/$f .rpmdoc/$f
|
||||
done
|
||||
|
||||
%check
|
||||
%__make test
|
||||
|
||||
%clean
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc Changes README
|
||||
%dir %{perl_vendorlib}/App
|
||||
%{perl_vendorlib}/App/cpanminus.pm
|
||||
%dir %{perl_vendorarch}/auto/App
|
||||
%{perl_vendorarch}/auto/App/cpanminus
|
||||
%doc %{perl_man3dir}/App::cpanminus.%{perl_man3ext}%{ext_man}
|
||||
|
||||
%files -n cpanm
|
||||
%defattr(-,root,root)
|
||||
%doc .rpmdoc/*
|
||||
%{_bindir}/cpanm
|
||||
%doc %{_mandir}/man1/cpanm.1%{ext_man}
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes cpanfile LICENSE README
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user