Hello community,

here is the log from the commit of package sgpio for openSUSE:Factory checked 
in at 2016-04-07 13:32:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sgpio (Old)
 and      /work/SRC/openSUSE:Factory/.sgpio.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sgpio"

Changes:
--------
--- /work/SRC/openSUSE:Factory/sgpio/sgpio.changes      2011-10-06 
16:45:58.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.sgpio.new/sgpio.changes 2016-04-07 
13:32:14.000000000 +0200
@@ -1,0 +2,10 @@
+Fri Apr  1 13:34:46 UTC 2016 - [email protected]
+
+- Cleanup spec file with spec-cleaner
+- Do not strip installed binary
+- Refresh patches (no trailing whitespaces or offset when applying)
+  * sgpio_0.10.patch
+  * sgpio-make.patch
+  * sgpio-cflags.diff
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ sgpio.spec ++++++
--- /var/tmp/diff_new_pack.DVIt9p/_old  2016-04-07 13:32:15.000000000 +0200
+++ /var/tmp/diff_new_pack.DVIt9p/_new  2016-04-07 13:32:15.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package sgpio
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,66 +16,46 @@
 #
 
 
-
 Name:           sgpio
-Url:            http://sources.redhat.com/lvm2/wiki/DMRAID_Eventing
 Version:        1.2.1
-Release:        3
+Release:        0
+Summary:        SGPIO captive backplane tool
 License:        GPL-2.0+
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Group:          System/Base
-Summary:        SGPIO captive backplane tool
+Url:            http://sources.redhat.com/lvm2/wiki/DMRAID_Eventing
 Source0:        %{name}-%{version}.tar.bz2
-Patch0:         %{name}-cflags.diff
+Patch0:         sgpio-cflags.diff
 Patch1:         sgpio_0.10.patch
 Patch2:         sgpio-make.patch
 BuildRequires:  dos2unix
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
-Serial General Purpose Input Output (SGPIO) is a communication method
-used between a main board and a variety of internal and external hard
-disk drive bay enclosures. This utility can be used to control LEDs in
-an enclosure. For more information about SGPIO, please consult the
-SFF-8485 Specification.
-
-
-
-Authors:
---------
-    Eric R. Hall <[email protected]>
+Serial General Purpose Input Output (SGPIO) is a communication method used
+between a main board and a variety of internal and external hard disk drive
+bay enclosures. This utility can be used to control LEDs in an enclosure.
+For more information about SGPIO, please consult the  SFF-8485
+Specification.
 
 %prep
 %setup -q -n %{name}
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
+%patch0
+%patch1
+%patch2
 
 %build
-echo -e "#!/bin/bash\n`which %__cc` \"\$@\"" >gcc
-chmod 755 gcc
-export PATH=`pwd`:$PATH
-
-make CFLAGS="$RPM_OPT_FLAGS"
-gzip sgpio.1
-# strip the binary
-strip sgpio
-# fix documentation files
+make %{?_smp_mflags} CFLAGS="%{optflags}"
 dos2unix README LICENSE_GPL
 chmod a-x README LICENSE_GPL
 
 %install
-mkdir -p $RPM_BUILD_ROOT/%{_bindir} 
-mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
-install -m 0755 sgpio $RPM_BUILD_ROOT/%{_bindir}
-install -m 0644 sgpio.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1
-
-%clean
-rm -rf "$RPM_BUILD_ROOT"
+install -D -m 0755 sgpio   %{buildroot}/%{_bindir}/sgpio
+install -D -m 0644 sgpio.1 %{buildroot}/%{_mandir}/man1/sgpio.1
 
 %files
 %defattr(-,root,root)
 %doc README LICENSE_GPL
 %{_bindir}/sgpio
-%{_mandir}/man1/sgpio.1.gz
+%{_mandir}/man1/sgpio.1%{ext_man}
 
 %changelog

