From 98c7de7a3fd6df18dceae0c3ca32b6f7b6c4085c799600a3a7e239387e2d670e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Tue, 20 Oct 2020 15:23:20 +0000 Subject: [PATCH] Accepting request 842985 from devel:languages:perl:CPAN-T Somehow I submitted the pre-fixed version. Should be correct now. OBS-URL: https://build.opensuse.org/request/show/842985 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Tie-Function?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + Tie-Function-0.02.tar.gz | 3 ++ cpanspec.yml | 28 +++++++++++++++ perl-Tie-Function.changes | 5 +++ perl-Tie-Function.spec | 72 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 132 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Tie-Function-0.02.tar.gz create mode 100644 cpanspec.yml create mode 100644 perl-Tie-Function.changes create mode 100644 perl-Tie-Function.spec 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/Tie-Function-0.02.tar.gz b/Tie-Function-0.02.tar.gz new file mode 100644 index 0000000..816bdfb --- /dev/null +++ b/Tie-Function-0.02.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b1617af218dfab911ba0fbd72210529a246efe140332da77fe3e03d11000117 +size 2173 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..2d480c6 --- /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: Perl +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module diff --git a/perl-Tie-Function.changes b/perl-Tie-Function.changes new file mode 100644 index 0000000..c5a168b --- /dev/null +++ b/perl-Tie-Function.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Oct 19 15:58:42 UTC 2020 - Dirk Stoecker + +- initial package 0.02 + * created by cpanspec 1.78.09 diff --git a/perl-Tie-Function.spec b/perl-Tie-Function.spec new file mode 100644 index 0000000..9ea5601 --- /dev/null +++ b/perl-Tie-Function.spec @@ -0,0 +1,72 @@ +# +# spec file for package perl-Tie-Function +# +# Copyright (c) 2020 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/ +# + + +Name: perl-Tie-Function +Version: 0.02 +Release: 0 +%define cpan_name Tie-Function +Summary: Wrap functions in tied hash sugar +License: Artistic-1.0 OR GPL-1.0-or-later +Group: Development/Libraries/Perl +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/D/DA/DAVIDNICO/handy_tied_functions/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +%{perl_requires} + +%description +Tie::Function simplifies wrapping functions in tied hash syntax so they can +be interpolated in double-quoted literals without messy intermediate +variables. + +Here's how I use it the most: + + use HTML::Entities; + use Tie::Function; + tie my %Entitize => 'Tie::Function' => \&encode_entities; + ... + print <$Entitize{$somethingaboutsomething}
+ + EOF + ... + +%prep +%setup -q -n %{cpan_name}-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%check +make test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%defattr(-,root,root,755) +%doc README + +%changelog