- regenerate spec to fix build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Pluggable?expand=0&rev=8
This commit is contained in:
parent
cc0030d826
commit
3d35e66fa4
23
cpanspec.yml
Normal file
23
cpanspec.yml
Normal file
@ -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
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user