commit 047da46700d790e22faa9c3af94adf895d528d6647ac5501cf1b0e06eb499623 Author: Stephan Kulow Date: Fri Oct 22 10:53:24 2021 +0000 Accepting request 926557 from home:tinita:branches:devel:languages:perl:CPAN-M New dependency for perl-CHI OBS-URL: https://build.opensuse.org/request/show/926557 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Mask?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Module-Mask-0.06.tar.gz b/Module-Mask-0.06.tar.gz new file mode 100644 index 0000000..7c06a99 --- /dev/null +++ b/Module-Mask-0.06.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d73f81ff21c9fa28102791e546ff257164b3025f7832544c8223fb87c1e7e77 +size 6348 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..ab24ed9 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,35 @@ +--- +#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: +# baz.patch: PATCH-FIX-OPENSUSE +#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 +#skip_doc: regexp_to_skip_for_doc.* +#add_doc: files to add to docs +#misc: |- +#anything else to be added to spec file +#follows directly after %files section, so it can contain new blocks or also +#changes to %files section diff --git a/perl-Module-Mask.changes b/perl-Module-Mask.changes new file mode 100644 index 0000000..5682271 --- /dev/null +++ b/perl-Module-Mask.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Oct 20 14:46:45 UTC 2021 - Tina Müller + +- Initial submission diff --git a/perl-Module-Mask.spec b/perl-Module-Mask.spec new file mode 100644 index 0000000..f6663f8 --- /dev/null +++ b/perl-Module-Mask.spec @@ -0,0 +1,64 @@ +# +# spec file for package perl-Module-Mask +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define cpan_name Module-Mask +Name: perl-Module-Mask +Version: 0.06 +Release: 0 +Summary: Pretend certain modules are not installed +License: Artistic-1.0 OR GPL-1.0-or-later +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/M/MA/MATTLAW/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(Module::Build) >= 0.400000 +BuildRequires: perl(Module::Util) >= 1.00 +Requires: perl(Module::Util) >= 1.00 +Recommends: perl(Test::Pod) >= 1.14 +Recommends: perl(Test::Pod::Coverage) >= 1.04 +%{perl_requires} + +%description +Sometimes you need to test what happens when a given module is not +installed. This module provides a way of temporarily hiding installed +modules from perl's require mechanism. The Module::Mask object adds itself +to @INC and blocks require calls to restricted modules. + +Module::Mask will not affect modules already loaded at time of +instantiation. + +%prep +%autosetup -n %{cpan_name}-%{version} + +%build +perl Build.PL installdirs=vendor +./Build build flags=%{?_smp_mflags} + +%check +./Build test + +%install +./Build install destdir=%{buildroot} create_packlist=0 +%perl_gen_filelist + +%files -f %{name}.files +%doc Changes README + +%changelog