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
This commit is contained in:
committed by
Git OBS Bridge
parent
14da4426ad
commit
17f2524f85
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:69da86fb0351286445fb06575e631065eeb5ccefceeeb3387fa163ce86b53ab2
|
||||
size 425766
|
3
Data-Stag-0.14.tar.gz
Normal file
3
Data-Stag-0.14.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4ab122508d2fb86d171a15f4006e5cf896d5facfa65219c0b243a89906258e59
|
||||
size 428107
|
20
cpanspec.yml
Normal file
20
cpanspec.yml
Normal file
@@ -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
|
@@ -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
|
||||
|
||||
|
@@ -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 <cjm AT fruitfly DOT org>
|
||||
[ 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
|
||||
|
||||
<person>
|
||||
<family_name>...</family_name>
|
||||
<given_name>...</given_name>
|
||||
<phone_no>...</phone_no>
|
||||
</person>
|
||||
|
||||
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
|
||||
|
Reference in New Issue
Block a user