From b542e3c3a2f782c5b3cf2ce14ac5fc4524a2f2a31b62b275e2c1e290ccb078c8 Mon Sep 17 00:00:00 2001 From: Christian Wittmer Date: Thu, 11 Nov 2010 18:55:17 +0000 Subject: [PATCH] update to 0.08, noarch pkg OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Algorithm-C3?expand=0&rev=4 --- Algorithm-C3-0.07.tar.gz | 3 -- Algorithm-C3-0.08.tar.bz2 | 3 ++ perl-Algorithm-C3.changes | 9 ++++ perl-Algorithm-C3.spec | 98 ++++++++++++++++++++++++++------------- 4 files changed, 77 insertions(+), 36 deletions(-) delete mode 100644 Algorithm-C3-0.07.tar.gz create mode 100644 Algorithm-C3-0.08.tar.bz2 diff --git a/Algorithm-C3-0.07.tar.gz b/Algorithm-C3-0.07.tar.gz deleted file mode 100644 index 34f1ced..0000000 --- a/Algorithm-C3-0.07.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3250f019fb55f9ea01d0fadfb92efd07efe4b8d49a6f77bf24a53bfc1de0ca16 -size 9563 diff --git a/Algorithm-C3-0.08.tar.bz2 b/Algorithm-C3-0.08.tar.bz2 new file mode 100644 index 0000000..4db3f13 --- /dev/null +++ b/Algorithm-C3-0.08.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29c7224044cae119206a548ee2c8c3f8e281de5375b922e405a32a3ca79afcef +size 9239 diff --git a/perl-Algorithm-C3.changes b/perl-Algorithm-C3.changes index 84b4da1..da514a3 100644 --- a/perl-Algorithm-C3.changes +++ b/perl-Algorithm-C3.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Nov 11 18:53:32 UTC 2010 - chris@computersalat.de + +- update to 0.08 + - Fix a couple of doc typos. + - Don't create a fake Makefile.PL. +- bcond_with pod +- noarch pkg + ------------------------------------------------------------------- Tue Oct 19 08:38:21 UTC 2010 - coolo@novell.com diff --git a/perl-Algorithm-C3.spec b/perl-Algorithm-C3.spec index 69c50a2..a87184a 100644 --- a/perl-Algorithm-C3.spec +++ b/perl-Algorithm-C3.spec @@ -1,51 +1,83 @@ -%define cpan_name Algorithm-C3 +# +# spec file for package perl-Algorithm-C3 (Version 0.08) +# +# 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.07 -Release: 1 -Provides: %cpan_name -Requires: perl = %{perl_version} -Group: Development/Libraries/Perl -License: Artistic -URL: http://search.cpan.org/dist/Algorithm-C3/ -Summary: A module for merging hierarchies using the C3 algorithm -Source: %cpan_name-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +%bcond_with pod + +Name: perl-Algorithm-C3 +%define cpan_name Algorithm-C3 +Summary: Module for merging hierarchies using the C3 algorithm +Version: 0.08 +Release: 1 +License: GPL+ or Artistic +Group: Development/Libraries/Perl +Url: http://search.cpan.org/dist/Algorithm-C3/ +#Source: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Algorithm-C3-0.08.tar.gz +Source: %{cpan_name}-%{version}.tar.bz2 +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl +BuildRequires: perl(Module::Build) +%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(Carp) >= 0.01 +Requires: perl = %{perl_version} +Requires: perl(Carp) >= 0.01 %description -This module implements the C3 algorithm. I have broken this out into it's own -module because I found myself copying and pasting it way too often for +This module implements the C3 algorithm. I have broken this out into it's +own module because I found myself copying and pasting it way too often for various needs. Most of the uses I have for C3 revolve around class building and metamodels, but it could also be used for things like dependency resolution as well since it tends to do such a nice job of preserving local precendence orderings. +Authors: +-------- + Stevan Little, + 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} Build.PL installdirs=vendor +./Build build flags=%{?_smp_mflags} + +%check +./Build test %install -make DESTDIR=$RPM_BUILD_ROOT install_vendor -%perl_process_packlist +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +%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}/Algorithm -%{perl_vendorarch}/auto/Algorithm -/var/adm/perl-modules/%{name} -%doc Changes MANIFEST README - -%changelog -n %{name} -* Sun Oct 26 2008 - gerrit.beine@gmx.de -- first release 0.07 +%files -f %{name}.files +%defattr(-,root,root,-) +%doc Changes README +%changelog