Imported reiserfsprogs-3.6.20

This commit is contained in:
Jeff Mahoney committed 2012-10-11 11:32:09 -04:00
1 parent 0ed773997f
commit dac518d099
189 files changed
+43353 -29787

No files matched your search

+32 -56
View File
@@ -1,68 +1,44 @@
%define reiserfsprogsversion 3.6.19
Name: reiserfsprogs
Version: 3.6.20
Release: 1
Summary: Utilities for reiserfs filesystems
License: GPL
Group: System Environment/Base
URL: http://www.namesys.com/
Source: reiserfsprogs-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Vendor: Hans Reiser
Distribution: Hans Reiser
Name: reiserfsprogs
Release: 1
Copyright: 2004 Hans Reiser
Group: Unsorted
Packager: anthon@mnt.org
Version: %{reiserfsprogsversion}
Summary: utilities belonging to the Reiser filesystem
Source: reiserfsprogs-%{reiserfsprogsversion}.tar.gz
BuildRoot: %{_tmppath}/rpmbuildroot-%{name}
%description
The reiserfsprogs package contains programs for creating (mkreiserfs),
checking and correcting any inconsistencies (reiserfsck) and resizing
(resize_reiserfs) of a reiserfs filesystem.
Authors:
--------
Hans Reiser <reiser@namesys.com>
Vitaly Fertman <vitaly@namesys.com>
Alexander Zarochentcev <zam@namesys.com>
Vladimir Saveliev <monstr@namesys.com>
The reiserfsprogs package contains utilities for manipulating
reiserfs filesystems.
%prep
# Jeff Johnson states that RPM doesn't delete obviouse crap like / if
# buildroot is set differently since RPM 3.0.4 (rpm mailing list 2001-04-10)
rm -rf $RPM_BUILD_ROOT
%setup -q -n reiserfsprogs-%{reiserfsprogsversion}
# %patch
%build
MANDIR=$(dirname $(dirname $(man -w fsck | cut -d ' ' -f 1)))
./configure --prefix="" --mandir=$MANDIR
%{__make} all
%install
mkdir -p $RPM_BUILD_ROOT/sbin
%{__make} DESTDIR=$RPM_BUILD_ROOT install
# do we need this?
cd $RPM_BUILD_ROOT/sbin
%{__ln_s} -f reiserfsck fsck.reiserfs
%{__ln_s} -f mkreiserfs mkfs.reiserfs
%setup -q -n reiserfsprogs-3.6.20
# __os_install_post is normally executed after \%install disable it
%define ___build_post %{nil}
%build
export CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
find . -name "config.cache" |xargs rm -f
./configure --sbindir=%{_sbindir} --mandir=%{_mandir}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} DESTDIR=$RPM_BUILD_ROOT install
# __os_install_post is normally executed after \% install disable it
%define ___build_post %{nil}
# explicitly call it now, so manpages get compressed, exec's stripped etc.
%{?__os_install_post}
%define __os_install_post %{nil}
# now we have all the files execpt for docs, but their owner is unimportant
cd $RPM_BUILD_ROOT
%{__rm} -f rpm-filelist
# we do not have special directories to make
#find . -type d \
# | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' >> rpm-filelist
find . -type f \
| sed 's,^\.,\%attr(-\,root\,root) ,' | fgrep -v rpm-filelist >> rpm-filelist
find . -type l \
| sed 's,^\.,\%attr(-\,root\,root) ,' >> rpm-filelist
%clean
rm -rf $RPM_BUILD_ROOT
%post
CONFIG=/usr/src/linux/.config
rm -rf $RPM_BUILD_ROOT
CONFIG=/usr/src/linux/.config
if [ -f $CONFIG ] ; then
source $CONFIG
@@ -78,8 +54,8 @@ if [ -z $CONFIG_REISERFS_FS ] ; then
echo -e 'and recompile and reboot your kernel if you cannot use the\nreiserfsprogs utilities'
fi
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{buildroot}/rpm-filelist
%files
%defattr(-,root,root)
%doc README
%doc AUTHORS COPYING CREDITS INSTALL NEWS README
%{_sbindir}/*
%{_mandir}/man8/*.gz