8
0

Accepting request 530720 from devel:languages:perl:tobefixed

fix

OBS-URL: https://build.opensuse.org/request/show/530720
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Class-ReturnValue?expand=0&rev=15
This commit is contained in:
Stephan Kulow
2017-10-03 08:43:10 +00:00
committed by Git OBS Bridge
parent ff0ae2333c
commit 375e1e8367
3 changed files with 21 additions and 19 deletions

3
cpanspec.yml Normal file
View File

@@ -0,0 +1,3 @@
---
post_prep:
sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Oct 3 08:12:25 UTC 2017 - coolo@suse.com
- patch the Makefile to build with perl 5.26
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Nov 18 11:08:55 UTC 2011 - coolo@suse.com Fri Nov 18 11:08:55 UTC 2011 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Class-ReturnValue # spec file for package perl-Class-ReturnValue
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -15,26 +15,24 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: perl-Class-ReturnValue Name: perl-Class-ReturnValue
%define cpan_name Class-ReturnValue
Summary: Return-value object that lets you treat it as as a boolean, array or object
Version: 0.55 Version: 0.55
Release: 1 Release: 0
License: GPL+ or Artistic %define cpan_name Class-ReturnValue
Summary: Return-Value Object That Lets You Treat It
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Class-ReturnValue/ Url: http://search.cpan.org/dist/Class-ReturnValue/
#Source: http://www.cpan.org/modules/by-module/Class/Class-ReturnValue-%{version}.tar.bz2 Source0: https://cpan.metacpan.org/authors/id/J/JE/JESSE/%{cpan_name}-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Devel::StackTrace) BuildRequires: perl(Devel::StackTrace)
Requires: perl(Devel::StackTrace) Requires: perl(Devel::StackTrace)
%{perl_requires}
%description %description
Class::ReturnValue is a "clever" return value object that can allow code Class::ReturnValue is a "clever" return value object that can allow code
@@ -43,6 +41,9 @@ calling your routine to expect: a boolean value (did it fail) or a list
%prep %prep
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
# MANUAL BEGIN
sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL
# MANUAL END
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -53,18 +54,11 @@ calling your routine to expect: a boolean value (did it fail) or a list
%install %install
%perl_make_install %perl_make_install
# do not perl_process_packlist (noarch) %perl_process_packlist
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
%perl_gen_filelist %perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,-) %defattr(-,root,root,755)
%doc Changes %doc Changes
%changelog %changelog