File cmsfs.spec of Package cmsfs

#
# spec file for package cmsfs (Version 1.1.8)
#
# Copyright (c) 2008 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/
#



Name:           cmsfs
Url:            http://linuxvm.org/patches
Version:        1.1.8
Release:        5
Summary:        CMS Filesystem driver and utility
Group:          System/Filesystems
License:        GPL v2 or later
AutoReqProv:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         http://www.linuxvm.org/Patches/S390/%{name}-%{version}.tar.gz
Patch0:         %{name}-%{version}-linux26.patch
Patch1:         %{name}-%{version}-mandir.patch
Patch2:         %{name}-cflags.patch
Patch3:         %{name}-sanitize.patch
ExclusiveArch:  s390 s390x

%description
The CMS Filesystem package allows access to CMS files on CMS minidisks
that are owned or linked by a Linux/390 guest on z/VM. The CMS minidisk
must not reside in a z/VM SFS pool.

The RPM only contains the user mode (non kernel) utility.



Authors:
--------
    Rick Troth <rtroth@bmc.com>

%prep
%setup
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
export CFLAGS="$RPM_OPT_FLAGS"
./configure --mandir=/usr/share/man
make clean
make all
make doc

%install
make PREFIX=$RPM_BUILD_ROOT/usr MANDIR=$RPM_BUILD_ROOT/usr/share/man install
rm $RPM_BUILD_ROOT/usr/lib/libcmsfs.a

%files
%defattr(-,root,root)
/usr/bin/cmsfsvol
/usr/bin/cmsfslst
/usr/bin/cmsfscat
/usr/bin/cmsfsck
/usr/bin/cmsfscp
##/sbin/fsck.cms
%{_mandir}/man8/cms*
%doc README LICENSE INSTALL CREDITS

%changelog
* Wed Oct 15 2008 ro@suse.de
- added missing exclusivearch
* Mon Apr 14 2008 uli@suse.de
- fixed doc permissions
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Dec 12 2005 hare@suse.de
- package created, based on version 1.1.8