From 03dbe80c5cc1bc4e550189f7240b9f01d3ec2d6e80650a20cd866a715fd69c9a Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Mon, 8 Mar 2010 17:19:43 +0000 Subject: [PATCH] Accepting request 34259 from devel:languages:perl Copy from devel:languages:perl/perl-Task-Weaken based on submit request 34259 from user coolo OBS-URL: https://build.opensuse.org/request/show/34259 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Task-Weaken?expand=0&rev=2 --- perl-Task-Weaken.changes | 11 +++++++++ perl-Task-Weaken.spec | 49 +++++++++++++++++++++++----------------- 2 files changed, 39 insertions(+), 21 deletions(-) diff --git a/perl-Task-Weaken.changes b/perl-Task-Weaken.changes index d3c6bc0..ae58bab 100644 --- a/perl-Task-Weaken.changes +++ b/perl-Task-Weaken.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sun Feb 21 21:18:48 UTC 2010 - chris@computersalat.de + +- cleanup spec + o fix Url + o modname > cpan_name + o added perl-macros + o added provides cpan_name + o usage of more macros + o added LICENSE to doc + ------------------------------------------------------------------- Sun Nov 15 18:53:14 CET 2009 - dmueller@suse.de diff --git a/perl-Task-Weaken.spec b/perl-Task-Weaken.spec index 213c052..ee1f80d 100644 --- a/perl-Task-Weaken.spec +++ b/perl-Task-Weaken.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Task-Weaken (Version 1.03) # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# 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 @@ -19,47 +19,54 @@ Name: perl-Task-Weaken -%define modname Task-Weaken -Version: 1.03 -Release: 1 -Url: http://search.cpan.org/~nuffin/Tie-RefHash-Weak-0.08/lib/Tie/RefHash/Weak.pm +%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) Summary: Task::Weaken - Ensure that a platform has weaken support -Requires: perl = %{perl_version} -BuildRequires: perl +Version: 1.03 +Release: 2 License: GPL/Artistic Group: Development/Libraries/Perl -Source: %{modname}-%{version}.tar.bz2 +Url: http://search.cpan.org/dist/Task-Weaken/ +Source: %{cpan_name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +Requires: perl = %{perl_version} +Provides: %{cpan_name} %description -One recurring problem in modules that use Scalar::Util's weaken function is that it is not present in the pure-perl variant. -While this isn't necesarily always a problem in a straight CPAN-based Perl environment, some operating system distributions only include the pure-Perl versions, don't include the XS version, and so weaken is then "missing" from the platform, despite passing a dependency on Scalar::Util successfully. +One recurring problem in modules that use Scalar::Util's "weaken" +function is that it is not present in the pure-perl variant. + +While this isn't necesarily always a problem in a straight CPAN-based +Perl environment, some operating system distributions only include the +pure-Perl versions, don't include the XS version, and so weaken is then +"missing" from the platform, despite passing a dependency on +Scalar::Util successfully. Authors: -------- Adam Kennedy %prep -%setup -q -n %{modname}-%{version} +%setup -q -n %{cpan_name}-%{version} %build echo y | perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" -make -make test +%{__make} + +%check +%{__make} test %install -make DESTDIR=$RPM_BUILD_ROOT install_vendor +%perl_make_install %perl_process_packlist +%perl_gen_filelist %clean -rm -rf %{buildroot} +%{__rm} -rf $RPM_BUILD_ROOT -%files +%files -f %{name}.files %defattr(-, root, root) -%doc Changes README -%doc %{_mandir}/man?/* -%{perl_vendorlib}/Task -%{perl_vendorarch}/auto/Task -/var/adm/perl-modules/%{name} +%doc Changes LICENSE README %changelog