++++++ sgpio-cflags.diff ++++++
--- /var/tmp/diff_new_pack.DVIt9p/_old  2016-04-07 13:32:15.000000000 +0200
+++ /var/tmp/diff_new_pack.DVIt9p/_new  2016-04-07 13:32:15.000000000 +0200
@@ -2,14 +2,16 @@
  Makefile |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
---- a/Makefile
-+++ b/Makefile
+Index: Makefile
+===================================================================
+--- Makefile.orig
++++ Makefile
 @@ -28,7 +28,7 @@ ALL = sgpio
  all: $(ALL)
  
  sgpio.o: sgpio.c
 -      gcc -g -Wall -c sgpio.c
-+      gcc $(CFLAGS) -g -Wall -c sgpio.c
++      cc $(CFLAGS) -g -Wall -c sgpio.c
  
  sgpio: sgpio.o
        gcc -g sgpio.o -o sgpio

++++++ sgpio-make.patch ++++++
--- /var/tmp/diff_new_pack.DVIt9p/_old  2016-04-07 13:32:15.000000000 +0200
+++ /var/tmp/diff_new_pack.DVIt9p/_new  2016-04-07 13:32:15.000000000 +0200
@@ -1,6 +1,7 @@
-diff -Npru sgpio-old/Makefile sgpio/Makefile
---- sgpio-old/Makefile 2008-08-06 16:32:37.000000000 +0200
-+++ sgpio/Makefile     2008-12-22 16:26:09.000000000 +0100
+Index: Makefile
+===================================================================
+--- Makefile.orig
++++ Makefile
 @@ -20,10 +20,11 @@
  # Intel SGPIO enclosure management utility
  #
@@ -15,9 +16,10 @@
  
  all: $(ALL)
  
-diff -Npru sgpio-old/README sgpio/README
---- sgpio-old/README   2008-01-08 14:49:18.000000000 +0100
-+++ sgpio/README       2008-12-29 15:10:32.000000000 +0100
+Index: README
+===================================================================
+--- README.orig
++++ README
 @@ -1,7 +1,7 @@
  ==========================================================================
  Intel(R) SGPIO tool RELEASE NOTES

++++++ sgpio_0.10.patch ++++++
--- /var/tmp/diff_new_pack.DVIt9p/_old  2016-04-07 13:32:15.000000000 +0200
+++ /var/tmp/diff_new_pack.DVIt9p/_new  2016-04-07 13:32:15.000000000 +0200
@@ -1,6 +1,7 @@
-diff -urN sgpio_rh_snap4/sgpio.c sgpio_new/sgpio.c
---- sgpio_rh_snap4/sgpio.c     2008-07-14 16:01:37.000000000 +0200
-+++ sgpio_new/sgpio.c  2008-11-27 15:03:45.000000000 +0100
+Index: sgpio.c
+===================================================================
+--- sgpio.c.orig
++++ sgpio.c
 @@ -8,7 +8,7 @@
   *
   * This program is distributed in the hope that it will be useful, but
@@ -192,7 +193,7 @@
  }
  
  /* declare the whatportis [sdX] prototype */
-@@ -142,6 +167,12 @@
+@@ -142,6 +167,12 @@ int led_write(struct led_context *data,
  
  int led_set(int port_num);
  
@@ -205,7 +206,7 @@
  
  /* declare the timer event function prototype */
  void alarm_handler(int signo);
-@@ -149,505 +180,504 @@
+@@ -149,505 +180,504 @@ void alarm_handler(int signo);
  /* declare the timer function that runs every x sec or usec prototype */
  int led_timer();
  
@@ -1174,9 +1175,10 @@
 +}
 +
 +
-diff -urN sgpio_rh_snap4/version.h sgpio_new/version.h
---- sgpio_rh_snap4/version.h   2008-07-14 16:01:37.000000000 +0200
-+++ sgpio_new/version.h        2008-11-25 09:05:24.000000000 +0100
+Index: version.h
+===================================================================
+--- version.h.orig
++++ version.h
 @@ -8,7 +8,7 @@
   *
   * This program is distributed in the hope that it will be useful, but


Reply via email to