Sophie

Sophie

distrib > Mandriva > 2007.1 > i586 > by-pkgid > 453fe298c89a6a3209b960a60a0d9019 > files > 8

e2fsprogs-1.39-5.2mdv2007.1.src.rpm

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

Name: e2fsprogs
Version: 1.39
%define subrel 2
Release: %mkrel 5
Summary: Utilities used for the second extended (ext2) filesystem
License: GPL
Group: System/Kernel and hardware
Source:	%url/%name-%version.tar.bz2
Patch4: e2fsprogs-1.36-autoconf.patch
# (gb) strip references to home build dir
Patch5: e2fsprogs-1.36-strip-me.patch
Patch7: e2fsprogs-1.38-tst_ostype-buildfix.patch
Patch8: e2fsprogs-1.39-handle-last-check-in-the-future.patch
Patch9: e2fsprogs-1.39-fix-memleak.patch
Patch10: e2fsprogs-1.39-ubu-CVE-2007-5497.patch
# 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 libraries 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 libraries 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
%patch7 -p1 -b .tst_ostype
%patch8 -p1 -b .check-future
%patch9 -p1 -b .mem-leak
%patch10 -p1 -b .cve-2007-5497
rm -f configure
autoconf

# Fix build:
chmod 644 po/*.po

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

%check
# FIXME: all tests must pass
# r_move_itable: resize2fs with resize_inode: failed
# r_resize_inode: resize2fs with resize_inode: failed
# 80 tests succeeded	2 tests failed
%ifnarch x86_64
LC_ALL=C make check
%else
LC_ALL=C make check || :
%endif

%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
%_sysconfdir/mke2fs.conf


%_bindir/chattr
%_bindir/lsattr
%_bindir/uuidgen
%_mandir/man1/chattr.1*
%_mandir/man1/lsattr.1*
%_mandir/man1/uuidgen.1*
%_mandir/man3/uuid*
%_mandir/man5/e2fsck.conf.5.bz2
%_mandir/man5/mke2fs.conf.5.bz2
%_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
* Mon Dec 10 2007 Vincent Danen <vdanen@mandriva.com> 1.39-5.2mdv2007.1
- P10: security fix for CVE-2007-5497

* Mon Jun 25 2007 Vincent Danen <vdanen@mandriva.com> 1.39-5.1mdv2007.1
- build for updates

* Thu Jun 14 2007 Thierry Vignaud <tvignaud@mandriva.com> 1.39-5mdv2007.1
+ Revision: 39781
- patch 9: fix mem leak in libblkid (#31295)
- patch 9: fix mem leak in libblkid (#31295)


* Sun Jan 07 2007 David Walluck <walluck@mandriva.org> 1.39-4mdv2007.0
+ Revision: 104996
- bump release
- remove redundant autoconf call
  force %%check to pass on x86_64 for now (2 test failures)
- rebuild
  bunzip2 patches
  add %%check section

  + Emmanuel Andry <eandry@mandriva.org>
    - Import e2fsprogs

* Wed Aug 23 2006 Pixel <pixel@mandriva.com> 1.39-2mdv2007.0
- DrakX doesn't set the timezone/utc before formatting partition, 
  resulting in check time in the future, and so a forced fsck
  at first boot. fixing this.

* Fri Jun 23 2006 Thierry Vignaud <tvignaud@mandriva.com> 1.39-1mdv2007.0
- new release
- drop patch 6 (no more needed)

* Mon May 15 2006 Stefan van der Eijk <stefan@eijk.nu> 1.38-5mdk
- rebuild for sparc

* Thu Oct 20 2005 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.38-4mdk
- fortify fixes

* Sat Sep 10 2005 Olivier Blin <oblin@mandriva.com> 1.38-3mdk
- fix typo in summaries

* Tue Sep 06 2005 Thierry Vignaud <tvignaud@mandriva.com> 1.38-2mdk
- fix running tests

* Fri Aug 05 2005 Thierry Vignaud <tvignaud@mandriva.com> 1.38-1mdk
- new release
- drop patch 6 (merged upstream)
- rediff patch 7

* Mon Aug 01 2005 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.37-5mdk
- patch 7: fix compilation of libs/e2p/os_type

* Sun Jul 31 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.37-4mdk
- Use a better BuildRequires as explain by Blino

* Sun Jul 31 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.37-3mdk
- Fix BuildRequires

* Thu Jul 28 2005 Thierry Vignaud <tvignaud@mandriva.com> 1.37-2mdk
- patch 6: fix segfault in e2fsck

* Sat May 14 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.37-1mdk
- new release

* 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

* Thu Apr 01 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