From 739f980293816c8e8b4ad872fdc6f9d5d288a95a Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Apr 30 2013 22:48:11 +0000 Subject: import ledmon-0.77-1.el7.src.rpm --- diff --git a/.ledmon.metadata b/.ledmon.metadata new file mode 100644 index 0000000..e68df60 --- /dev/null +++ b/.ledmon.metadata @@ -0,0 +1 @@ +bd73b882da0476b64ae0a87b3a932ed8805b29a8 SOURCES/ledmon-0.77.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/ledmon-doc.patch b/SOURCES/ledmon-doc.patch new file mode 100644 index 0000000..039527f --- /dev/null +++ b/SOURCES/ledmon-doc.patch @@ -0,0 +1,39 @@ +ledctl documentation improvements + +Remove invalid option from the manpage. Show short options in usage(). + +Author: Jan Synacek + +--- ledmon-0.77/doc/ledctl.pod 2013-02-12 14:45:22.000000000 +0100 ++++ ledmon-0.77/doc/ledctl.pod.new 2013-04-19 10:25:41.784551587 +0200 +@@ -258,11 +258,6 @@ + Sets a path to local log file. If this option is specified the global log + file F is not used. + +-=item B<--quiet> +- +-Turns off all messages sent to C or C out. The messages +-will be still logged to local file and syslog facility. +- + =item B<-h> or B<--help> + + Prints this text out and exits. +--- ledmon-0.77/src/ledctl.c 2013-02-12 14:45:28.000000000 +0100 ++++ ledmon-0.77/src/ledctl.c.new 2013-04-19 10:28:07.895707605 +0200 +@@ -179,13 +179,13 @@ + printf("Mandatory arguments for long options are mandatory for" \ + " short options, too.\n\n"); + printf +- ("--log=PATH\t\t\t Use local log file instead\n" \ ++ ("--log=PATH, -l PATH\t\t Use local log file instead\n" \ + "\t\t\t\t /var/log/ledctl.log global file.\n"); + printf("--config=PATH, -c PATH\t\t Use alternate configuration" \ + " file (not yet\n\t\t\t\t implemented).\n"); +- printf("--help\t\t\t\t Displays this help text.\n"); ++ printf("--help, -h\t\t\t Displays this help text.\n"); + printf +- ("--version\t\t\t Displays version and license information.\n\n"); ++ ("--version, -v\t\t\t Displays version and license information.\n\n"); + printf("Patterns:\n" + "\tCommon patterns are:\n" + "\t\tlocate, locate_off, normal, off, degraded, rebuild,\n" "" diff --git a/SOURCES/ledmon_cflags.patch b/SOURCES/ledmon_cflags.patch new file mode 100644 index 0000000..13a7755 --- /dev/null +++ b/SOURCES/ledmon_cflags.patch @@ -0,0 +1,10 @@ +--- ledmon-0.72/src/Makefile.orig 2012-08-06 11:29:39.000000000 +0200 ++++ ledmon-0.72/src/Makefile 2012-08-07 07:19:25.241220694 +0200 +@@ -55,7 +55,6 @@ LEDCTL_OBJECTS=\ + $(OUTDIR)/ledctl.o \ + $(OBJECTS) + +-CFLAGS=-O0 -g -Wall -std=c99 + DEFFLAGS=-D_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE + INCFLAGS=-I../config + LDFLAGS=-O0 -g $(DEFFLAGS) -lsgutils2 diff --git a/SPECS/ledmon.spec b/SPECS/ledmon.spec new file mode 100644 index 0000000..f2c6642 --- /dev/null +++ b/SPECS/ledmon.spec @@ -0,0 +1,91 @@ +Summary: Enclosure LED Utilities +Name: ledmon +Version: 0.77 +Release: 1%{?dist} +License: GPLv2+ +Group: Applications/System +URL: http://sourceforge.net/projects/ledmon/ +Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Patch0: ledmon_cflags.patch +Patch1: ledmon-doc.patch +BuildRequires: perl +BuildRequires: sg3_utils-devel +Obsoletes: ledctl = 0.1-1 +Provides: ledctl = %{version}-%{release} +Requires: sg3_utils-libs + +%description +The ledmon and ledctl are user space applications 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 +%patch0 -p1 -b .cflags +%patch1 -p1 -b .doc + +%build +# can't use smp_flags because -j4 makes the build fail +make CFLAGS="$RPM_OPT_FLAGS --std=c99" + +%install +make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT SBIN_DIR=$RPM_BUILD_ROOT/%{_sbindir} MANDIR=$RPM_BUILD_ROOT%{_mandir} + +%files +%doc README COPYING +%{_sbindir}/ledctl +%{_sbindir}/ledmon +%{_mandir}/*/* + +%changelog +* Fri Apr 19 2013 Jan Synáček - 0.77-1 +- Update to 0.77 +- Documentation enhancements + +* Thu Feb 14 2013 Fedora Release Engineering - 0.75-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Mon Jan 07 2013 Jan Synáček - 0.75-1 +- Update to 0.75 and drop upstreamed patch + +* Thu Nov 15 2012 Jan Synáček - 0.74-3 +- Some coverity fixes + +* Fri Oct 19 2012 Jan Synáček - 0.74-2 +- Require sg3_utils-libs + +* Mon Aug 13 2012 Jan Synáček - 0.74-1 +- Update to 0.74 +- Resolves: #847072 + +* Tue Aug 07 2012 Jan Synáček - 0.72-1 +- Update to 0.72 and update patch +- Resolves: #846018 + +* Wed Jul 25 2012 Jan Synáček - 0.40-1 +- Update to 0.40 +- Resolves: #838086 +- Make spec fedora-review friendly + +* Thu Jul 19 2012 Fedora Release Engineering - 0.32-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Mar 05 2012 Jan Synáček - 0.32-1 +- Update to 0.32 + +* Fri Feb 10 2012 Jan Synáček - 0.31-1 +- Update to 0.31 + +* Fri Jan 13 2012 Fedora Release Engineering - 0.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Feb 07 2011 Fedora Release Engineering - 0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Jan 14 2011 Jiri Moskovcak 0.1-2 +- renamed to ledmon, because ledctl is taken + +* Fri Jan 07 2011 Jiri Moskovcak 0.1-1 +- initial release