From b26e660cdf63deb14b8f3f74bf922b38e8e17e2a890bbdb8e8abf736428dc0ed Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sat, 3 Nov 2012 20:32:38 +0000 Subject: [PATCH] initial package OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Hash-FieldHash?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + Hash-FieldHash-0.12.tar.gz | 3 ++ perl-Hash-FieldHash.changes | 6 +++ perl-Hash-FieldHash.spec | 98 +++++++++++++++++++++++++++++++++++++ 5 files changed, 131 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Hash-FieldHash-0.12.tar.gz create mode 100644 perl-Hash-FieldHash.changes create mode 100644 perl-Hash-FieldHash.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/Hash-FieldHash-0.12.tar.gz b/Hash-FieldHash-0.12.tar.gz new file mode 100644 index 0000000..0c5e851 --- /dev/null +++ b/Hash-FieldHash-0.12.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:96b9b70a647aba75fd7a58d89a17a1c27326bb2eba1b8475140c40b9119a3800 +size 43043 diff --git a/perl-Hash-FieldHash.changes b/perl-Hash-FieldHash.changes new file mode 100644 index 0000000..2015d26 --- /dev/null +++ b/perl-Hash-FieldHash.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Sat Nov 3 20:32:14 UTC 2012 - coolo@suse.com + +- initial package 0.12 + * created by cpanspec 1.78.06 + diff --git a/perl-Hash-FieldHash.spec b/perl-Hash-FieldHash.spec new file mode 100644 index 0000000..0f9d49d --- /dev/null +++ b/perl-Hash-FieldHash.spec @@ -0,0 +1,98 @@ +# +# spec file for package perl-Hash-FieldHash +# +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +Name: perl-Hash-FieldHash +Version: 0.12 +Release: 0 +%define cpan_name Hash-FieldHash +Summary: Lightweight field hash for inside-out objects +License: Artistic-1.0 or GPL-1.0+ +Group: Development/Libraries/Perl +Url: http://search.cpan.org/dist/Hash-FieldHash/ +Source: http://www.cpan.org/authors/id/G/GF/GFUJI/%{cpan_name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(Devel::PPPort) >= 3.19 +BuildRequires: perl(ExtUtils::ParseXS) >= 2.21 +BuildRequires: perl(Test::LeakTrace) >= 0.07 +BuildRequires: perl(parent) >= 0.221 +#BuildRequires: perl(Hash::FieldHash) +#BuildRequires: perl(Hash::Util::FieldHash) +#BuildRequires: perl(Hash::Util::FieldHash::Compat) +#BuildRequires: perl(inc::Module::Install) +#BuildRequires: perl(JSON) +#BuildRequires: perl(Module::Build) +#BuildRequires: perl(Module::Install::AuthorTests) +#BuildRequires: perl(Module::Install::Base) +#BuildRequires: perl(Module::Install::Repository) +#BuildRequires: perl(Module::Install::XSUtil) >= 0.41 +#BuildRequires: perl(Mouse) +#BuildRequires: perl(MyClass) +#BuildRequires: perl(Parse::CPAN::Meta) +#BuildRequires: perl(Person) +#BuildRequires: perl(YAML::Tiny) +Requires: perl(parent) >= 0.221 +%{perl_requires} + +%description +'Hash::FieldHash' provides the field hash mechanism which supports the +inside-out technique. + +You may know 'Hash::Util::FieldHash'. It's a very useful module, but too +complex to understand the functionality and only available in 5.10. +'H::U::F::Compat' is available for pre-5.10, but it is too slow to use. + +This is a better alternative to 'H::U::F' with following features: + +* Simpler interface + + 'Hash::FieldHash' provides a few functions: 'fieldhash()' and + 'fieldhashes()'. That's enough. + +* Higher performance + + 'Hash::FieldHash' is faster than 'Hash::Util::FieldHash', because its + internals use simpler structures. + +* Relic support + + Although 'Hash::FieldHash' uses a new feature introduced in Perl 5.10, + _the uvar magic for hashes_ described in the Hash::Util::Fieldhash/"GUTS" + manpage, it supports Perl 5.8 using the traditional tie-hash layer. + +%prep +%setup -q -n %{cpan_name}-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%{__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 Changes compat58.xsi example README + +%changelog