diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..76ad4a4 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,28 @@ +--- +#description_paragraphs: 3 +#description: |- +# override description from CPAN +#summary: override summary from CPAN +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_build: |- +# rm unused.files +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module diff --git a/local-lib-2.000019.tar.gz b/local-lib-2.000019.tar.gz deleted file mode 100644 index 5aa36fd..0000000 --- a/local-lib-2.000019.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:36ad327a099667b8cb292c10229c33849c787470e0b978e4963b69b6df4c0b01 -size 62149 diff --git a/local-lib-2.000023.tar.gz b/local-lib-2.000023.tar.gz new file mode 100644 index 0000000..97be11b --- /dev/null +++ b/local-lib-2.000023.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0cf6f5916fc5ae86ef30c5df87414fd3587eff40642bc85ab17a59047bb82099 +size 64446 diff --git a/perl-local-lib.changes b/perl-local-lib.changes index 9fe0fad..f8294c4 100644 --- a/perl-local-lib.changes +++ b/perl-local-lib.changes @@ -1,3 +1,35 @@ +------------------------------------------------------------------- +Fri Jun 9 06:42:51 UTC 2017 - coolo@suse.com + +- updated to 2.000023 + see /usr/share/doc/packages/perl-local-lib/Changes + + 2.000023 - 2017-06-07 + - fix use of 'note' in test for compatibilty with old Test::More + + 2.000022 - 2017-06-07 + - releasing as stable + + 2.000_021 - 2017-04-23 + - account for an empty SHELL variable when detecting shell + - author test cleanups + - bootstrapping option --no-manpages now affects bootstrapping process, not + just later module installs + - cope with home directories with spaces when bootstrapping with old CPAN.pm + + 2.000_020 - 2016-10-18 + - fix handling of inc_version_list + - don't load strict or warnings outside author mode + - load and use Cwd when we're printing and exiting + - use loaded Cwd/Win32::Cwd if it's available + - handle relative paths in current executable + - don't try to run current executable in embedded perl + - handle relative directories better + - fix shell test for powershell 1 and group policy restricted environments + - avoid user init files in shell test + - use safer format to check environment in shell test + - many test cleanups + ------------------------------------------------------------------- Fri May 20 05:12:37 UTC 2016 - coolo@suse.com diff --git a/perl-local-lib.spec b/perl-local-lib.spec index c79fd95..2ed62eb 100644 --- a/perl-local-lib.spec +++ b/perl-local-lib.spec @@ -1,8 +1,7 @@ -# vim: set ts=4 sw=4 et: # # spec file for package perl-local-lib # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,16 +17,16 @@ Name: perl-local-lib -Version: 2.000019 +Version: 2.000023 Release: 0 +%define cpan_name local-lib Summary: Create and Use a Local Lib/ for Perl Modules with Perl5lib License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl -%define cpan_name local-lib -Source: http://www.cpan.org/authors/id/H/HA/HAARG/%{cpan_name}-%{version}.tar.gz -Source1: perl-homedir.sh -Source2: perl-homedir.csh Url: http://search.cpan.org/dist/local-lib/ +Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros @@ -36,6 +35,9 @@ BuildRequires: perl(ExtUtils::Install) >= 1.43 BuildRequires: perl(ExtUtils::MakeMaker) >= 7.00 BuildRequires: perl(Module::Build) >= 0.360000 Requires: perl(CPAN) >= 1.82 +Requires: perl(ExtUtils::Install) >= 1.43 +Requires: perl(ExtUtils::MakeMaker) >= 7.00 +Requires: perl(Module::Build) >= 0.360000 %{perl_requires} %description @@ -53,72 +55,41 @@ or collection of modules. Useful in cases like when an upstream maintainer hasn't applied a patch to a module of theirs that you need for your application. -%package -n perl-homedir -Summary: Per-user Perl local::lib setup -Group: Development/Libraries/Perl -Requires: %{name} = %{version}-%{release} -Requires: /usr/bin/cpan +On import, local::lib sets the following environment variables to +appropriate values: -%description -n perl-homedir -perl-homedir configures the system to automatically create a ~/perl5 -directory in each user's $HOME on user login. This allows each user to -install and CPAN packages via the CPAN to their $HOME, with no additional -configuration or privliges, and without installing them system-wide. +* PERL_MB_OPT -If you want your users to be able to install and use their own Perl modules, -install this package. +* PERL_MM_OPT + +* PERL5LIB + +* PATH + +* PERL_LOCAL_LIB_ROOT + +When possible, these will be appended to instead of overwritten entirely. + +These values are then available for reference by any code after import. %prep -%setup -q -n "local-lib-%{version}" -%__chmod 0644 Changes +%setup -q -n %{cpan_name}-%{version} %build -unset PERL_MM_OPT -%__perl Makefile.PL INSTALLDIRS=vendor PREFIX="%{_prefix}" -%__make %{?jobs:-j%{jobs}} - -%install -unset PERL_MM_OPT -%perl_make_install - -%__chmod 0644 "%{buildroot}%{perl_vendorlib}/local/lib.pm" -%__chmod 0644 "%{buildroot}%{perl_vendorlib}/POD2"/*/"local/lib.pod" -%__chmod 0644 "%{buildroot}%{perl_man3dir}"/POD2::*::local::lib.%{perl_man3ext} - -%perl_process_packlist - -%__install -d "%{buildroot}%{_sysconfdir}/profile.d" -%__install -m0644 "%{SOURCE1}" "%{SOURCE2}" "%{buildroot}%{_sysconfdir}/profile.d/" +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} %check -unset PERL_MM_OPT -%__make test +%{__make} test -%files -%defattr(-,root,root) -%doc Changes -%dir %{perl_vendorlib}/lib -%dir %{perl_vendorlib}/lib/core -%{perl_vendorlib}/lib/core/only.pm -%dir %{perl_vendorlib}/local/ -%{perl_vendorlib}/local/lib.pm -%dir %{perl_vendorarch}/auto/local -%{perl_vendorarch}/auto/local/lib -%doc %{perl_man3dir}/lib::core::only.%{perl_man3ext}%{ext_man} -%doc %{perl_man3dir}/local::lib.%{perl_man3ext}%{ext_man} +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist -%dir %{perl_vendorlib}/POD2 -%lang(de) %dir %{perl_vendorlib}/POD2/DE -%lang(de) %dir %{perl_vendorlib}/POD2/DE/local -%lang(de) %{perl_vendorlib}/POD2/DE/local/lib.pod -%lang(de) %doc %{perl_man3dir}/POD2::DE::local::lib.%{perl_man3ext}%{ext_man} -%lang(pt_BR) %dir %{perl_vendorlib}/POD2/PT_BR -%lang(pt_BR) %dir %{perl_vendorlib}/POD2/PT_BR/local -%lang(pt_BR) %{perl_vendorlib}/POD2/PT_BR/local/lib.pod -%lang(pt_BR) %doc %{perl_man3dir}/POD2::PT_BR::local::lib.%{perl_man3ext}%{ext_man} - -%files -n perl-homedir -%defattr(-,root,root) -%config(noreplace) %{_sysconfdir}/profile.d/* +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes README +%license LICENSE %changelog