Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 202dc4c7cad87d12cb2dbf1e2c97bcd9 > files > 4

e2fsprogs-1.36-3mdk.src.rpm

%define url http://prdownloads.sourceforge.net/e2fsprogs
%define	_root_sbindir	/sbin
%define	_root_libdir	/%_lib
%define libname %mklibname ext2fs 2

Summary: Utilities used for the second extended (ext2) filesystem
Name: e2fsprogs
Version: 1.36
Release: 3mdk
License: GPL
Group: System/Kernel and hardware
Source:	%url/%name-%version.tar.bz2
Patch4: e2fsprogs-1.36-autoconf.patch.bz2
# (gb) strip references to home build dir
Patch5: e2fsprogs-1.36-strip-me.patch.bz2
# http://acl.bestbits.at/download.html
Url: http://e2fsprogs.sourceforge.net/
Buildroot:	%_tmppath/%name-root
BuildRequires:	texinfo, autoconf

%description
The e2fsprogs package contains a number of utilities for creating,
checking, modifying and correcting any inconsistencies in second
extended (ext2) filesystems.  E2fsprogs contains e2fsck (used to repair
filesystem inconsistencies after an unclean shutdown), mke2fs (used to
initialize a partition to contain an empty ext2 filesystem), debugfs
(used to examine the internal structure of a filesystem, to manually
repair a corrupted filesystem or to create test cases for e2fsck), tune2fs
(used to modify filesystem parameters) and most of the other core ext2fs
filesystem utilities.

You should install the e2fsprogs package if you need to manage the
performance of an ext2 filesystem.


%package -n %libname
Summary: The librairies for Ext2fs
Group: System/Libraries
Requires: e2fsprogs

%description -n %libname
The e2fsprogs package contains a number of utilities for creating,
checking, modifying and correcting any inconsistencies in second
extended (ext2) filesystems.  E2fsprogs contains e2fsck (used to repair
filesystem inconsistencies after an unclean shutdown), mke2fs (used to
initialize a partition to contain an empty ext2 filesystem), debugfs
(used to examine the internal structure of a filesystem, to manually
repair a corrupted filesystem or to create test cases for e2fsck), tune2fs
(used to modify filesystem parameters) and most of the other core ext2fs
filesystem utilities.

You should install %libname to use tools who use ext2fs features.

%package -n %libname-devel
Summary: The librairies for Ext2fs
Group: Development/C
Requires:  %libname = %version
Obsoletes: %{name}-devel
Provides:  %{name}-devel, libext2fs-devel, libe2fsprogs-devel

%description -n %libname-devel
The e2fsprogs package contains a number of utilities for creating,
checking, modifying and correcting any inconsistencies in second
extended (ext2) filesystems.  E2fsprogs contains e2fsck (used to repair
filesystem inconsistencies after an unclean shutdown), mke2fs (used to
initialize a partition to contain an empty ext2 filesystem), debugfs
(used to examine the internal structure of a filesystem, to manually
repair a corrupted filesystem or to create test cases for e2fsck), tune2fs
(used to modify filesystem parameters) and most of the other core ext2fs
filesystem utilities.

You should install %libname to use tools that compile with ext2fs
features.

%prep
%setup -q
%patch4 -p0
%patch5 -p1 -b .strip-me
rm -f configure
autoconf

