"Fossies" - the Fresh Open Source Software Archive

Member "reiserfsprogs-3.6.25/reiserfsprogs.spec" (1 Jul 2013, 2557 Bytes) of archive /linux/misc/reiserfsprogs-3.6.25.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) RPM Spec source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "reiserfsprogs.spec": 3.6.21_vs_3.6.24.

    1 %define reiserfsprogsversion 3.6.23
    2 
    3 Vendor:       Hans Reiser
    4 Distribution: Hans Reiser
    5 Name:         reiserfsprogs
    6 Release:      1
    7 Copyright:    2004 Hans Reiser
    8 Group:        Unsorted
    9 
   10 Packager:     anthon@mnt.org
   11 
   12 Version:      %{reiserfsprogsversion}
   13 Summary:      utilities belonging to the Reiser filesystem
   14 Source:       reiserfsprogs-%{reiserfsprogsversion}.tar.gz
   15 BuildRoot:    %{_tmppath}/rpmbuildroot-%{name}
   16 %description
   17 
   18 The reiserfsprogs package contains programs for creating (mkreiserfs),
   19 checking and correcting any inconsistencies (reiserfsck) and resizing
   20 (resize_reiserfs) of a reiserfs filesystem.
   21 
   22 Authors:
   23 --------
   24 Hans Reiser <reiser@namesys.com>
   25 Vitaly Fertman <vitaly@namesys.com>
   26 Alexander Zarochentcev <zam@namesys.com>
   27 Vladimir Saveliev <monstr@namesys.com>
   28 
   29 %prep
   30 # Jeff Johnson states that RPM doesn't delete obviouse crap like / if 
   31 # buildroot is set differently since RPM 3.0.4 (rpm mailing list 2001-04-10)
   32     rm -rf $RPM_BUILD_ROOT
   33 %setup -q -n reiserfsprogs-%{reiserfsprogsversion}
   34 # %patch
   35 %build
   36   MANDIR=$(dirname $(dirname $(man -w fsck | cut -d ' ' -f 1)))
   37   ./configure --prefix="" --mandir=$MANDIR
   38   %{__make} all
   39 %install
   40   mkdir -p $RPM_BUILD_ROOT/sbin
   41   %{__make} DESTDIR=$RPM_BUILD_ROOT install
   42 # do we need this?
   43   cd $RPM_BUILD_ROOT/sbin
   44   %{__ln_s} -f reiserfsck fsck.reiserfs
   45   %{__ln_s} -f mkreiserfs mkfs.reiserfs
   46 
   47 # __os_install_post is normally executed after \%install disable it
   48 %define ___build_post %{nil} 
   49 # explicitly call it now, so manpages get compressed, exec's stripped etc.
   50 %{?__os_install_post}
   51 %define __os_install_post %{nil}
   52 # now we have all the files execpt for docs, but their owner is unimportant
   53 cd $RPM_BUILD_ROOT
   54 
   55 %{__rm} -f rpm-filelist
   56 # we do not have special directories to make
   57 #find . -type d \
   58 # | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' >> rpm-filelist
   59 find . -type f \
   60  | sed 's,^\.,\%attr(-\,root\,root) ,' | fgrep -v rpm-filelist >> rpm-filelist
   61 find . -type l \
   62  | sed 's,^\.,\%attr(-\,root\,root) ,' >> rpm-filelist
   63 
   64 %post
   65 CONFIG=/usr/src/linux/.config
   66 
   67 if [ -f $CONFIG ] ; then
   68   source $CONFIG
   69 fi
   70 
   71 if [ -z $CONFIG_REISERFS_FS ] ; then
   72   echo -e "\nIn $CONFIG , you probably have to set:"
   73   if [ "$CONFIG_EXPERIMENTAL" != "y" ] ; then
   74     echo -e 'CONFIG_EXPERIMENTAL=y'
   75   fi
   76   echo -e 'CONFIG_REISERFS_FS=y\n  or'
   77   echo -e 'CONFIG_REISERFS_FS=m'
   78   echo -e 'and recompile and reboot your kernel if you cannot use the\nreiserfsprogs utilities'
   79 fi
   80 
   81 %clean
   82   %{__rm} -rf $RPM_BUILD_ROOT
   83 %files -f %{buildroot}/rpm-filelist
   84 %defattr(-,root,root)
   85 %doc README