File jfsutils.spec of Package jfsutils

#
# spec file for package jfsutils
#
# Copyright (c) 2015 SUSE LINUX 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/
#


%define _sbindir /sbin
Name:           jfsutils
Version:        1.1.15
Release:        0
Summary:        IBM JFS Utility Programs
License:        GPL-2.0+
Group:          System/Filesystems
Url:            http://jfs.sf.net
Source0:        http://jfs.sourceforge.net/project/pub/%{name}-%{version}.tar.gz
Source1:        jfs.pdf
Source2:        jfslayout.pdf
Source3:        jfslog.pdf
Source4:        jfsroot.html
Source5:        jfs.txt
Patch1:         jfs-headers.patch
BuildRequires:  e2fsprogs-devel
Provides:       jfsprogs = %{version}
Obsoletes:      jfsprogs < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1010
Supplements:    filesystem(jfs)
%endif

%description
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

%prep
%setup -q
%patch1 -p1

%build
sed -i -e 's@^\./"@\." @' fsck/jfs_fsck.8 \
	 fscklog/jfs_fscklog.8 \
	 logdump/jfs_logdump.8 \
	 mkfs/jfs_mkfs.8 \
	 tune/jfs_tune.8 \
	 xpeek/jfs_debugfs.8
tail +35 mkfs/jfs_mkfs.8 | head -10
%configure
make %{?_smp_mflags}

%install
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
make DESTDIR=%{buildroot} install %{?_smp_mflags}

%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS ChangeLog jfsdocs/*
%{_mandir}/man8/*
%{_sbindir}/*

%changelog
openSUSE Build Service is sponsored by