# # spec file for package perl-Data-Util (Version 0.58) # # Copyright (c) 2010 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/ # # norootforbuild Name: perl-Data-Util %define cpan_name Data-Util Summary: Selection of utilities for data and data types Version: 0.58 Release: 2 License: GPL+ or Artistic Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Data-Util/ #Source: http://www.cpan.org/modules/by-module/Data/Data-Util-%{version}.tar.gz Source: %{cpan_name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl %if 0%{?suse_version} < 1120 BuildRequires: perl-macros %endif BuildRequires: perl(Devel::PPPort) >= 3.19 BuildRequires: perl(ExtUtils::ParseXS) >= 2.21 # BuildRequires: perl(Hash::Util::FieldHash::Compat) BuildRequires: perl(Scope::Guard) BuildRequires: perl(Test::Exception) >= 0.27 BuildRequires: perl(Test::More) >= 0.62 # BuildRequires: perl(XSLoader) >= 0.1 # %{perl_requires} Requires: perl(XSLoader) >= 0.1 %description This module provides utility functions for data and data types, including functions for subroutines and symbol table hashes (stashes). The implementation of this module is both Pure Perl and XS, so if you have a C compiler, all the functions this module provides are really faster. Author: ------- Goro Fuji(gfx) %prep %setup -q -n %{cpan_name}-%{version} # rpmlint: spurious-executable-perm, executable-docs %{__chmod} 0644 Changes README # rpmlint: script-without-shebang %{__chmod} 0644 lib/Data/Util/*.{pm,pod} # rpmlint: wrong-script-interpreter for i in pl pm; do find ./example -name "*.${i}" -exec %{__chmod} 0644 {} \; done ## disable failing test: # t/05_get_stash..... Data/Util/Util.so: undefined symbol: mXPUSHs %if 0%{?suse_version} < 1130 %{__mv} t/05_get_stash.t t/05_get_stash.tdis %{__mv} t/pp05_get_stash.t t/pp05_get_stash.tdis %endif %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %clean %{__rm} -rf $RPM_BUILD_ROOT %files -f %{name}.files %defattr(-,root,root,-) %doc Changes README example %changelog