From 3d35e66fa43a9212cf98e198d0ea594e8c5751771e22bee386c411ee5da0f5a5 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 26 Jun 2015 06:03:20 +0000 Subject: [PATCH] - regenerate spec to fix build OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Pluggable?expand=0&rev=8 --- cpanspec.yml | 23 ++++++++++++++++++++++ perl-Module-Pluggable.changes | 5 +++++ perl-Module-Pluggable.spec | 36 ++++++++++++++++++++--------------- 3 files changed, 49 insertions(+), 15 deletions(-) create mode 100644 cpanspec.yml diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..5a646bd --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,23 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: perl(Module::Build) +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module diff --git a/perl-Module-Pluggable.changes b/perl-Module-Pluggable.changes index fa31e55..679c092 100644 --- a/perl-Module-Pluggable.changes +++ b/perl-Module-Pluggable.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 26 06:02:58 UTC 2015 - coolo@suse.com + +- regenerate spec to fix build + ------------------------------------------------------------------- Sun Apr 20 21:24:45 UTC 2014 - mardnh@gmx.de diff --git a/perl-Module-Pluggable.spec b/perl-Module-Pluggable.spec index 041e5ff..d10779b 100644 --- a/perl-Module-Pluggable.spec +++ b/perl-Module-Pluggable.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Module-Pluggable # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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 @@ -20,40 +20,46 @@ Name: perl-Module-Pluggable Version: 5.1 Release: 0 %define cpan_name Module-Pluggable -Summary: Automatically give your module the ability to have plugins -License: GPL-1.0+ or Artistic-1.0 +Summary: Automatically Give Your Module the Ability to Have Plugins +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Module-Pluggable/ -Source: http://www.cpan.org/authors/id/S/SI/SIMONW/Module-Pluggable-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/S/SI/SIMONW/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros +BuildRequires: perl(Module::Build) >= 0.380000 %{perl_requires} %description -This package provides a simple but, hopefully, extensible way of having -'plugins' for your module. Essentially all it does is export a method into -your name space that looks through a search path for .pm files and turn those -into class names. Optionally it instantiates those classes for you. +Provides a simple but, hopefully, extensible way of having 'plugins' for +your module. Obviously this isn't going to be the be all and end all of +solutions but it works for me. + +Essentially all it does is export a method into your namespace that looks +through a search path for .pm files and turn those into class names. + +Optionally it instantiates those classes for you. %prep %setup -q -n %{cpan_name}-%{version} +find . -type f -print0 | xargs -0 chmod 644 %build %{__perl} Build.PL installdirs=vendor -./Build - -%install -./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 -%perl_process_packlist -%perl_gen_filelist +./Build build flags=%{?_smp_mflags} %check ./Build test +%install +./Build install destdir=%{buildroot} create_packlist=0 +%perl_gen_filelist + %files -f %{name}.files %defattr(-,root,root,755) +%doc Changes README %changelog -