- fix license to be in spdx.org format OBS-URL: https://build.opensuse.org/request/show/96609 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Task-Weaken?expand=0&rev=23
71 lines
2.1 KiB
RPMSpec
71 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package perl-Task-Weaken
|
|
#
|
|
# Copyright (c) 2011 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: perl-Task-Weaken
|
|
%define cpan_name Task-Weaken
|
|
Summary: Task::Weaken - Ensure that a platform has weaken support
|
|
License: GPL-1.0+ or Artistic-1.0
|
|
Group: Development/Libraries/Perl
|
|
Version: 1.04
|
|
Release: 0
|
|
Url: http://search.cpan.org/dist/Task-Weaken/
|
|
Source: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/%{cpan_name}-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%{perl_requires}
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
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 necessarily 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 %{cpan_name}-%{version}
|
|
|
|
%build
|
|
echo y | perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
%{__make}
|
|
|
|
%check
|
|
%{__make} test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%clean
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-, root, root)
|
|
%doc Changes LICENSE README
|
|
|
|
%changelog
|