File jfsutils.spec of Package jfsutils

# spec file for package jfsutils
# Copyright (c) 2012 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

Name:           jfsutils
BuildRequires:  e2fsprogs-devel
Summary:        IBM JFS Utility Programs
License:        GPL-2.0+
Group:          System/Filesystems
Version:        1.1.15
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         %name-%version.tar.bz2
Source1:        jfs.pdf
Source2:        jfslayout.pdf
Source3:        jfslog.pdf
Source4:        jfsroot.html
Source5:        jfs.txt
Patch1:         jfs-headers.patch
Provides:       jfsprogs
%if 0%{?suse_version} > 1010
Supplements:    filesystem(jfs)
Obsoletes:      jfsprogs
%define sbindir /sbin

This package contains utilities for managing IBM's Journaled File
System (JFS) under Linux.  The following utilities are available:

o fsck.jfs--initiate replay of the JFS transaction log and check and
repair a JFS formatted device o logdump--dump a JFS formatted device's
journal log o logredo--replay a JFS formatted device's journal log o
mkfs.jfs--create a JFS formatted partition o xchkdmp--dump the contents
of a JFS fsck log file created with xchklog o xchklog--extract a log
from the JFS fsck workspace into a file o xpeek--shell-type JFS file
system editor

%setup -q
%patch1 -p1

sed -i -e 's@^\./"@\." @' fsck/jfs_fsck.8 \
	 fscklog/jfs_fscklog.8 \
	 logdump/jfs_logdump.8 \
	 mkfs/jfs_mkfs.8 \
	 tune/jfs_tune.8 \
tail +35 mkfs/jfs_mkfs.8 | head -10
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure --sbindir=%sbindir
make %{?_smp_mflags}

mkdir ./jfsdocs
install -m 644 %SOURCE1 ./jfsdocs
install -m 644 %SOURCE2 ./jfsdocs
install -m 644 %SOURCE3 ./jfsdocs
install -m 644 %SOURCE4 ./jfsdocs
install -m 644 %SOURCE5 ./jfsdocs

%doc AUTHORS COPYING NEWS ChangeLog jfsdocs/*

openSUSE Build Service is sponsored by