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:
parent
c6d6d55473
commit
03dbe80c5c
@ -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
|
Sun Nov 15 18:53:14 CET 2009 - dmueller@suse.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Task-Weaken (Version 1.03)
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -19,47 +19,54 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: perl-Task-Weaken
|
Name: perl-Task-Weaken
|
||||||
%define modname Task-Weaken
|
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
||||||
Version: 1.03
|
|
||||||
Release: 1
|
|
||||||
Url: http://search.cpan.org/~nuffin/Tie-RefHash-Weak-0.08/lib/Tie/RefHash/Weak.pm
|
|
||||||
Summary: Task::Weaken - Ensure that a platform has weaken support
|
Summary: Task::Weaken - Ensure that a platform has weaken support
|
||||||
Requires: perl = %{perl_version}
|
Version: 1.03
|
||||||
BuildRequires: perl
|
Release: 2
|
||||||
License: GPL/Artistic
|
License: GPL/Artistic
|
||||||
Group: Development/Libraries/Perl
|
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
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: perl-macros
|
||||||
|
Requires: perl = %{perl_version}
|
||||||
|
Provides: %{cpan_name}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
One recurring problem in modules that use Scalar::Util's weaken function is that it is not present in the pure-perl variant.
|
One recurring problem in modules that use Scalar::Util's "weaken"
|
||||||
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.
|
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:
|
Authors:
|
||||||
--------
|
--------
|
||||||
Adam Kennedy <adamk@cpan.org>
|
Adam Kennedy <adamk@cpan.org>
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{modname}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
echo y | perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
echo y | perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||||
make
|
%{__make}
|
||||||
make test
|
|
||||||
|
%check
|
||||||
|
%{__make} test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
%perl_make_install
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files -f %{name}.files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%doc Changes README
|
%doc Changes LICENSE README
|
||||||
%doc %{_mandir}/man?/*
|
|
||||||
%{perl_vendorlib}/Task
|
|
||||||
%{perl_vendorarch}/auto/Task
|
|
||||||
/var/adm/perl-modules/%{name}
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user