File scsires.spec of Package scsires

# spec file for package scsires
# 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

Summary:        A SCSI reservation tool

Name:           scsires
Version:        0.7
Release:        2
License:        GPL-2.0+
Group:          Productivity/Clustering/HA
Source:         scsires.tgz
Patch0:         scsi_resevers_text.diff
Patch1:         scsires_remove_unused_vars.diff
BuildRequires:  popt-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This tool is for issuing SCSI-2 reservation and release commands, for
controlling exclusive access to a SCSI device that is shared between
more than one SCSI host adapter.

    Doug Ledford

%setup -q -c
%patch0 -p1
%patch1 -p1

make CC="%__cc" CFLAGS="$RPM_OPT_FLAGS"

rm -rf %{buildroot}
mkdir -p %{buildroot}%{_sbindir}
install -m 755 scsi_reserve %{buildroot}%{_sbindir}/scsi_reserve

rm -rf %{buildroot}


openSUSE Build Service is sponsored by