8
0

Accepting request 530739 from devel:languages:perl:tobefixed

fix

OBS-URL: https://build.opensuse.org/request/show/530739
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MooseX-TransactionalMethods?expand=0&rev=5
This commit is contained in:
Stephan Kulow
2017-10-03 08:52:43 +00:00
committed by Git OBS Bridge
parent 8ba3ee0815
commit 1535b88aaa
3 changed files with 14 additions and 2 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:18:30 UTC 2017 - coolo@suse.com
- patch the Makefile to build with perl 5.26
-------------------------------------------------------------------
Tue Apr 14 18:19:15 UTC 2015 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-MooseX-TransactionalMethods
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,8 @@ Summary: Syntax sugar for transactional methods
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/MooseX-TransactionalMethods/
Source: http://www.cpan.org/authors/id/M/MJ/MJG/%{cpan_name}-%{version}.tar.gz
Source0: https://cpan.metacpan.org/authors/id/M/MJ/MJG/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
@@ -43,6 +44,9 @@ method in a txn_do call.
%prep
%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
%{__perl} Makefile.PL INSTALLDIRS=vendor