# Fix build:
chmod 644 po/*.po

%build
autoconf
OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e "s/-fomit-frame-pointer//g"`
# (gb) 1.23-3mdk: e2fsck may work will full optimizations but without strict-aliasing
CFLAGS="$OPT_FLAGS -fno-omit-frame-pointer -O1 -fno-strict-aliasing"
%configure2_5x --enable-elf-shlibs
make libs progs docs
# use e2fsck shared instead, avoid patch.
cp -af e2fsck/e2fsck.shared e2fsck/e2fsck
# all tests must pass
make check

%install
rm -rf $RPM_BUILD_ROOT
export PATH=/sbin:$PATH

make install install-libs DESTDIR="$RPM_BUILD_ROOT" \
	root_sbindir=%{_root_sbindir} root_libdir=%{_root_libdir}

for i in libblkid.so.1 libcom_err.so.2 libe2p.so.2 libext2fs.so.2 libss.so.2 libuuid.so.1; do
	ln -s $i $RPM_BUILD_ROOT/%_root_libdir/${i%.[0-9]}
done

rm -f	$RPM_BUILD_ROOT%_libdir/libss.a \
	$RPM_BUILD_ROOT/%{_root_libdir}/libblkid.so \
	$RPM_BUILD_ROOT/%{_root_libdir}/libcom_err.so \
	$RPM_BUILD_ROOT/%{_root_libdir}/libe2p.so \
	$RPM_BUILD_ROOT/%{_root_libdir}/libext2fs.so \
	$RPM_BUILD_ROOT/%{_root_libdir}/libss.so \
	$RPM_BUILD_ROOT/%{_root_libdir}/libuuid.so

# multiarch policy, alternative is to use <stdint.h>
%multiarch_includes $RPM_BUILD_ROOT%{_includedir}/ext2fs/ext2_types.h
%multiarch_includes $RPM_BUILD_ROOT%{_includedir}/blkid/blkid_types.h

%find_lang %name

chmod +x $RPM_BUILD_ROOT/%_bindir/{mk_cmds,compile_et}

%clean
rm -rf $RPM_BUILD_ROOT

%post -n %libname -p /sbin/ldconfig
%postun -n %libname -p /sbin/ldconfig

%post -n %libname-devel
%_install_info libext2fs.info

%postun -n %libname-devel
%_remove_install_info libext2fs.info


%files -f %name.lang
%defattr(-,root,root)
%doc README RELEASE-NOTES
%_root_sbindir/badblocks
%_root_sbindir/debugfs
%_root_sbindir/dumpe2fs
%_root_sbindir/e2fsck
%_root_sbindir/e2label
%_root_sbindir/fsck
%_root_sbindir/fsck.ext2
%_root_sbindir/fsck.ext3
%_root_sbindir/mke2fs
%_root_sbindir/mkfs.ext2
%_root_sbindir/resize2fs
%_root_sbindir/tune2fs
%_root_sbindir/e2image
%_root_sbindir/findfs
%_root_sbindir/mkfs.ext3
%_sbindir/filefrag
%_sbindir/mklost+found

%_bindir/chattr
%_bindir/lsattr
%_bindir/uuidgen
%_mandir/man1/chattr.1*
%_mandir/man1/lsattr.1*
%_mandir/man1/uuidgen.1*
%_mandir/man3/uuid*

%_mandir/man8/badblocks.8*
%_mandir/man8/debugfs.8*
%_mandir/man8/dumpe2fs.8*
%_mandir/man8/e2fsck.8*
%_mandir/man8/e2image.8.bz2
%_mandir/man8/e2label.8*
%_mandir/man8/filefrag.8*
%_mandir/man8/findfs.8.bz2
%_mandir/man8/fsck.8*
%_mandir/man8/fsck.ext2.8.bz2
%_mandir/man8/fsck.ext3.8.bz2
%_mandir/man8/mke2fs.8*
%_mandir/man8/mkfs.ext2.8.bz2
%_mandir/man8/mkfs.ext3.8.bz2
%_mandir/man8/mklost+found.8*
%_mandir/man8/resize2fs.8*
%_mandir/man8/tune2fs.8*

%_root_sbindir/blkid
%_mandir/man8/blkid.8.bz2
%_root_sbindir/logsave
%_mandir/man8/logsave.8.bz2


%files -n %libname
%defattr(-,root,root)
%doc README
%_root_libdir/libcom_err.so.*
%_root_libdir/libe2p.so.*
%_root_libdir/libext2fs.so.*
%_root_libdir/libss.so.*
%_root_libdir/libuuid.so.*

%_root_libdir/libblkid.so.*
%_mandir/man3/libblkid.3.bz2
%_libdir/e2initrd_helper

%files -n %libname-devel
%defattr(-,root,root,755)
%_infodir/libext2fs.info*
%_bindir/compile_et
%_mandir/man1/compile_et.1*
%_bindir/mk_cmds
%_mandir/man1/mk_cmds.1.bz2
%_libdir/pkgconfig/*

%_libdir/libblkid.so
%_libdir/libcom_err.so
%_libdir/libe2p.a
%_libdir/libe2p.so
%_libdir/libext2fs.a
%_libdir/libext2fs.so
%_libdir/libuuid.a
%_libdir/libuuid.so
%_libdir/libcom_err.a
%_libdir/libss.so

%_datadir/et
%_datadir/ss
%_includedir/et
%_includedir/ext2fs
%multiarch %dir %multiarch_includedir/ext2fs
%multiarch %multiarch_includedir/ext2fs/ext2_types.h
%_includedir/ss
%_includedir/uuid
%_includedir/e2p/e2p.h
%_mandir/man3/com_err.3*

%_includedir/blkid/blkid.h
%_includedir/blkid/blkid_types.h
%multiarch %dir %multiarch_includedir/blkid
%multiarch %multiarch_includedir/blkid/blkid_types.h
%_libdir/libblkid.a

%changelog
* Sun Mar 06 2005 Stefan van der Eijk <stefan@eijk.nu> 1.36-3mdk
- reupload

* Mon Feb 28 2005 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.36-2mdk
- don't reference home build dirs in compile_et and mk_cmds (multiarch)
- other multiarch fixes, though it could be fixed differently with <stdint.h>

* Fri Feb 11 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.36-1mdk
- new release
- rediff patch 4

* Wed Mar 31 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.35-1mdk
- new release
- remove patch 6 (no more needed)

* Thu Feb 26 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.34-5mdk
- patch 6: fix build
- rpmlint fix

* Mon Jan 12 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.34-4mdk
- fix perms

* Mon Jan 05 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.34-3mdk
- fix perms to prevent root umask to alter permissions at install time

* Sat Jan 03 2004 Stefan van derEijk <stefan@eijk.nu> 1.34-2mdk
- remove unpackaged files
- fix filelist
- fixed date on 1.34-1mdk changelog entry

* Mon Aug 18 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.34-1mdk
- new release

* Mon Jul 21 2003 Frederic Lepied <flepied@mandrakesoft.com> 1.33-3mdk
- rebuild for libss.so

* Thu Jul 10 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.33-2mdk
- rebuild

* Tue Jul 01 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.33-1mdk
- new release

* Mon Apr 14 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.32-3mdk
- make it %%mklibname aware

* Thu Nov 21 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.32-2mdk
- fix conflict with krb5-devel

* Thu Nov 21 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.32-1mdk
- new release
- add uuid & {fsck,mkfs}.ext{2,3} man pages
- add new tools and their man pages : e2image, findfs, mkfs.ext3
- add missing include

* Wed Nov 06 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.30-1mdk
- new release
- remove patch 1 (merged upstream)
- remove patch 3 (better fix upstream)
- remove patch 5 (newver version already merged upstream)
- simplify %%install

* Thu Aug 29 2002 Juan Quintela <quintela@mandrakesoft.com> 1.27-4mdk
- really use a new version this time.
- extended atributes support 0.8.21.

* Tue Aug 13 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.27-3mdk
- Automated rebuild with gcc 3.2-0.3mdk

* Wed Jun 26 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.27-2mdk
- Costlessly make check in %%build stage

* Sat Mar 23 2002 Jeff Garzik <jgarzik@mandrakesoft.com> 1.27-1mdk
- new version 1.27 (including important core dump and memory
  leak fixes related to ext3 journals)
- use %%configure2_5x
- removed patch2 (merged in upstream, was not being applied
  to package, just being stored in srpm)

* Tue Feb 12 2002 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.26-1mdk
- 1.26.

* Mon Nov 12 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.25-2mdk
- Merge rh patches.

* Fri Oct 26 2001 Jeff Garzik <jgarzik@mandrakesoft.com> 1.25-1mdk
- Version 1.25.
- Remove patch #0 (e2fsprogs-1.24a-fix-loopbacks.patch), better
  patch merged upstream.

* Thu Sep 13 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 1.24a-2mdk
- fix code which was resulting of Warning
  (Attempt to write block from filesystem resulted in short write)

* Wed Sep 12 2001 François Pons <fpons@mandrakesoft.com> 1.24a-1mdk
- 1.24a.

* Sun Sep  9 2001 Pixel <pixel@mandrakesoft.com> 1.23-5mdk
- remove the -t loop hack, use the neater -t opt=loop

* Thu Aug 30 2001 Pixel <pixel@mandrakesoft.com> 1.23-4mdk
- remove libcom_err.{so,a} and libss.{so,a} conflicting with krb5-devel

* Thu Aug 30 2001 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.23-3mdk
- Add BuildRequires: autoconf
- Really use -O1 instead of -O2

* Tue Aug 28 2001 François Pons <fpons@mandrakesoft.com> 1.23-2mdk
- use -O1 instead of -O2 due to miscompiled e2fsck.shared.
- use shared fsck instead of static fsck.

* Mon Aug 27 2001 François Pons <fpons@mandrakesoft.com> 1.23-1mdk
- 1.23.
- removed patch added in 1.22-2mdk.
- avoid -O3 or -fomit-frame-pointer due to gcc bug.

* Wed Aug 22 2001 François Pons <fpons@mandrakesoft.com> 1.22-2mdk
- created patch to avoid refusing checking root filesystem
  if /etc/mtab is missing.

* Mon Aug  6 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.22-1mdk
- 1.22.

* Thu Jun 21 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.21-1mdk
- 1.21.

* Fri Jun  8 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.20-1mdk
- 1.20.

* Mon May 21 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.19-5mdk
- Sync with rh patches.

* Thu Mar 15 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.19-4mdk
- Libzifications.
- Add install-info for dev package.

* Fri Jan 05 2001 David BAUDENS <baudens@mandrakesoft.com> 1.19-3mdk
- BuildRequires: texinfo

* Sat Oct  7 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.19-2mdk
- Add mountlabel patch from cvs.

* Thu Jul 27 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.19-1mdk
- Add ext2 resize.
- 1.19.
- BM and macros.

* Fri Mar 31 2000 Pixel <pixel@mandrakesoft.com> 1.18-5mdk
- fix the chmou sucks (aka fsck.ext2 linked to fsck is *no* good)

* Wed Mar 29 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.18-4mdk
- Merge with rh patchs.
- Clean-up specs.
- Upgrade groups.
- Make statically-linked-binary soft link.

* Tue Mar 21 2000 Pixel <pixel@mandrakesoft.com> 1.18-3mdk
- patch for long device names and option -C (usefull for loopback)

* Sat Mar 11 2000 Pixel <pixel@mandrakesoft.com> 1.18-2mdk
- patch for adding ability to say "-t loop" or "-t noloop", looking in the fstab
  mount options