forked from pool/perl-Data-Dump-Streamer
2.13
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Dump-Streamer?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
Data-Dump-Streamer-2.13.tar.gz
Normal file
3
Data-Dump-Streamer-2.13.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:258f4f6c2035f069cb909b7ba63f34fa2c922ae00b739618507ac99688c7d61d
|
||||||
|
size 73792
|
5
perl-Data-Dump-Streamer.changes
Normal file
5
perl-Data-Dump-Streamer.changes
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 11 23:38:06 UTC 2010 - pascal.bleser@opensuse.org
|
||||||
|
|
||||||
|
- initial package (2.13)
|
||||||
|
|
71
perl-Data-Dump-Streamer.spec
Normal file
71
perl-Data-Dump-Streamer.spec
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
# norootforbuild
|
||||||
|
|
||||||
|
Name: perl-Data-Dump-Streamer
|
||||||
|
Version: 2.13
|
||||||
|
Release: 0
|
||||||
|
Summary: Accurately serializes a Data Structure as Perl Code
|
||||||
|
Source: http://www.cpan.org/modules/by-module/Data/JJORE/Data-Dump-Streamer-%{version}.tar.gz
|
||||||
|
URL: http://search.cpan.org/dist/Data-Dump-Streamer/
|
||||||
|
Group: Development/Libraries/Perl
|
||||||
|
License: Perl License
|
||||||
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||||
|
Requires: perl
|
||||||
|
Requires: perl(B::Utils)
|
||||||
|
BuildRequires: make perl
|
||||||
|
BuildRequires: perl(B::Utils)
|
||||||
|
|
||||||
|
%description
|
||||||
|
Given a list of scalars or reference variables, writes out their contents in
|
||||||
|
perl syntax. The references can also be objects. The contents of each variable
|
||||||
|
is output using the least number of Perl statements as convenient, usually only
|
||||||
|
one. Self-referential structures, closures, and objects are output correctly.
|
||||||
|
|
||||||
|
The return value can be evaled to get back an identical copy of the original
|
||||||
|
reference structure. In some cases this may require the use of utility subs
|
||||||
|
that Data::Dump::Streamer will optionally export.
|
||||||
|
|
||||||
|
This module is very similar in concept to the core module Data::Dumper, with
|
||||||
|
the major differences being that this module is designed to output to a stream
|
||||||
|
instead of constructing its output in memory (trading speed for memory), and
|
||||||
|
that the traversal over the data structure is effectively breadth first versus
|
||||||
|
the depth first traversal done by the others.
|
||||||
|
|
||||||
|
In fact the data structure is scanned twice, first in breadth first mode to
|
||||||
|
perform structural analysis, and then in depth first mode to actually produce
|
||||||
|
the output, but obeying the depth relationships of the first pass.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n "Data-Dump-Streamer-%{version}"
|
||||||
|
%__sed -i '/^auto_install/d' Makefile.PL
|
||||||
|
find . -type f -exec %__chmod 0644 {} \;
|
||||||
|
|
||||||
|
%build
|
||||||
|
echo no | %__perl Makefile.PL PREFIX="%{_prefix}"
|
||||||
|
%__make %{?jobs:-j%{jobs}}
|
||||||
|
|
||||||
|
%install
|
||||||
|
%perl_make_install
|
||||||
|
%perl_process_packlist
|
||||||
|
|
||||||
|
%clean
|
||||||
|
%__rm -rf "%{buildroot}"
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc Changes README
|
||||||
|
%dir %{perl_vendorarch}/Data
|
||||||
|
%dir %{perl_vendorarch}/Data/Dump
|
||||||
|
%{perl_vendorarch}/Data/Dump/Streamer
|
||||||
|
%{perl_vendorarch}/Data/Dump/Streamer.pm
|
||||||
|
%dir %{perl_vendorarch}/auto/Data
|
||||||
|
%dir %{perl_vendorarch}/auto/Data/Dump
|
||||||
|
%{perl_vendorarch}/auto/Data/Dump/Streamer
|
||||||
|
%doc %{perl_man3dir}/Data::Dump::Streamer.%{perl_man3ext}%{ext_man}
|
||||||
|
/var/adm/perl-modules/%{name}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
# vim: set sw=3 ts=3 noet:
|
||||||
|
# Local Variables:
|
||||||
|
# mode: rpm-spec
|
||||||
|
# tab-width: 3
|
||||||
|
# End:
|
Reference in New Issue
Block a user