From 17f2524f8574d5ac5f42e7ca5df66da5b39bb8a2e31ffb1de025b34d19b87b38 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 17 Apr 2015 18:32:15 +0000 Subject: [PATCH] Accepting request 297832 from devel:languages:perl:autoupdate update OBS-URL: https://build.opensuse.org/request/show/297832 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Stag?expand=0&rev=7 --- Data-Stag-0.11.tar.gz | 3 -- Data-Stag-0.14.tar.gz | 3 ++ cpanspec.yml | 20 ++++++++++ perl-Data-Stag.changes | 17 ++++++++ perl-Data-Stag.spec | 91 +++++++++++++++++++++++------------------- 5 files changed, 91 insertions(+), 43 deletions(-) delete mode 100644 Data-Stag-0.11.tar.gz create mode 100644 Data-Stag-0.14.tar.gz create mode 100644 cpanspec.yml diff --git a/Data-Stag-0.11.tar.gz b/Data-Stag-0.11.tar.gz deleted file mode 100644 index 1093d76..0000000 --- a/Data-Stag-0.11.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:69da86fb0351286445fb06575e631065eeb5ccefceeeb3387fa163ce86b53ab2 -size 425766 diff --git a/Data-Stag-0.14.tar.gz b/Data-Stag-0.14.tar.gz new file mode 100644 index 0000000..bcefced --- /dev/null +++ b/Data-Stag-0.14.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ab122508d2fb86d171a15f4006e5cf896d5facfa65219c0b243a89906258e59 +size 428107 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..b369e7c --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,20 @@ +--- +#description_paragraphs: 3 +#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_install: |- +# sed on %{name}.files +license: Perl License +#skip_noarch: 1 +#custom_build: - +#./Build build flags=%{?_smp_mflags} --myflag diff --git a/perl-Data-Stag.changes b/perl-Data-Stag.changes index b89f1e2..f737f0f 100644 --- a/perl-Data-Stag.changes +++ b/perl-Data-Stag.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Fri Apr 17 17:41:22 UTC 2015 - coolo@suse.com + +- updated to 0.14 + see /usr/share/doc/packages/perl-Data-Stag/Changes + + + Version 0.12 + ============ + + 2009-12-14 - miration to github + + Version 0.13 + ============ + + 2013-08-08 - Added JSONWriter + ------------------------------------------------------------------- Wed Dec 1 13:31:39 UTC 2010 - coolo@novell.com diff --git a/perl-Data-Stag.spec b/perl-Data-Stag.spec index a6157a1..9a3aae1 100644 --- a/perl-Data-Stag.spec +++ b/perl-Data-Stag.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Data-Stag # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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 @@ -15,43 +15,24 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - Name: perl-Data-Stag +Version: 0.14 +Release: 0 +#Upstream: This module is free software. You may distribute this module under the same terms as perl itself %define cpan_name Data-Stag Summary: Structured Tags datastructures -Version: 0.11 -Release: 1 -License: GPL+ or Artistic +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Data-Stag/ -#Source: http://www.cpan.org/modules/by-module/Data/Data-Stag-%{version}.tar.gz -Source: %{cpan_name}-%{version}.tar.gz -BuildArch: noarch +Source0: http://www.cpan.org/authors/id/C/CM/CMUNGALL/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(IO::String) -# mentioned by %packages -BuildRequires: perl(GD) >= 1.3 -BuildRequires: perl(Graph::Directed) -BuildRequires: perl(MLDBM) -BuildRequires: perl(Storable) -BuildRequires: perl(Tk) -BuildRequires: perl(XML::LibXSLT) -BuildRequires: perl(XML::Parser::PerlSAX) -# Requires: perl(IO::String) -# mentioned by %packages -Requires: perl(GD) >= 1.3 -Requires: perl(Graph::Directed) -Requires: perl(MLDBM) -Requires: perl(Storable) -Requires: perl(Tk) -Requires: perl(XML::LibXSLT) -Requires: perl(XML::Parser::PerlSAX) +%{perl_requires} %description This module is for manipulating data as hierarchical tag/value pairs @@ -59,15 +40,52 @@ This module is for manipulating data as hierarchical tag/value pairs represented as nested arrays, which have the advantage of being native to perl. A simple example is shown below: -Authors: --------- - Chris Mungall + [ person=> [ [ family_name => $family_name ], + [ given_name => $given_name ], + [ phone_no => $phone_no ] ] ], + +the Data::Stag manpage uses a subset of XML for import and export. This +means the module can also be used as a general XML parser/writer (with +certain caveats). + +The above set of structured tags can be represented in XML as + + + ... + ... + ... + + +This datastructure can be examined, manipulated and exported using Stag +functions or methods: + + $document = Data::Stag->parse($file); + @persons = $document->find('person'); + foreach my $person (@person) { + $person->set('full_name', + $person->sget('given_name') . ' ' . + $person->sget('family_name')); + } + +Advanced querying is performed by passing functions, for example: + + # get all people in dataset with name starting 'A' + @persons = + $document->where('person', + sub {shift->sget('family_name') =~ /^A/}); + +One of the things that marks this module out against other XML modules is +this emphasis on a *functional* approach as an obect-oriented or procedural +approach. + +For full information on the stag project, see the +http://stag.sourceforge.net manpage %prep %setup -q -n %{cpan_name}-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %{__make} %{?_smp_mflags} %check @@ -75,18 +93,11 @@ Authors: %install %perl_make_install -# do not perl_process_packlist (noarch) -# remove .packlist file -%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch -# remove perllocal.pod file -%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib +%perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf $RPM_BUILD_ROOT - %files -f %{name}.files -%defattr(-,root,root,-) +%defattr(-,root,root,755) %doc Changes README %changelog