Hello community,
here is the log from the commit of package perl-Class-Spiffy for
openSUSE:Factory checked in at 2017-10-03 23:20:07
Comparing /work/SRC/openSUSE:Factory/perl-Class-Spiffy (Old)
and /work/SRC/openSUSE:Factory/.perl-Class-Spiffy.new (New)
Package is "perl-Class-Spiffy"
Tue Oct 3 23:20:07 2017 rev:20 rq:530795 version:0.15
Changes:
--- /work/SRC/openSUSE:Factory/perl-Class-Spiffy/perl-Class-Spiffy.changes
2011-09-23 12:36:26.0 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Class-Spiffy.new/perl-Class-Spiffy.changes
2017-10-03 23:20:09.982088553 +0200
@@ -1,0 +2,5 @@
+Tue Oct 3 08:12:38 UTC 2017 - co...@suse.com
+
+- patch the Makefile to build with perl 5.26
+
+---
New:
cpanspec.yml
Other differences:
--
++ perl-Class-Spiffy.spec ++
--- /var/tmp/diff_new_pack.qSTCqa/_old 2017-10-03 23:20:10.925955721 +0200
+++ /var/tmp/diff_new_pack.qSTCqa/_new 2017-10-03 23:20:10.925955721 +0200
@@ -1,7 +1,7 @@
#
-# spec file for package perl-Class-Spiffy (Version 0.15)
+# spec file for package perl-Class-Spiffy
#
-# Copyright (c) 2010 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
@@ -15,26 +15,22 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
-# norootforbuild
-
Name: perl-Class-Spiffy
+Version:0.15
+Release:0
%define cpan_name Class-Spiffy
Summary:Spiffy Framework with No Source Filtering
-Version:0.15
-Release:121
-License:GPL-1.0+ or Artistic-1.0
+License:Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url:http://search.cpan.org/dist/Class-Spiffy/
-#Source:
http://www.cpan.org/modules/by-module/Class/Class-Spiffy-%{version}.tar.gz
-Source: %{cpan_name}-%{version}.tar.gz
+Source0:
https://cpan.metacpan.org/authors/id/I/IN/INGY/%{cpan_name}-%{version}.tar.gz
+Source1:cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl(Scalar::Util)
-Requires: perl(Scalar::Util)
+%{perl_requires}
%description
"Class::Spiffy" is a framework and methodology for doing object oriented
@@ -43,8 +39,23 @@
class. It attempts to fix all the nits and warts of traditional Perl OO, in
a clean, straightforward and (perhaps someday) standard way.
+Class::Spiffy borrows ideas from other OO languages like Python, Ruby, Java
+and Perl 6. It also adds a few tricks of its own.
+
+If you take a look on CPAN, there are a ton of OO related modules. When
+starting a new project, you need to pick the set of modules that makes most
+sense, and then you need to use those modules in each of your classes.
+Class::Spiffy, on the other hand, has everything you'll probably need in
+one module, and you only need to use it once in one of your classes. If you
+make Class::Spiffy the base class of the basest class in your project,
+Class::Spiffy will automatically pass all of its magic to all of your
+subclasses. You may eventually forget that you're even using it!
+
%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
@@ -55,18 +66,11 @@
%install
%perl_make_install
-# do not perl_process_packlist (noarch)
-# remove .packlist file
-%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
-# remove perllocal.pod file
-%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
+%perl_process_packlist
%perl_gen_filelist
-%clean
-%{__rm} -rf %{buildroot}
-
%files -f %{name}.files
-%defattr(-,root,root,-)
+%defattr(-,root,root,755)
%doc Changes README
%changelog
++ cpanspec.yml ++
---
description_paragraphs: 3
post_prep:
sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse
inc::Module::Install/' Makefile.PL