]> git.sven.stormbind.net Git - sven/mpt-status.git/blob - mpt-status.spec
Integrate mpt-status.init into the packaging.
[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
46 %post
47 /sbin/chkconfig --add mpt-status
48
49 %preun
50 /sbin/service mpt-status stop > /dev/null 2>&1
51 /sbin/chkconfig --del mpt-status
52
53 %changelog
54 * Sun Oct 16 2011 Sven Hoexter <sven@timegate.de> - 1.2.0-3
55 - Add mpt-status.init as Source10 and install it into the package.
56 - Require redhat-lsb, daemonize and chkconfig/service for post/preun.
57 - post and preun snippets to add/remove mpt-status from the
58   chkconfig service list.
59
60 * Thu Sep 22 2011 Sven Hoexter <sven@timegate.de> - 1.2.0-2
61 - Start summary with a capital letter (rpmlint).
62 - Change License to GPLv2+ (rpmlint).
63 - Remove 'Packager' tag (rpmlint).
64 - Remove macro from the prior changelog entry (rpmlint).
65 - Add -q to the 'setup' macro (rpmlint).
66 - Edit 'Source' tag to contain the upstream URL (rpmlint). 
67
68 * Sun Sep 11 2011 Sven Hoexter <sven@timegate.de> - 1.2.0-1
69 - Add Patch1 and Patch2, taken from Debian and re-diffed for a
70   generic path.
71 - Add BuildRequires pciutils-devel.
72 - Add 'dist' to the release version.
73 - Add BuildRoot format from one of the Fedora examples.
74 - Change Packager to Sven Hoexter <sven@timegate.de>.
75 - Copy the short and long description from the Debian package.
76
77 * Fri Jun 30 2006 Roberto Nibali (ratz@drugphish.ch)
78 - Changed release version
79
80 * Fri Jun 30 2006 Rich Edelman (rich.edelman@openwave.com)
81 - Upgraded to version 1.2.0-RC7
82 - Changed Makefile to use /lib/modules/`uname -r`/build as the KERNEL_PATH 
83   directory, instead of /usr/src/linux. This should make building this package
84   across different distributions easier. (Patch mpt-status-fix-kernel-path.diff)
85
86 * Thu Jul 14 2005 Jean-Philippe CIVADE <jp.civade@100p100.net> - 1.1.3-0
87 - Initial package.