Summary: Enclosure LED Utilities Name: ledctl Version: 0.1 Release: 1 License: GPLv2+ Group: Applications/System # intel doesn't provide any upstream URL yet URL: http://www.intel.com/ Source: ledctl.tgz Patch0: makefile.patch Patch1: ledctl_execman.patch Patch2: ledctl_cflags.patch BuildRequires: perl BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description The ledctl is user space application design to control LED associated with each slot in an enclosure or a drive bay. There are two types of system: 2-LED system (Activity LED, Status LED) and 3-LED system (Activity LED, Locate LED, Fail LED). User must have root privileges to use this application. %prep %setup -q -n ledctl %patch0 -p1 -b .makefile %patch1 -p1 -b .execman %patch2 -p1 -b .cflags %build # can't use smp_flags because -j4 makes the build fail make CFLAGS="$RPM_OPT_FLAGS --std=c99" %install rm -rf $RPM_BUILD_ROOT make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT SBIN_DIR=$RPM_BUILD_ROOT/%{_sbindir} MANDIR=$RPM_BUILD_ROOT%{_mandir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README COPYING %{_bindir}/ledctl %{_sbindir}/ledmon %{_mandir}/*/* %changelog * Fri Jan 07 2011 Jiri Moskovcak 0.1-1 - initial release