File reiserfs.spec of Package reiserfs
#
# spec file for package reiserfs
#
# 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/
#
Name: reiserfs
BuildRequires: autoconf e2fsprogs-devel linux-kernel-headers
Url: http://www.namesys.com/download.html
Conflicts: libreiserfs-progs
Supplements: filesystem(reiserfs)
Version: 3.6.21
Release: 12
Summary: Reiser File System utilities
License: GPLv2+
Group: System/Filesystems
AutoReqProv: on
Source: reiserfsprogs-%{version}.tar.bz2
Patch1: reiserfsprogs-fix-fsck-crash
Patch2: reiserfs-signedness-fixes
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package includes utilities for making the file system
(mkreiserfs), checking for consistency (reiserfsck), and resizing
(resize_reiserfs).
%prep
%setup -q -n reiserfsprogs-%{version}
%patch1 -p1
%patch2 -p1
%build
autoreconf
CFLAGS="$RPM_OPT_FLAGS" \
./configure --mandir=%{_mandir} --exec-prefix=/
make
%install
install -d ${RPM_BUILD_ROOT}/sbin
make DESTDIR=${RPM_BUILD_ROOT} install
cd ${RPM_BUILD_ROOT}/sbin
ln reiserfsck fsck.reiserfs
ln mkreiserfs mkfs.reiserfs
cd ${RPM_BUILD_ROOT}/%{_mandir}/man8
ln mkreiserfs.8 mkfs.reiserfs.8
ln reiserfsck.8 fsck.reiserfs.8
ln reiserfstune.8 tunefs.reiserfs.8
ln debugreiserfs.8 debugfs.reiserfs.8
%files
%defattr(-, root, root)
/sbin/*
%doc %{_mandir}/man8/*
%clean
rm -rf $RPM_BUILD_ROOT
%changelog