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
This commit is contained in:
OBS User autobuild 2010-03-08 17:19:43 +00:00 committed by Git OBS Bridge
parent c6d6d55473
commit 03dbe80c5c
2 changed files with 39 additions and 21 deletions

View File

@ -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

View File

@ -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 <adamk@cpan.org>
%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