Accepting request 1185204 from home:tinita:branches:devel:languages:perl:CPAN-D

New dependency for perl-Module-Faker

OBS-URL: https://build.opensuse.org/request/show/1185204
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Fake?expand=0&rev=1
This commit is contained in:
2024-07-05 09:35:05 +00:00
committed by Git OBS Bridge
commit a2f6ebfce9
6 changed files with 167 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
Data-Fake-0.006.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:930960e04a417fb19e14ce1e739e3e4aefbddd101eae68bfa25ba7674fe7c2a1
size 38797

35
cpanspec.yml Normal file
View File

@@ -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

4
perl-Data-Fake.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Wed Jul 3 16:57:33 UTC 2024 - Tina Müller <tina.mueller@suse.com>
- Initial submission

101
perl-Data-Fake.spec Normal file
View File

@@ -0,0 +1,101 @@
#
# spec file for package perl-Data-Fake
#
# Copyright (c) 2024 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 Data-Fake
Name: perl-Data-Fake
Version: 0.6.0
Release: 0
# 0.006 -> normalize -> 0.6.0
%define cpan_version 0.006
License: Apache-2.0
Summary: Declaratively generate fake structured data for testing
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Import::Into) >= 1.002005
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(Text::Lorem)
BuildRequires: perl(Time::Piece) >= 1.27
Requires: perl(Import::Into) >= 1.002005
Requires: perl(Text::Lorem)
Requires: perl(Time::Piece) >= 1.27
Provides: perl(Data::Fake) = %{version}
Provides: perl(Data::Fake::Company) = %{version}
Provides: perl(Data::Fake::Core) = %{version}
Provides: perl(Data::Fake::Dates) = %{version}
Provides: perl(Data::Fake::Internet) = %{version}
Provides: perl(Data::Fake::Names) = %{version}
Provides: perl(Data::Fake::Text) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
This module generates randomized, fake structured data using declarative
syntax.
'Data::Fake' is built on higher-order programming principles. It provides
users with "factory" functions, which create "generator" functions for
specific pieces of data.
Wherever randomized, fake data is desired, a generator code reference is
used as a placeholder for the desired output. Each time the top-level
generator is run, nested generators are recursively run to turn
placeholders into the desired randomized data.
For example, the SYNOPSIS declares the desired form of a "hero" using the
'fake_hash' factory function. The input is a hash-reference, with nested
generators created as placeholders by the 'fake_name', 'fake_sentences',
etc. factory functions:
my $hero_generator = fake_hash(
{
name => fake_name(),
battlecry => fake_sentences(1),
birthday => fake_past_datetime("%Y-%m-%d"),
friends => fake_array( fake_int(2,4), fake_name() ),
gender => fake_pick(qw/Male Female Other/),
}
);
Every time '$hero_generator' is run, a new hash is generated based on the
template and nested generators.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes CONTRIBUTING.mkdn examples README
%license LICENSE
%changelog