2011-04-22 07:26:49 +00:00
|
|
|
#
|
2015-04-17 05:49:31 +00:00
|
|
|
# spec file for package perl-Devel-Size
|
2011-04-22 07:26:49 +00:00
|
|
|
#
|
2025-05-24 16:17:44 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2011-04-22 07:26:49 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-04-27 10:24:07 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-04-22 07:26:49 +00:00
|
|
|
#
|
|
|
|
|
2015-04-17 05:49:31 +00:00
|
|
|
|
2024-05-16 12:02:18 +00:00
|
|
|
%define cpan_name Devel-Size
|
2009-11-18 13:22:07 +00:00
|
|
|
Name: perl-Devel-Size
|
2025-05-24 16:17:44 +00:00
|
|
|
Version: 0.850.0
|
2015-04-17 05:49:31 +00:00
|
|
|
Release: 0
|
2025-05-24 16:17:44 +00:00
|
|
|
# 0.85 -> normalize -> 0.850.0
|
|
|
|
%define cpan_version 0.85
|
2018-06-28 10:46:19 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2024-05-16 12:02:18 +00:00
|
|
|
Summary: Perl extension for finding the memory usage of Perl variables
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/N/NW/NWCLARK/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-17 05:49:31 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:13:31 +02:00
|
|
|
Source100: README.md
|
2009-11-18 13:22:07 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2024-05-16 12:02:18 +00:00
|
|
|
Provides: perl(Devel::Size) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2011-04-22 07:26:49 +00:00
|
|
|
%{perl_requires}
|
2009-11-18 13:22:07 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This module figures out the real size of Perl variables in bytes, as
|
|
|
|
accurately as possible.
|
|
|
|
|
2011-04-22 07:26:49 +00:00
|
|
|
Call functions with a reference to the variable you want the size of. If
|
|
|
|
the variable is a plain scalar it returns the size of this scalar. If the
|
|
|
|
variable is a hash or an array, use a reference when calling.
|
|
|
|
|
2009-11-18 13:22:07 +00:00
|
|
|
%prep
|
2025-05-24 16:17:44 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2009-11-18 13:22:07 +00:00
|
|
|
|
|
|
|
%build
|
2019-04-27 10:24:07 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
2024-05-16 12:02:18 +00:00
|
|
|
%make_build
|
2009-11-18 13:22:07 +00:00
|
|
|
|
|
|
|
%check
|
2019-04-27 10:24:07 +00:00
|
|
|
make test
|
2009-11-18 13:22:07 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2019-04-27 10:24:07 +00:00
|
|
|
%doc CHANGES CONTRIBUTING README
|
2009-11-18 13:22:07 +00:00
|
|
|
|
|
|
|
%changelog
|