forked from pool/perl-Number-Compare
- regenerate with cpanspec
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Number-Compare?expand=0&rev=8
This commit is contained in:
parent
bbbb9c4293
commit
47f13a4c04
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0ef044e655504f418f66a91ede656d3b51511eab900c6dd9b27b30cb9cb83569
|
||||
size 2173
|
3
Number-Compare-0.01.tar.gz
Normal file
3
Number-Compare-0.01.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:32b5b0a73b54bbd8fbaadffb0e5a8532bc4da18a934b949e1cc68dae162d49ef
|
||||
size 2123
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 11 05:05:40 UTC 2011 - coolo@opensuse.org
|
||||
|
||||
- regenerate with cpanspec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 2 13:41:23 UTC 2011 - vcizek@novell.com
|
||||
|
||||
|
@ -1,47 +1,67 @@
|
||||
#
|
||||
# spec file for package perl-Number-Compare (Version 0.01)
|
||||
#
|
||||
# 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-Number-Compare
|
||||
Version: 0.01
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
%define cpan_name Number-Compare
|
||||
Name: perl-%cpan_name
|
||||
Version: 0.01
|
||||
Release: 1
|
||||
Provides: %cpan_name
|
||||
Group: Development/Libraries/Perl
|
||||
License: Artistic
|
||||
URL: http://search.cpan.org/dist/Number-Compare/
|
||||
Summary: Numeric comparisons
|
||||
Source: %cpan_name-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{perl_requires}
|
||||
Summary: numeric comparisons
|
||||
Url: http://search.cpan.org/dist/Number-Compare/
|
||||
Group: Development/Libraries/Perl
|
||||
Source: http://www.cpan.org/authors/id/R/RC/RCLAMP/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
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: http://physics.nist.gov/cuu/Units/binary.html
|
||||
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:
|
||||
http://physics.nist.gov/cuu/Units/binary.html
|
||||
|
||||
%prep
|
||||
%setup -q -n %cpan_name-%{version}
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||
make
|
||||
make test
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
# clean up the hard disc after build
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc %{_mandir}/man?/*
|
||||
%{perl_vendorlib}/Number
|
||||
%{perl_vendorarch}/auto/Number
|
||||
%doc Changes MANIFEST
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes
|
||||
|
||||
%changelog -n %{name}
|
||||
* Sun Jun 08 2008 - gerrit.beine@gmx.de
|
||||
- first release 0.01
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user