]> git.sven.stormbind.net Git - sven/mpt-status.git/blob - mpt-status.spec
add init script to the files of the package
[sven/mpt-status.git] / mpt-status.spec
1 Summary: Get RAID status out of mpt (and other) HW RAID controllers
2 Name: mpt-status
3 Version: 1.2.0
4 Release: 3%{?dist}
5 License: GPLv2+
6 Group: Applications/System
7 URL: http://www.drugphish.ch/~ratz/mpt-status/
8 Source: http://www.drugphish.ch/~ratz/mpt-status/%{name}-%{version}.tar.gz
9 Source10: mpt-status.init
10 Patch1: mpt-status.header_path.patch
11 Patch2: mpt-status.includes.patch
12 BuildRequires: pciutils-devel
13 Requires: redhat-lsb, daemonize
14 Requires (preun): /sbin/chkconfig
15 Requires (preun): /sbin/service 
16 Requires (post): /sbin/chkconfig
17
18 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
19
20 %description
21 The mpt-status software is a query tool to access the running
22 configuration and status of LSI SCSI HBAs. mpt-status allows
23 you to monitor the health and status of your RAID setup.
24
25 %prep
26 %setup -q -n %{name}-%{version}
27 %patch1 -p1
28 %patch2 -p1
29
30 %build
31 %{__make}
32
33 %install
34 %{__rm} -rf %{buildroot}
35 %{__install} -D -m0755 mpt-status %{buildroot}%{_sbindir}/mpt-status
36 %{__install} -D -m0755 %{SOURCE10} %{buildroot}/%{_sysconfdir}/rc.d/init.d/mpt-status
37
38 %clean
39 %{__rm} -rf %{buildroot}
40
41 %files
42 %defattr(-, root, root, 0755)
43 %doc doc/*
44 %{_sbindir}/mpt-status
45 %{_sysconfdir}/rc.d/init.d/mpt-status
46
47 %post
48 /sbin/chkconfig --add mpt-status
49
50 %preun
51 /sbin/service mpt-status stop > /dev/null 2>&1
52 /sbin/chkconfig --del mpt-status
53
54 %changelog
55 * Sun Oct 16 2011 Sven Hoexter <sven@timegate.de> - 1.2.0-3
56 - Add mpt-status.init as Source10 and install it into the package.
57 - Require redhat-lsb, daemonize and chkconfig/service for post/preun.
58 - post and preun snippets to add/remove mpt-status from the
59   chkconfig service list.
60
61 * Thu Sep 22 2011 Sven Hoexter <sven@timegate.de> - 1.2.0-2
62 - Start summary with a capital letter (rpmlint).
63 - Change License to GPLv2+ (rpmlint).
64 - Remove 'Packager' tag (rpmlint).
65 - Remove macro from the prior changelog entry (rpmlint).
66 - Add -q to the 'setup' macro (rpmlint).
67 - Edit 'Source' tag to contain the upstream URL (rpmlint). 
68
69 * Sun Sep 11 2011 Sven Hoexter <sven@timegate.de> - 1.2.0-1
70 - Add Patch1 and Patch2, taken from Debian and re-diffed for a
71   generic path.
72 - Add BuildRequires pciutils-devel.
73 - Add 'dist' to the release version.
74 - Add BuildRoot format from one of the Fedora examples.
75 - Change Packager to Sven Hoexter <sven@timegate.de>.
76 - Copy the short and long description from the Debian package.
77
78 * Fri Jun 30 2006 Roberto Nibali (ratz@drugphish.ch)
79 - Changed release version
80
81 * Fri Jun 30 2006 Rich Edelman (rich.edelman@openwave.com)
82 - Upgraded to version 1.2.0-RC7
83 - Changed Makefile to use /lib/modules/`uname -r`/build as the KERNEL_PATH 
84   directory, instead of /usr/src/linux. This should make building this package
85   across different distributions easier. (Patch mpt-status-fix-kernel-path.diff)
86
87 * Thu Jul 14 2005 Jean-Philippe CIVADE <jp.civade@100p100.net> - 1.1.3-0
88 - Initial package.