%define cpan_name Number-Compare Name: perl-%cpan_name Version: 0.01 Release: 1 Provides: %cpan_name Requires: perl = %{perl_version} 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 BuildRequires: perl %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 /var/adm/perl-modules/%{name} %doc Changes MANIFEST %changelog -n %{name} * Sun Jun 08 2008 - gerrit.beine@gmx.de - first release 0.01