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