8
0
Stephan Kulow
2011-07-14 08:00:29 +00:00
committed by Git OBS Bridge
parent b8061013eb
commit dfc185359b
4 changed files with 37 additions and 41 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Data-Util (Version 0.58)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 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
@@ -15,65 +15,56 @@
# 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
Release: 1
License: GPL+ or Artistic
Group: Development/Libraries/Perl
%define cpan_name Data-Util
Summary: A selection of utilities for data and data types
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
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/G/GF/GFUJI/%{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Bar)
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(Data::OptList)
BuildRequires: perl(Devel::PPPort) >= 3.19
BuildRequires: perl(ExtUtils::ParseXS) >= 2.21
#
BuildRequires: perl(Hash::Util::FieldHash::Compat)
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(JSON)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Moose)
BuildRequires: perl(mro)
BuildRequires: perl(MRO::Compat)
BuildRequires: perl(Params::Util)
BuildRequires: perl(parent)
BuildRequires: perl(Parse::CPAN::Meta)
BuildRequires: perl(Scope::Guard)
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Test::Exception) >= 0.27
BuildRequires: perl(Test::More) >= 0.62
#
BuildRequires: perl(XSLoader) >= 0.1
#
BuildRequires: perl(YAML::Tiny)
Requires: perl(XSLoader) >= 0.1
%{perl_requires}
%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.
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>
There are many benchmarks in the _DIST-DIR/benchmark/_ directory.
%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
find . -type f -print0 | xargs -0 chmod 644
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
%check
@@ -85,10 +76,10 @@ done
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes README example
%defattr(-,root,root,755)
%doc Changes example README
%changelog