1
0
Stephan Kulow 2015-06-26 06:03:20 +00:00 committed by Git OBS Bridge
parent cc0030d826
commit 3d35e66fa4
3 changed files with 49 additions and 15 deletions

23
cpanspec.yml Normal file
View 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

View File

@ -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 Sun Apr 20 21:24:45 UTC 2014 - mardnh@gmx.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package perl-Module-Pluggable # 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 # 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
@ -20,40 +20,46 @@ Name: perl-Module-Pluggable
Version: 5.1 Version: 5.1
Release: 0 Release: 0
%define cpan_name Module-Pluggable %define cpan_name Module-Pluggable
Summary: Automatically give your module the ability to have plugins Summary: Automatically Give Your Module the Ability to Have Plugins
License: GPL-1.0+ or Artistic-1.0 License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Module-Pluggable/ 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 BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Module::Build) >= 0.380000
%{perl_requires} %{perl_requires}
%description %description
This package provides a simple but, hopefully, extensible way of having Provides a simple but, hopefully, extensible way of having 'plugins' for
'plugins' for your module. Essentially all it does is export a method into your module. Obviously this isn't going to be the be all and end all of
your name space that looks through a search path for .pm files and turn those solutions but it works for me.
into class names. Optionally it instantiates those classes for you.
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 %prep
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
%build %build
%{__perl} Build.PL installdirs=vendor %{__perl} Build.PL installdirs=vendor
./Build ./Build build flags=%{?_smp_mflags}
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
%perl_process_packlist
%perl_gen_filelist
%check %check
./Build test ./Build test
%install
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755) %defattr(-,root,root,755)
%doc Changes README
%changelog %changelog