Compare commits
No commits in common. "rawhide" and "f27" have entirely different histories.
3 changed files with 13 additions and 98 deletions
|
|
@ -1,11 +0,0 @@
|
|||
--- sgpio/sgpio.c
|
||||
+++ sgpio/sgpio.c
|
||||
@@ -126,7 +126,7 @@
|
||||
int id;
|
||||
int host_port;
|
||||
int init;
|
||||
- char name[7];
|
||||
+ char name[5 /* prefix */ + 10 /* port number */ + 1 /* terminator */];
|
||||
};
|
||||
|
||||
/* structure for the disks associated with the led structure */
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
Fedora specific Makefile patch.
|
||||
|
||||
--- sgpio/Makefile 2008-11-24 12:27:12.000000000 +0100
|
||||
+++ sgpio-new/Makefile 2018-02-26 11:32:14.394597823 +0100
|
||||
@@ -23,25 +23,29 @@
|
||||
--- sgpio/Makefile.orig 2008-10-29 09:55:50.000000000 +0100
|
||||
+++ sgpio/Makefile 2008-10-29 09:59:00.000000000 +0100
|
||||
@@ -23,12 +23,15 @@
|
||||
|
||||
|
||||
MANDIR ?= /usr/local/man
|
||||
|
|
@ -10,7 +10,6 @@ Fedora specific Makefile patch.
|
|||
+INSTALL =/usr/bin/install -c
|
||||
ALL = sgpio
|
||||
+CFLAGS = -g -Wall
|
||||
+LDFLAGS =
|
||||
|
||||
all: $(ALL)
|
||||
|
||||
|
|
@ -19,11 +18,8 @@ Fedora specific Makefile patch.
|
|||
+ gcc $(CFLAGS) -c sgpio.c
|
||||
|
||||
sgpio: sgpio.o
|
||||
- gcc -g sgpio.o -o sgpio
|
||||
+ gcc $(LDFLAGS) sgpio.o -o sgpio
|
||||
|
||||
clean:
|
||||
rm -f sgpio.o sgpio
|
||||
gcc -g sgpio.o -o sgpio
|
||||
@@ -38,10 +41,10 @@ clean:
|
||||
|
||||
install: $(ALL)
|
||||
for i in $(ALL); do \
|
||||
|
|
|
|||
86
sgpio.spec
86
sgpio.spec
|
|
@ -1,17 +1,15 @@
|
|||
Summary: SGPIO captive backplane tool
|
||||
Name: sgpio
|
||||
Version: 1.2.0.10
|
||||
Release: 41%{?dist}
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://sourceware.org/lvm2/wiki/DMRAID_Eventing
|
||||
Release: 19%{?dist}
|
||||
License: GPLv2+
|
||||
Group: System Environment/Base
|
||||
URL: http://sources.redhat.com/lvm2/wiki/DMRAID_Eventing
|
||||
Source: sgpio-1.2-0.10-src.tar.gz
|
||||
# there is no official download link for the latest package
|
||||
#Source: http://sources.redhat.com/lvm2/wiki/DMRAID_Eventing?action=AttachFile&do=get&target=sgpio-1.2.tgz
|
||||
Patch0: sgpio-1.2-makefile.patch
|
||||
Patch1: sgpio-1.2-coverity.patch
|
||||
Patch2: sgpio-1.2-buffer-overflow.patch
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
BuildRequires: dos2unix
|
||||
|
||||
%description
|
||||
|
|
@ -20,18 +18,17 @@ Intel SGPIO enclosure management utility
|
|||
%prep
|
||||
%setup -q -n sgpio
|
||||
dos2unix --keepdate Makefile README
|
||||
%patch -P0 -p1 -b .makefile
|
||||
%patch -P1 -p1 -b .coverity
|
||||
%patch -P2 -p1 -b .buffer-overflow
|
||||
%patch0 -p1 -b .makefile
|
||||
%patch1 -p1 -b .coverity
|
||||
chmod a-x *
|
||||
|
||||
%build
|
||||
#@@@ workaround for #474755 - remove with next update
|
||||
make clean
|
||||
%make_build CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
|
||||
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
|
||||
|
||||
%install
|
||||
%make_install SBIN_DIR=$RPM_BUILD_ROOT%{_sbindir} MANDIR=$RPM_BUILD_ROOT%{_mandir}
|
||||
make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT SBIN_DIR=$RPM_BUILD_ROOT%{_sbindir} MANDIR=$RPM_BUILD_ROOT%{_mandir}
|
||||
|
||||
%files
|
||||
%doc README
|
||||
|
|
@ -39,73 +36,6 @@ make clean
|
|||
%{_mandir}/man1/sgpio.*
|
||||
|
||||
%changelog
|
||||
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-41
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-40
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-39
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-38
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-37
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-36
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Tue Oct 31 2023 Lukáš Zaoral <lzaoral@redhat.com> - 1.2.0.10-35
|
||||
- fix buffer overflow with high port numbers
|
||||
|
||||
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-34
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Wed Mar 01 2023 Gwyn Ciesla <gwync@protonmail.com> - 1.2.0.10-33
|
||||
- migrated to SPDX license
|
||||
|
||||
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-32
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-31
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-30
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-29
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-28
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Mon Aug 24 2020 Jan Synáček <jsynacek@redhat.com> - 1.2.0.10-27
|
||||
- Use make macros
|
||||
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-26
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-25
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-24
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-23
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-22
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Mon Feb 26 2018 Jan Synáček <jsynacek@redhat.com> - 1.2.0.10-21
|
||||
- use distribution LDFLAGS during build (#1548559)
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0.10-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue