sgpio/sgpio.spec

60 lines
1.3 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:17:03 -04:00
Name: sgpio
Version: 1.2.1
Release: 3
2019-09-30 11:17:03 -04:00
Summary: captive backplane LED control utility
License: GPLv2+
URL: http://sources.redhat.com/lvm2/wiki/DMRAID_Eventing
2019-12-25 16:07:34 +08:00
Source0: https://www.sourceware.org/lvm2/wiki/DMRAID_Eventing?action=AttachFile&do=view&target=%{name}-%{version}.tgz
2019-09-30 11:17:03 -04:00
BuildRequires: gcc, dos2unix
Patch0: sgpio-makefile.patch
Patch1: 0001-sgpio-fix-cc.patch
2019-09-30 11:17:03 -04:00
%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 <chaozhangm@isoftstone.com> - 1.2.1-3
- Fix CC compiler support
2019-12-25 16:07:34 +08:00
* Fri Dec 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.2.1-2
- Modify the source0
2019-09-30 11:17:03 -04:00
* Sat Aug 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.2.1-1
- Package init