2010-08-03 16:53:22 +00:00
|
|
|
#
|
2011-05-25 08:23:37 +00:00
|
|
|
# spec file for package perl-Data-Section
|
2010-08-03 16:53:22 +00:00
|
|
|
#
|
2011-05-25 08:23:37 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-08-03 16:53:22 +00:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2011-05-25 08:23:37 +00:00
|
|
|
|
2010-08-03 16:53:22 +00:00
|
|
|
Name: perl-Data-Section
|
|
|
|
%define cpan_name Data-Section
|
|
|
|
Summary: Read multiple hunks of data out of your DATA section
|
2011-11-19 16:13:11 +00:00
|
|
|
Version: 0.101621
|
2010-08-03 16:53:22 +00:00
|
|
|
Release: 1
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/dist/Data-Section/
|
|
|
|
Source: http://www.cpan.org/modules/by-module/Data/Data-Section-%{version}.tar.gz
|
|
|
|
# workaround for Test::More >= 0.88 (done_testing)
|
|
|
|
# only needed for suse_version < 1120
|
|
|
|
Patch0: %{cpan_name}-0.101620-Build_n_Test.patch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 14:00:56 +00:00
|
|
|
%{perl_requires}
|
2010-08-03 16:53:22 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
%if 0%{?suse_version} >= 1120
|
|
|
|
BuildRequires: perl(Test::More) => 0.88
|
|
|
|
%endif
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
|
|
|
|
BuildRequires: perl(MRO::Compat) >= 0.09
|
|
|
|
BuildRequires: perl(Sub::Exporter) >= 0.979
|
|
|
|
Requires: perl(MRO::Compat) >= 0.09
|
|
|
|
Requires: perl(Sub::Exporter) >= 0.979
|
|
|
|
|
|
|
|
%description
|
|
|
|
Data::Section provides an easy way to access multiple named chunks of line-
|
|
|
|
oriented data in your module's DATA section. It was written to allow
|
|
|
|
modules to store their own templates, but probably has other uses.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ricardo SIGNES <rjbs@cpan.org>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
%if 0%{?suse_version} < 1120
|
|
|
|
%patch0 -p1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
# do not perl_process_packlist (noarch)
|
|
|
|
# remove .packlist file
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
|
|
|
# remove perllocal.pod file
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes dist.ini LICENSE META.json README
|
|
|
|
|
|
|
|
%changelog
|