2011-05-11 05:07:03 +00:00
|
|
|
#
|
2011-05-25 08:08:37 +00:00
|
|
|
# spec file for package perl-Number-Compare
|
2011-05-11 05:07:03 +00:00
|
|
|
#
|
2022-04-28 05:12:57 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2011-05-11 05:07:03 +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.
|
|
|
|
|
2022-04-28 05:12:57 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-05-11 05:07:03 +00:00
|
|
|
#
|
|
|
|
|
2011-05-25 08:08:37 +00:00
|
|
|
|
2011-05-11 05:07:03 +00:00
|
|
|
Name: perl-Number-Compare
|
2011-09-22 12:58:30 +00:00
|
|
|
Version: 0.03
|
2022-04-28 05:12:57 +00:00
|
|
|
Release: 0
|
2008-06-09 15:07:15 +00:00
|
|
|
%define cpan_name Number-Compare
|
2011-09-22 12:58:30 +00:00
|
|
|
Summary: Numeric comparisons
|
2022-04-28 05:12:57 +00:00
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0
|
2011-05-11 05:07:03 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2022-04-28 05:12:57 +00:00
|
|
|
URL: https://search.cpan.org/dist/Number-Compare/
|
|
|
|
Source: https://www.cpan.org/authors/id/R/RC/RCLAMP/%{cpan_name}-%{version}.tar.gz
|
2010-10-19 08:46:48 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:45:08 +00:00
|
|
|
BuildRequires: perl-macros
|
2011-09-13 08:23:52 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2011-05-11 05:07:03 +00:00
|
|
|
%{perl_requires}
|
2008-06-09 15:07:15 +00:00
|
|
|
|
|
|
|
%description
|
2011-05-11 05:07:03 +00:00
|
|
|
Number::Compare compiles a simple comparison to an anonymous subroutine,
|
|
|
|
which you can call with a value to be tested again.
|
|
|
|
|
|
|
|
Now this would be very pointless, if Number::Compare didn't understand
|
|
|
|
magnitudes.
|
|
|
|
|
|
|
|
The target value may use magnitudes of kilobytes ('k', 'ki'), megabytes
|
|
|
|
('m', 'mi'), or gigabytes ('g', 'gi'). Those suffixed with an 'i' use the
|
|
|
|
appropriate 2**n version in accordance with the IEC standard:
|
2022-04-28 05:12:57 +00:00
|
|
|
https://physics.nist.gov/cuu/Units/binary.html
|
2008-06-09 15:07:15 +00:00
|
|
|
|
|
|
|
%prep
|
2011-05-11 05:07:03 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2008-06-09 15:07:15 +00:00
|
|
|
|
|
|
|
%build
|
2011-09-13 08:23:52 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
2011-05-11 05:07:03 +00:00
|
|
|
|
|
|
|
%check
|
2011-09-13 08:23:52 +00:00
|
|
|
make test
|
2008-06-09 15:07:15 +00:00
|
|
|
|
|
|
|
%install
|
2011-05-11 05:07:03 +00:00
|
|
|
%perl_make_install
|
2008-06-09 15:07:15 +00:00
|
|
|
%perl_process_packlist
|
2011-05-11 05:07:03 +00:00
|
|
|
%perl_gen_filelist
|
2008-06-09 15:07:15 +00:00
|
|
|
|
|
|
|
%clean
|
2011-09-13 08:23:52 +00:00
|
|
|
rm -rf %{buildroot}
|
2011-05-11 05:07:03 +00:00
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes
|
|
|
|
|
|
|
|
%changelog
|