#2 spec cleanups
Merged 3 years ago by spot. Opened 3 years ago by tbaeder.
rpms/ tbaeder/scrub master  into  master

@@ -0,0 +1,12 @@ 

+ diff -ruN scrub-2.5.2.orig/src/genrand.c scrub-2.5.2/src/genrand.c

+ --- scrub-2.5.2.orig/src/genrand.c	2012-06-21 00:00:27.000000000 +0200

+ +++ scrub-2.5.2/src/genrand.c	2020-11-27 13:57:59.866410480 +0100

+ @@ -106,7 +106,7 @@

+                  buf[n] = result;

+              }

+  #endif

+ -            return;

+ +            return 0;

+          }

+      }

+  

file modified
+6 -2
@@ -6,6 +6,8 @@ 

  URL:		http://code.google.com/p/diskscrub/

  Source0:	http://diskscrub.googlecode.com/files/%{name}-%{version}.tar.bz2

  

+ Patch0:		genrand-return-value.patch

+ 

  BuildRequires:  gcc

  %description

  Scrub writes patterns on files or disk devices to make
@@ -19,12 +21,14 @@ 

  %prep

  %setup -q

  

+ %autopatch -p1

+ 

  %build

  %configure

- make %{?_smp_mflags}

+ %{make_build}

  

  %install

- make DESTDIR=%{buildroot} install

+ %{make_install}

  

  %files

  %doc DISCLAIMER COPYING

Use the make macros.

The patch just adds a return value to the genrand() function, which is expected to return an int.

Woops. Now I noticed #1 of course.

Pull-Request has been merged by spot

3 years ago