]> git.sven.stormbind.net Git - sven/mpt-status.git/blob - mpt-status.spec
8432a52bd97daa364217d869aa2e7a129cee33b6
[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: 4%{?dist}
5 License: GPLv2+
6 Group: Applications/System
7 Source: %{name}-%{version}.tar.gz
8 Source10: mpt-status.init
9 Patch1: mpt-status.header_path.patch
10 Patch2: mpt-status.includes.patch
11 Patch3: mpt-status.fsf_address.patch
12 BuildRequires: pciutils-devel
13 Requires (preun): /sbin/chkconfig
14 Requires (preun): /sbin/service 
15 Requires (post): /sbin/chkconfig
16
17 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
18
19 %description
20 The mpt-status software is a query tool to access the running
21 configuration and status of LSI SCSI HBAs. mpt-status allows
22 you to monitor the health and status of your RAID setup.
23
24 %prep
25 %setup -q -n %{name}-%{version}
26 %patch1 -p1
27 %patch2 -p1
28 %patch3 -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-statusd
37 %{__install} -D -m0644 man/mpt-status.8 %{buildroot}%{_mandir}/man8/mpt-status.8
38
39 %clean
40 %{__rm} -rf %{buildroot}
41
42 %files
43 %defattr(-, root, root, 0755)
44 %doc doc/{AUTHORS,Changelog,COPYING,DeveloperNotes,FAQ,README,ReleaseNotes,TODO}
45 %{_sbindir}/mpt-status
46 %{_sysconfdir}/rc.d/init.d/mpt-statusd
47 %{_mandir}/man8/mpt-status.*
48
49 %post
50 /sbin/chkconfig --add mpt-statusd
51
52 %preun
53 /sbin/service mpt-statusd stop > /dev/null 2>&1
54 /sbin/chkconfig --del mpt-statusd
55
56 %changelog
57 * Tue Aug 05 2014 Sven Hoexter <sven@timegate.de> - 1.2.0-5
58 - Do not install the INSTALL file from doc - copied the approach
59   form the openSuSE spec file.
60 * Mon Aug 04 2014 Sven Hoexter <sven@timegate.de> - 1.2.0-4
61 - Changed chkconfig and LSB header to not activate the init script
62   by default.
63 - Removed depedency on daemonize, if you would like to use
64   the init script monitoring facility you have to aquire a
65   daemonize by yourself.
66 - Remove URL and shorten Source - original author website is
67   no longer online.
68 - Add mpt-status.fsf_address.patch to update the FSF address.
69 - Install the mpt-status manpage.
70
71 * Sun Oct 16 2011 Sven Hoexter <sven@timegate.de> - 1.2.0-3
72 - Add mpt-status.init as Source10 and install it into the package.
73 - Require daemonize and chkconfig/service for post/preun.
74 - post and preun snippets to add/remove mpt-status from the
75   chkconfig service list.
76
77 * Thu Sep 22 2011 Sven Hoexter <sven@timegate.de> - 1.2.0-2
78 - Start summary with a capital letter (rpmlint).
79 - Change License to GPLv2+ (rpmlint).
80 - Remove 'Packager' tag (rpmlint).
81 - Remove macro from the prior changelog entry (rpmlint).
82 - Add -q to the 'setup' macro (rpmlint).
83 - Edit 'Source' tag to contain the upstream URL (rpmlint). 
84
85 * Sun Sep 11 2011 Sven Hoexter <sven@timegate.de> - 1.2.0-1
86 - Add Patch1 and Patch2, taken from Debian and re-diffed for a
87   generic path.
88 - Add BuildRequires pciutils-devel.
89 - Add 'dist' to the release version.
90 - Add BuildRoot format from one of the Fedora examples.
91 - Change Packager to Sven Hoexter <sven@timegate.de>.
92 - Copy the short and long description from the Debian package.
93
94 * Fri Jun 30 2006 Roberto Nibali (ratz@drugphish.ch)
95 - Changed release version
96
97 * Fri Jun 30 2006 Rich Edelman (rich.edelman@openwave.com)
98 - Upgraded to version 1.2.0-RC7
99 - Changed Makefile to use /lib/modules/`uname -r`/build as the KERNEL_PATH 
100   directory, instead of /usr/src/linux. This should make building this package
101   across different distributions easier. (Patch mpt-status-fix-kernel-path.diff)
102
103 * Thu Jul 14 2005 Jean-Philippe CIVADE <jp.civade@100p100.net> - 1.1.3-0
104 - Initial package.