Upstream update.

Spec file cleanup.
This commit is contained in:
Ralf Corsépius 2011-09-19 10:25:45 +02:00
parent 772d3c8bb0
commit 6e772fe6b9
4 changed files with 9 additions and 26 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
Number-Compare-0.01.tar.gz
/Number-Compare-0.02.tar.gz

View File

@ -1,11 +0,0 @@
--- Number-Compare-0.01/Compare.pm.orig 2002-10-25 11:46:27.000000000 -0400
+++ Number-Compare-0.01/Compare.pm 2010-06-16 13:54:02.000000000 -0400
@@ -26,7 +26,7 @@
my $comparison = $1 || '==';
my $target = $2;
- my $magnitude = $3;
+ my $magnitude = $3 || '';
$target *= 1000 if lc $magnitude eq 'k';
$target *= 1024 if lc $magnitude eq 'ki';
$target *= 1000000 if lc $magnitude eq 'm';

View File

@ -1,15 +1,11 @@
Name: perl-Number-Compare
Version: 0.01
Release: 16%{?dist}
Version: 0.02
Release: 1%{?dist}
Summary: Perl module for numeric comparisons
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Number-Compare/
Source0: http://www.cpan.org/modules/by-module/Number/Number-Compare-%{version}.tar.gz
# Address https://bugzilla.redhat.com/show_bug.cgi?id=607982
# Patch from https://rt.cpan.org/Public/Bug/Display.html?id=58466
Patch0: https://rt.cpan.org/Ticket/Attachment/792151/410599/Number-Compare-0.01-uninitialized.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: http://www.cpan.org/authors/id/R/RC/RCLAMP/Number-Compare-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
@ -22,7 +18,6 @@ which you can call with a value to be tested again.
%prep
%setup -q -n Number-Compare-%{version}
%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
@ -30,17 +25,11 @@ make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%clean
rm -rf $RPM_BUILD_ROOT
%check
make test
@ -51,6 +40,10 @@ make test
%{_mandir}/man3/*
%changelog
* Mon Sep 19 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.02-1
- Upstream update.
- Spec file cleanup.
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.01-16
- 661697 rebuild for fixing problems with vendorach/lib

View File

@ -1 +1 @@
519a4434e35033e9bd034d27cd2fd299 Number-Compare-0.01.tar.gz
e77d5218a236184064c2866f334f9702 Number-Compare-0.02.tar.gz