File mpt-status.spec of Package mpt-status

#
# spec file for package mpt-status
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           mpt-status
BuildRequires:  kernel-source
Version:        1.2.0
Release:        170
AutoReqProv:    on
Group:          Hardware/Other
License:        GPL v2 or later
Url:            http://www.drugphish.ch/~ratz/mpt-status/
Summary:        Program Showing the Status of LSI 1030 RAID Controller
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         %{name}-%{version}.tar.bz2
Patch0:         mpt-status.linux-compiler.patch

%description
This program shows the status of the physical and logical drives
attached to a LSI 1030 RAID (mptlinux, fusion, mpt, ioc) controller.



Authors:
--------
    Matt Braithwaite <mab@red-bean.com>
    Roberto Nibali <ratz@drugphish.ch>

%prep
%setup -q
%patch0 -p1

%build
%__cc $RPM_OPT_FLAGS -I/usr/src/linux/drivers/message/fusion -Iincl mpt-status.c -o mpt-status

%install
install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man8
install -m 755 mpt-status $RPM_BUILD_ROOT%{_bindir}
install -m 644 man/mpt-status.8 $RPM_BUILD_ROOT%{_mandir}/man8

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc doc/*
%doc %{_mandir}/man?/*
%{_bindir}/*

%changelog
openSUSE Build Service is sponsored by