2010-04-10 10:29:21 +00:00
|
|
|
#
|
2010-10-20 11:46:56 +00:00
|
|
|
# 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/
|
2010-04-10 10:29:21 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2010-10-20 11:46:56 +00:00
|
|
|
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
|
|
|
|
#
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
Requires: perl(XSLoader) >= 0.1
|
|
|
|
|
2010-04-10 10:29:21 +00:00
|
|
|
|
|
|
|
%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) <gfuji(at)cpan.org>
|
|
|
|
|
|
|
|
%prep
|
2010-10-20 11:46:56 +00:00
|
|
|
%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
|
2010-04-10 10:29:21 +00:00
|
|
|
|
|
|
|
%build
|
2010-10-20 11:46:56 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
|
%{__make} %{?_smp_mflags}
|
2010-04-10 10:29:21 +00:00
|
|
|
|
|
|
|
%check
|
2010-10-20 11:46:56 +00:00
|
|
|
%{__make} test
|
2010-04-10 10:29:21 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%clean
|
2010-10-20 11:46:56 +00:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2010-04-10 10:29:21 +00:00
|
|
|
|
2010-10-20 11:46:56 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes README example
|
2010-04-10 10:29:21 +00:00
|
|
|
|
2010-10-20 11:46:56 +00:00
|
|
|
%changelog
|