8
0

Accepting request 530740 from devel:languages:perl:tobefixed

fix

OBS-URL: https://build.opensuse.org/request/show/530740
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MouseX-Types?expand=0&rev=10
This commit is contained in:
Stephan Kulow
2017-10-03 08:52:51 +00:00
committed by Git OBS Bridge
parent 9dfbab8ac3
commit 6a243d242a
3 changed files with 18 additions and 28 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:19:01 UTC 2017 - coolo@suse.com
- patch the Makefile to build with perl 5.26
-------------------------------------------------------------------
Fri Nov 18 11:58:12 UTC 2011 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-MouseX-Types
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,16 +16,16 @@
#
Name: perl-MouseX-Types
Version: 0.06
Release: 1
License: GPL+ or Artistic
Release: 0
%define cpan_name MouseX-Types
Summary: Organize your Mouse types in libraries
Url: http://search.cpan.org/dist/MouseX-Types/
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/G/GF/GFUJI/%{cpan_name}-%{version}.tar.gz
Url: http://search.cpan.org/dist/MouseX-Types/
Source0: https://cpan.metacpan.org/authors/id/G/GF/GFUJI/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
@@ -33,27 +33,6 @@ BuildRequires: perl-macros
BuildRequires: perl(Any::Moose) >= 0.15
BuildRequires: perl(Mouse) >= 0.77
BuildRequires: perl(Test::Exception)
#BuildRequires: perl(DecoratorLibrary)
#BuildRequires: perl(inc::Module::Install)
#BuildRequires: perl(IntrospectTypeExports)
#BuildRequires: perl(JSON)
#BuildRequires: perl(LWP::Simple)
#BuildRequires: perl(Module::Build)
#BuildRequires: perl(Module::Install::Base)
#BuildRequires: perl(Mouse::Exporter)
#BuildRequires: perl(Mouse::Util::TypeConstraints)
#BuildRequires: perl(MouseX::Types)
#BuildRequires: perl(MouseX::Types::Mouse)
#BuildRequires: perl(MouseX::Types::Wrapper)
#BuildRequires: perl(Parse::CPAN::Meta)
#BuildRequires: perl(Sub::Exporter)
#BuildRequires: perl(SubExporterCompatibility)
#BuildRequires: perl(TestLibrary)
#BuildRequires: perl(TestNamespaceSep)
#BuildRequires: perl(Test::Perl::Critic)
#BuildRequires: perl(TestWrapper)
#BuildRequires: perl(X::Types::Combine)
#BuildRequires: perl(YAML::Tiny)
Requires: perl(Any::Moose) >= 0.15
Requires: perl(Mouse) >= 0.77
%{perl_requires}
@@ -63,7 +42,10 @@ Organize your Mouse types in libraries
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
# 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