2006-12-18 23:15:45 +00:00
|
|
|
#
|
2011-01-17 12:59:24 +00:00
|
|
|
# spec file for package e2fsprogs
|
2006-12-18 23:15:45 +00:00
|
|
|
#
|
2011-01-17 12:59:08 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-18 23:15:45 +00:00
|
|
|
#
|
2008-08-21 15:58:40 +00:00
|
|
|
# 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.
|
|
|
|
|
2006-12-18 23:15:45 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-28 00:54:27 +00:00
|
|
|
|
2006-12-18 23:15:45 +00:00
|
|
|
Name: e2fsprogs
|
2009-12-11 12:01:57 +00:00
|
|
|
License: GPLv2+
|
2006-12-18 23:15:45 +00:00
|
|
|
Group: System/Filesystems
|
2009-08-06 15:38:39 +00:00
|
|
|
Supplements: filesystem(ext2) filesystem(ext3) filesystem(ext4)
|
2009-07-03 15:13:02 +00:00
|
|
|
BuildRequires: libblkid-devel libuuid-devel pkg-config
|
2006-12-18 23:15:45 +00:00
|
|
|
PreReq: %install_info_prereq
|
2007-11-28 22:03:08 +00:00
|
|
|
AutoReqProv: on
|
2009-01-14 16:51:43 +00:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: e2fsprogs-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2011-01-17 12:59:08 +00:00
|
|
|
Version: 1.41.14
|
|
|
|
Release: 1
|
2006-12-18 23:15:45 +00:00
|
|
|
Summary: Utilities for the Second Extended File System
|
2007-11-28 22:03:08 +00:00
|
|
|
Url: http://e2fsprogs.sourceforge.net
|
2006-12-18 23:15:45 +00:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2007-07-05 16:28:31 +00:00
|
|
|
Source2: README.SUSE
|
2009-12-16 08:09:35 +00:00
|
|
|
Source3: baselibs.conf
|
2008-02-01 20:29:19 +00:00
|
|
|
#
|
|
|
|
# e2fsprogs patches
|
|
|
|
#
|
2008-09-29 17:30:42 +00:00
|
|
|
Patch7: e2fsprogs-1.41.1-splash_support.patch
|
2006-12-18 23:15:45 +00:00
|
|
|
# libcom_err patches
|
2007-01-23 00:14:43 +00:00
|
|
|
Patch34: libcom_err-compile_et_permissions.patch
|
2007-07-05 16:28:31 +00:00
|
|
|
# Do not suppress make commands
|
2006-12-18 23:15:45 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Utilities needed to create and maintain ext2 and ext3 file systems
|
|
|
|
under Linux. Included in this package are: chattr, lsattr, mke2fs,
|
|
|
|
mklost+found, tune2fs, e2fsck, resize2fs, and badblocks.
|
|
|
|
|
|
|
|
%package devel
|
2009-12-11 12:01:57 +00:00
|
|
|
License: GPLv2+
|
2007-07-05 16:28:31 +00:00
|
|
|
Summary: Dummy development package
|
2006-12-18 23:15:45 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2007-11-28 22:03:08 +00:00
|
|
|
AutoReqProv: on
|
2009-01-14 16:51:43 +00:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: e2fsprogs-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2009-07-03 15:13:02 +00:00
|
|
|
Requires: libext2fs-devel = %version libblkid-devel libuuid-devel
|
2006-12-18 23:15:45 +00:00
|
|
|
|
|
|
|
%description devel
|
2007-07-05 16:28:31 +00:00
|
|
|
Dummy development package for backwards compatibility.
|
2006-12-18 23:15:45 +00:00
|
|
|
|
2007-07-05 16:28:31 +00:00
|
|
|
%package -n libext2fs2
|
2009-12-11 12:01:57 +00:00
|
|
|
License: GPLv2+
|
2007-07-05 16:28:31 +00:00
|
|
|
Summary: Ext2fs libray
|
|
|
|
Group: System/Filesystems
|
2007-11-28 22:03:08 +00:00
|
|
|
AutoReqProv: on
|
2007-07-05 16:28:31 +00:00
|
|
|
|
|
|
|
%description -n libext2fs2
|
2009-07-17 14:27:47 +00:00
|
|
|
The basic Ext2fs shared library.
|
2007-07-05 16:28:31 +00:00
|
|
|
|
|
|
|
%package -n libext2fs-devel
|
2009-12-11 12:01:57 +00:00
|
|
|
License: GPLv2+
|
2007-07-05 16:28:31 +00:00
|
|
|
Summary: Development files for libext2fs
|
2008-07-11 18:41:52 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2007-11-28 22:03:08 +00:00
|
|
|
AutoReqProv: on
|
2007-07-05 16:28:31 +00:00
|
|
|
Requires: libext2fs2 = %version libcom_err-devel
|
|
|
|
|
|
|
|
%description -n libext2fs-devel
|
|
|
|
Development files for libext2fs.
|
|
|
|
|
|
|
|
%package -n libcom_err2
|
2009-12-11 12:01:57 +00:00
|
|
|
License: GPLv2+
|
2007-07-05 16:28:31 +00:00
|
|
|
Summary: E2fsprogs error reporting library
|
|
|
|
Group: System/Filesystems
|
2009-01-14 16:51:43 +00:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libcom_err-64bit
|
|
|
|
Obsoletes: libcom_err2-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-07-05 16:28:31 +00:00
|
|
|
Provides: libcom_err = %{version}
|
2008-05-07 19:55:14 +00:00
|
|
|
Obsoletes: libcom_err <= 1.40
|
2007-11-28 22:03:08 +00:00
|
|
|
AutoReqProv: on
|
2007-07-05 16:28:31 +00:00
|
|
|
|
|
|
|
%description -n libcom_err2
|
2006-12-18 23:15:45 +00:00
|
|
|
com_err is an error message display library.
|
|
|
|
|
2007-07-05 16:28:31 +00:00
|
|
|
%package -n libcom_err-devel
|
2009-12-11 12:01:57 +00:00
|
|
|
License: GPLv2+
|
2007-07-05 16:28:31 +00:00
|
|
|
Summary: Development files for libcom_err
|
2008-07-11 18:41:52 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2007-11-28 22:03:08 +00:00
|
|
|
AutoReqProv: on
|
2009-01-14 16:51:43 +00:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libcom_err-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2009-12-11 12:01:57 +00:00
|
|
|
Requires: libcom_err2 = %version glibc-devel
|
2007-07-05 16:28:31 +00:00
|
|
|
|
|
|
|
%description -n libcom_err-devel
|
|
|
|
Development files for the com_err error message display library.
|
|
|
|
|
2006-12-18 23:15:45 +00:00
|
|
|
%prep
|
2007-01-21 22:46:18 +00:00
|
|
|
%setup -q
|
2006-12-18 23:15:45 +00:00
|
|
|
# e2fsprogs patches
|
2010-04-19 17:22:37 +00:00
|
|
|
%patch7
|
2006-12-18 23:15:45 +00:00
|
|
|
# libcom_err patches
|
2007-01-23 00:14:43 +00:00
|
|
|
%patch34 -p1
|
2009-07-03 15:13:02 +00:00
|
|
|
cp %{SOURCE2} .
|
2006-12-18 23:15:45 +00:00
|
|
|
|
|
|
|
%build
|
2009-03-17 15:47:31 +00:00
|
|
|
autoreconf --force --install
|
2010-08-02 09:24:52 +00:00
|
|
|
./configure --prefix=%{_prefix} \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--infodir=%{_infodir} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--disable-evms \
|
2009-07-03 15:13:02 +00:00
|
|
|
--with-root-prefix='' \
|
|
|
|
--enable-elf-shlibs \
|
|
|
|
--disable-libblkid \
|
|
|
|
--disable-libuuid \
|
|
|
|
--disable-uuidd \
|
|
|
|
--disable-fsck \
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS"
|
2010-07-08 08:03:44 +00:00
|
|
|
make %{?_smp_mflags} V=1
|
2006-12-18 23:15:45 +00:00
|
|
|
|
|
|
|
%install
|
2008-02-01 20:29:19 +00:00
|
|
|
make install install-libs DESTDIR=$RPM_BUILD_ROOT ELF_INSTALL_DIR=/%{_lib}
|
2006-12-18 23:15:45 +00:00
|
|
|
%{find_lang} %{name}
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/e2initrd_helper
|
2009-02-20 20:43:55 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/sbin/mkfs.ext4dev
|
|
|
|
rm -f $RPM_BUILD_ROOT/sbin/fsck.ext4dev
|
2009-07-17 14:27:47 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man8/mkfs.ext4dev.8*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man8/fsck.ext4dev.8*
|
2010-07-16 14:39:34 +00:00
|
|
|
%ifarch %sparc
|
|
|
|
rm -v %{buildroot}%{_libdir}/lib{com,e2p,ss}*.a
|
|
|
|
%else
|
2009-12-11 12:01:57 +00:00
|
|
|
rm -v %{buildroot}%{_libdir}/*.a
|
2010-07-16 14:39:34 +00:00
|
|
|
%endif
|
2007-07-26 23:24:33 +00:00
|
|
|
|
2006-12-18 23:15:45 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2007-07-05 16:28:31 +00:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/libext2fs.info.gz
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libext2fs.info.gz
|
|
|
|
|
2009-12-11 12:01:57 +00:00
|
|
|
%post -n libext2fs2 -p /sbin/ldconfig
|
2007-07-05 16:28:31 +00:00
|
|
|
|
2009-12-11 12:01:57 +00:00
|
|
|
%postun -n libext2fs2 -p /sbin/ldconfig
|
2007-07-05 16:28:31 +00:00
|
|
|
|
2009-12-11 12:01:57 +00:00
|
|
|
%post -n libcom_err2 -p /sbin/ldconfig
|
2007-07-05 16:28:31 +00:00
|
|
|
|
2009-12-11 12:01:57 +00:00
|
|
|
%postun -n libcom_err2 -p /sbin/ldconfig
|
2007-07-05 16:28:31 +00:00
|
|
|
|
2006-12-18 23:15:45 +00:00
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-, root, root)
|
2009-07-03 15:13:02 +00:00
|
|
|
%doc RELEASE-NOTES README
|
2006-12-18 23:15:45 +00:00
|
|
|
%config /etc/mke2fs.conf
|
|
|
|
/sbin/badblocks
|
|
|
|
/sbin/debugfs
|
|
|
|
/sbin/dumpe2fs
|
2008-07-18 19:53:07 +00:00
|
|
|
/sbin/e2undo
|
2006-12-18 23:15:45 +00:00
|
|
|
/sbin/e2fsck
|
|
|
|
/sbin/e2label
|
|
|
|
/sbin/fsck.ext2
|
|
|
|
/sbin/fsck.ext3
|
2009-02-20 20:43:55 +00:00
|
|
|
/sbin/fsck.ext4
|
2006-12-18 23:15:45 +00:00
|
|
|
/sbin/mke2fs
|
|
|
|
/sbin/mkfs.ext2
|
|
|
|
/sbin/mkfs.ext3
|
2009-02-20 20:43:55 +00:00
|
|
|
/sbin/mkfs.ext4
|
2006-12-18 23:15:45 +00:00
|
|
|
/sbin/resize2fs
|
|
|
|
/sbin/tune2fs
|
|
|
|
/sbin/e2image
|
|
|
|
/sbin/logsave
|
|
|
|
/usr/bin/chattr
|
|
|
|
/usr/bin/lsattr
|
|
|
|
/usr/sbin/mklost+found
|
|
|
|
/usr/sbin/filefrag
|
2009-09-04 22:24:33 +00:00
|
|
|
/usr/sbin/e2freefrag
|
2006-12-18 23:15:45 +00:00
|
|
|
%{_infodir}/libext2fs.info.gz
|
|
|
|
%{_mandir}/man1/chattr.1.gz
|
|
|
|
%{_mandir}/man1/lsattr.1.gz
|
|
|
|
%{_mandir}/man5/e2fsck.conf.5.gz
|
|
|
|
%{_mandir}/man5/mke2fs.conf.5.gz
|
|
|
|
%{_mandir}/man8/*.8.gz
|
|
|
|
|
2007-07-05 16:28:31 +00:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README.SUSE
|
2006-12-18 23:15:45 +00:00
|
|
|
|
2007-07-05 16:28:31 +00:00
|
|
|
%files -n libext2fs2
|
|
|
|
%defattr(-, root, root)
|
|
|
|
/%{_lib}/libext2fs.so.*
|
|
|
|
/%{_lib}/libe2p.so.*
|
|
|
|
|
|
|
|
%files -n libext2fs-devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libext2fs.so
|
2010-07-16 14:39:34 +00:00
|
|
|
%ifarch %sparc
|
|
|
|
%{_libdir}/libext2fs.a
|
|
|
|
%endif
|
2007-07-05 16:28:31 +00:00
|
|
|
%{_libdir}/libe2p.so
|
|
|
|
/usr/include/ext2fs
|
|
|
|
/usr/include/e2p
|
2006-12-18 23:15:45 +00:00
|
|
|
%_libdir/pkgconfig/e2p.pc
|
|
|
|
%_libdir/pkgconfig/ext2fs.pc
|
|
|
|
|
2007-07-05 16:28:31 +00:00
|
|
|
%files -n libcom_err2
|
2006-12-18 23:15:45 +00:00
|
|
|
%defattr(-, root, root)
|
|
|
|
/%{_lib}/libcom_err.so.*
|
|
|
|
/%{_lib}/libss.so.*
|
2007-07-05 16:28:31 +00:00
|
|
|
|
|
|
|
%files -n libcom_err-devel
|
|
|
|
%defattr(-, root, root)
|
2006-12-18 23:15:45 +00:00
|
|
|
%_bindir/compile_et
|
|
|
|
%_bindir/mk_cmds
|
|
|
|
%{_libdir}/libcom_err.so
|
|
|
|
%{_libdir}/libss.so
|
|
|
|
%_libdir/pkgconfig/com_err.pc
|
|
|
|
%_libdir/pkgconfig/ss.pc
|
|
|
|
%_includedir/et
|
|
|
|
%_includedir/ss
|
2009-07-17 14:27:47 +00:00
|
|
|
%_datadir/et
|
|
|
|
%_datadir/ss
|
2007-07-05 16:28:31 +00:00
|
|
|
%{_mandir}/man1/compile_et.1.gz
|
|
|
|
%{_mandir}/man1/mk_cmds.1.gz
|
|
|
|
%{_mandir}/man3/com_err.3.gz
|
2006-12-18 23:15:45 +00:00
|
|
|
|
2007-03-28 22:30:07 +00:00
|
|
|
%changelog
|