From 34546e1eb0e6db7039c171a0bb217be8501781f4cc2e33161af4fbd5edc220c2 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sun, 8 Jun 2014 10:30:56 +0000 Subject: [PATCH] =?UTF-8?q?-=20updated=20to=201.7004=20=20=20*=20Set=20HOM?= =?UTF-8?q?E=20to=20a=20writable=20directory=20for=20tests.=20=20=20=20=20?= =?UTF-8?q?Thanks=20to=20David=20Su=C3=A1rez=20for=20the=20bug=20report.?= =?UTF-8?q?=20(Closes:=20#750341)=20=20=20*=20Fixes=20"--uninstall=20menti?= =?UTF-8?q?oned=20twice=20on=20man=20page"=20=20=20=20=20(Closes:=20#74130?= =?UTF-8?q?2)=20=20=20*=20Many=20other=20changes=20in=202=20years?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-App-cpanminus?expand=0&rev=16 --- App-cpanminus-1.5010.tar.gz | 3 -- App-cpanminus-1.7004.tar.gz | 3 ++ perl-App-cpanminus.changes | 10 +++++ perl-App-cpanminus.spec | 84 +++++++++++-------------------------- 4 files changed, 38 insertions(+), 62 deletions(-) delete mode 100644 App-cpanminus-1.5010.tar.gz create mode 100644 App-cpanminus-1.7004.tar.gz diff --git a/App-cpanminus-1.5010.tar.gz b/App-cpanminus-1.5010.tar.gz deleted file mode 100644 index 3ca472d..0000000 --- a/App-cpanminus-1.5010.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a7322b6bfd72412ec86e3258d1f173ad1379f625ca35b1acdc5162eee5fd0edd -size 91084 diff --git a/App-cpanminus-1.7004.tar.gz b/App-cpanminus-1.7004.tar.gz new file mode 100644 index 0000000..66700f0 --- /dev/null +++ b/App-cpanminus-1.7004.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:57ee310081bd30fa103caad9d80e68e03f838f7b39ec70dfa5d771c6d7ef9284 +size 291443 diff --git a/perl-App-cpanminus.changes b/perl-App-cpanminus.changes index ecb702f..4a9a215 100644 --- a/perl-App-cpanminus.changes +++ b/perl-App-cpanminus.changes @@ -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 diff --git a/perl-App-cpanminus.spec b/perl-App-cpanminus.spec index 11f66e3..fb2b94d 100644 --- a/perl-App-cpanminus.spec +++ b/perl-App-cpanminus.spec @@ -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