forked from pool/perl-Number-Compare
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Number-Compare?expand=0&rev=6
49 lines
1.3 KiB
RPMSpec
49 lines
1.3 KiB
RPMSpec
%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.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%{perl_requires}
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
|
|
%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
|
|
|
|
%prep
|
|
%setup -q -n %cpan_name-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
make
|
|
make test
|
|
|
|
%install
|
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
|
%perl_process_packlist
|
|
|
|
%clean
|
|
# clean up the hard disc after build
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc %{_mandir}/man?/*
|
|
%{perl_vendorlib}/Number
|
|
%{perl_vendorarch}/auto/Number
|
|
%doc Changes MANIFEST
|
|
|
|
%changelog -n %{name}
|
|
* Sun Jun 08 2008 - gerrit.beine@gmx.de
|
|
- first release 0.01
|