Name: sgpio Version: 1.2.1 Release: 3 Summary: captive backplane LED control utility License: GPLv2+ URL: http://sources.redhat.com/lvm2/wiki/DMRAID_Eventing Source0: https://www.sourceware.org/lvm2/wiki/DMRAID_Eventing?action=AttachFile&do=view&target=%{name}-%{version}.tgz BuildRequires: gcc, dos2unix Patch0: sgpio-makefile.patch Patch1: 0001-sgpio-fix-cc.patch %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. %prep %autosetup -p1 -n %{name} chmod a-x * %build make clean export CFLAGS="%{optflags}" export LDFLAGS="%{build_ldflags}" %make_build dos2unix README LICENSE_GPL %install %make_install \ INSTALL="%{__install} -p -D" \ SBINDIR="%{buildroot}%{_sbindir}"\ MANDIR="%{buildroot}%{_mandir}" %check %pre %preun %post %postun %files %doc README LICENSE_GPL %{_sbindir}/sgpio %{_mandir}/man*/* %changelog * Sun Apr 23 2023 Zhang Chao - 1.2.1-3 - Fix CC compiler support * Fri Dec 20 2019 openEuler Buildteam - 1.2.1-2 - Modify the source0 * Sat Aug 31 2019 openEuler Buildteam - 1.2.1-1 - Package init