X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fmpt-status.git;a=blobdiff_plain;f=mpt-status.spec;h=96ef26c2d5127ddba6b4dc1604e59397cf230d32;hp=2098773b6b71b27f54ed91619f14abad1f0761ee;hb=969c3166c876b2a9cdcf30fec8a2921633d372da;hpb=4356033ea89dc8a4f7d3a6ce55fe2a2db9d01daa diff --git a/mpt-status.spec b/mpt-status.spec index 2098773..96ef26c 100644 --- a/mpt-status.spec +++ b/mpt-status.spec @@ -1,15 +1,19 @@ -Summary: get RAID status out of mpt (and other) HW RAID controllers +Summary: Get RAID status out of mpt (and other) HW RAID controllers Name: mpt-status Version: 1.2.0 -Release: 1%{?dist} -License: GPL +Release: 3%{?dist} +License: GPLv2+ Group: Applications/System URL: http://www.drugphish.ch/~ratz/mpt-status/ -Packager: Sven Hoexter (sven@timegate.de) -Source: mpt-status-%{version}.tar.gz +Source: http://www.drugphish.ch/~ratz/mpt-status/%{name}-%{version}.tar.gz +Source10: mpt-status.init Patch1: mpt-status.header_path.patch Patch2: mpt-status.includes.patch BuildRequires: pciutils-devel +Requires: daemonize +Requires (preun): /sbin/chkconfig +Requires (preun): /sbin/service +Requires (post): /sbin/chkconfig BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -19,7 +23,7 @@ configuration and status of LSI SCSI HBAs. mpt-status allows you to monitor the health and status of your RAID setup. %prep -%setup -n mpt-status-%{version} +%setup -q -n %{name}-%{version} %patch1 -p1 %patch2 -p1 @@ -29,6 +33,7 @@ you to monitor the health and status of your RAID setup. %install %{__rm} -rf %{buildroot} %{__install} -D -m0755 mpt-status %{buildroot}%{_sbindir}/mpt-status +%{__install} -D -m0755 %{SOURCE10} %{buildroot}/%{_sysconfdir}/rc.d/init.d/mpt-statusd %clean %{__rm} -rf %{buildroot} @@ -37,13 +42,35 @@ you to monitor the health and status of your RAID setup. %defattr(-, root, root, 0755) %doc doc/* %{_sbindir}/mpt-status +%{_sysconfdir}/rc.d/init.d/mpt-statusd + +%post +/sbin/chkconfig --add mpt-statusd + +%preun +/sbin/service mpt-statusd stop > /dev/null 2>&1 +/sbin/chkconfig --del mpt-statusd %changelog +* Sun Oct 16 2011 Sven Hoexter - 1.2.0-3 +- Add mpt-status.init as Source10 and install it into the package. +- Require redhat-lsb, daemonize and chkconfig/service for post/preun. +- post and preun snippets to add/remove mpt-status from the + chkconfig service list. + +* Thu Sep 22 2011 Sven Hoexter - 1.2.0-2 +- Start summary with a capital letter (rpmlint). +- Change License to GPLv2+ (rpmlint). +- Remove 'Packager' tag (rpmlint). +- Remove macro from the prior changelog entry (rpmlint). +- Add -q to the 'setup' macro (rpmlint). +- Edit 'Source' tag to contain the upstream URL (rpmlint). + * Sun Sep 11 2011 Sven Hoexter - 1.2.0-1 - Add Patch1 and Patch2, taken from Debian and re-diffed for a generic path. - Add BuildRequires pciutils-devel. -- Add %{dist} to the release version. +- Add 'dist' to the release version. - Add BuildRoot format from one of the Fedora examples. - Change Packager to Sven Hoexter . - Copy the short and long description from the Debian package.