From 90d2da7da1aacdfa6a61a900958ee20436f6902a050041872605c21faa10a387 Mon Sep 17 00:00:00 2001 From: Christian Wittmer Date: Thu, 11 Nov 2010 20:01:48 +0000 Subject: [PATCH] update to 0.11, noarch pkg OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MRO-Compat?expand=0&rev=2 --- MRO-Compat-0.09.tar.gz | 3 -- MRO-Compat-0.11.tar.bz2 | 3 ++ perl-MRO-Compat.changes | 19 ++++++++ perl-MRO-Compat.spec | 98 +++++++++++++++++++++++++++-------------- 4 files changed, 88 insertions(+), 35 deletions(-) delete mode 100644 MRO-Compat-0.09.tar.gz create mode 100644 MRO-Compat-0.11.tar.bz2 create mode 100644 perl-MRO-Compat.changes diff --git a/MRO-Compat-0.09.tar.gz b/MRO-Compat-0.09.tar.gz deleted file mode 100644 index 5b6eacf..0000000 --- a/MRO-Compat-0.09.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:88ee4273696067ac674cd8dfe4cde9b576f4e98d4dd9ed27e9eaaad2fa3a839a -size 25066 diff --git a/MRO-Compat-0.11.tar.bz2 b/MRO-Compat-0.11.tar.bz2 new file mode 100644 index 0000000..3e68ad4 --- /dev/null +++ b/MRO-Compat-0.11.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:499b2672775a18a7557d338f02d3b59f9569cb23ce8bb97c280d3da857411ec8 +size 19331 diff --git a/perl-MRO-Compat.changes b/perl-MRO-Compat.changes new file mode 100644 index 0000000..ce7380a --- /dev/null +++ b/perl-MRO-Compat.changes @@ -0,0 +1,19 @@ +------------------------------------------------------------------- +Thu Nov 11 20:01:05 UTC 2010 - chris@computersalat.de + +- update to 0.11 + - Fix misspelled docs for get_isarev. Closes RT#46401. + - Bump optional prereq on Class::C3 to 0.20. +- 0.10 - Wed Mar 25, 2009 + - Remove the fake Build.PL. Module::Install doesn't support that anymore. + (Florian Ragwitz) + - Remove auto_install from Makefile.PL. Its use is strongly discouraged. + (Closes RT#44542) (Simon Betrang) +- noarch pkg +- changelog to changes file + +------------------------------------------------------------------- +Sun Oct 26 13:38:07 UTC 2008 - gerrit.beine@gmx.de + +- first release 0.09 + diff --git a/perl-MRO-Compat.spec b/perl-MRO-Compat.spec index 6c815f3..325cb3e 100644 --- a/perl-MRO-Compat.spec +++ b/perl-MRO-Compat.spec @@ -1,17 +1,48 @@ -%define cpan_name MRO-Compat +# +# spec file for package perl-MRO-Compat (Version 0.11) +# +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. -Name: perl-%cpan_name -Version: 0.09 -Release: 1 -Provides: %cpan_name -Requires: perl = %{perl_version} perl-Class-C3 -Group: Development/Libraries/Perl -License: Artistic -URL: http://search.cpan.org/dist/MRO-Compat/ -Summary: mro::* interface compatibility for Perls < 5.9.5 -Source: %cpan_name-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: perl-Class-C3 +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +%bcond_with pod + +Name: perl-MRO-Compat +%define cpan_name MRO-Compat +Summary: Mro::* interface compatibility for Perls < 5.9.5 +Version: 0.11 +Release: 1 +License: GPL+ or Artistic +Group: Development/Libraries/Perl +Url: http://search.cpan.org/dist/MRO-Compat/ +#Source: http://www.cpan.org/modules/by-module/MRO/MRO-Compat-%{version}.tar.gz +Source: %{cpan_name}-%{version}.tar.bz2 +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +%if 0%{?suse_version} < 1120 +BuildRequires: perl-macros +%endif +%if %{with pod} +BuildRequires: perl(Test::Pod) >= 1.14 +BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +%endif +BuildRequires: perl(Test::More) >= 0.47 +BuildRequires: perl(Class::C3) >= 0.20 +Requires: perl = %{perl_version} +Requires: perl(Class::C3) >= 0.20 %description The "mro" namespace provides several utilities for dealing with method @@ -39,31 +70,34 @@ function basically does, and what differences between MRO::Compat and 5.9.5+ One should look out for. The main docs in 5.9.5's mro are the real interface docs, and contain a lot of other useful information. +Authors: +-------- + Brandon L. Black, + %prep -%setup -q -n %cpan_name-%{version} +%setup -q -n %{cpan_name}-%{version} %build -perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" -make -make test +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} + +%check +%{__make} test %install -make DESTDIR=$RPM_BUILD_ROOT install_vendor -%perl_process_packlist +%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_gen_filelist %clean -# clean up the hard disc after build -rm -rf $RPM_BUILD_ROOT +%{__rm} -rf $RPM_BUILD_ROOT -%files -%defattr(-,root,root) -%doc %{_mandir}/man?/* -%{perl_vendorlib}/MRO -%{perl_vendorarch}/auto/MRO -/var/adm/perl-modules/%{name} -%doc ChangeLog MANIFEST README - -%changelog -n %{name} -* Sun Oct 26 2008 - gerrit.beine@gmx.de -- first release 0.09 +%files -f %{name}.files +%defattr(-,root,root,-) +%doc ChangeLog README +%changelog