Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 228c9c82b68f5d457c3ba51b71b98d40 > files > 4

e2fsprogs-1.45.5-1.mga7.src.rpm

%define	_root_sbindir	/sbin
%define	_root_libdir	/%{_lib}
%define major	2
%define libname	%mklibname ext2fs %{major}
%define	devname	%mklibname ext2fs -d

%define git_url git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git

Name: e2fsprogs
Version: 1.45.5
Release: %mkrel 1
Summary: Utilities used for ext2/ext3/ext4 filesystems
License: GPLv2
Group: System/Kernel and hardware
Url: http://e2fsprogs.sourceforge.net/
Source0: https://www.kernel.org/pub/linux/kernel/people/tytso/%{name}/v%{version}/%{name}-%{version}.tar.gz
Source1: e3jsize
# (cg) This default config prevents invalid warnings about clock differences
# http://thread.gmane.org/gmane.comp.sysutils.systemd.devel/4933
# http://pkgs.fedoraproject.org/gitweb/?p=e2fsprogs.git;a=blob;f=e2fsck.conf;h=b774f9ebf07bd0ecbcd6786b496f58c897eb6891;hb=HEAD
Source2: e2fsck.conf
# (anssi) fix uninitialized variable causing crash without libreadline.so.5;
# submitted as https://sourceforge.net/tracker/?func=detail&aid=2822113&group_id=2406&atid=302406
Patch0: e2fsprogs-1.42.9-uninitialized.patch

BuildRequires:	texinfo
BuildRequires:	autoconf
BuildRequires:	m4
BuildRequires:	gettext
BuildRequires:	bzip2
BuildRequires:	git-core
BuildRequires:	pkgconfig(libattr)
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(fuse)

%description
The e2fsprogs package contains a number of utilities for creating,
checking, modifying and correcting any inconsistencies in ext2, ext3,
and ext4 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), resize2fs to grow and shrink
unmounted filesystems, and most of the other core ext2fs filesystem
utilities.

%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 ext2, ext3,
and ext4 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), resize2fs to grow and shrink
unmounted filesystems, and most of the other core ext2fs filesystem
utilities.

This package contains the shared libraries.

%package -n %{devname}
Summary:   The libraries for Ext2fs
Group:     Development/C
Requires:  %{libname} = %{version}-%{release}
Obsoletes: %{name}-devel < %{version}-%{release}
Provides:  %{name}-devel = %{version}-%{release}
Provides:  libext2fs-devel = %{version}-%{release}
Provides:  libe2fsprogs-devel = %{version}-%{release}
Provides:  ext2fs-devel = %{version}-%{release}

%description -n %{devname}
The e2fsprogs package contains a number of utilities for creating,
checking, modifying and correcting any inconsistencies in ext2, ext3,
and ext4 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), resize2fs to grow and shrink
unmounted filesystems, and most of the other core ext2fs filesystem
utilities.

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

%prep
%autosetup -p1

rm -f configure
autoconf

# Fix build:
chmod 644 po/*.po

%build
%configure2_5x \
	--enable-elf-shlibs \
	--disable-libblkid \
	--disable-libuuid \
	--disable-fsck \
	--disable-uuidd \
	--enable-symlink-install

%make_build

%__make -C e2fsck e2fsck.static

%check
touch tests/r_move_itable_nostride/is_slow_test
touch tests/r_move_itable_realloc/is_slow_test
LC_ALL=C %__make check

%install
export PATH=/sbin:$PATH

%make_install install-libs \
	root_sbindir=%{_root_sbindir} root_libdir=%{_root_libdir}

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

rm -f	%{buildroot}%{_libdir}/libss.a \
	%{buildroot}%{_root_libdir}/libcom_err.so \
	%{buildroot}%{_root_libdir}/libe2p.so \
	%{buildroot}%{_root_libdir}/libext2fs.so \
	%{buildroot}%{_root_libdir}/libss.so

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

%find_lang %{name}

chmod +x %{buildroot}%_bindir/{mk_cmds,compile_et}

install -m 755 e2fsck/e2fsck.static %{buildroot}%{_root_sbindir}
install -m 755 %{SOURCE1} %{buildroot}%{_root_sbindir}
ln -f %{buildroot}%{_root_sbindir}/mke2fs \
	%{buildroot}%{_root_sbindir}/mke3fs

install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}

%post -n %{devname}
%_install_info libext2fs.info

%preun -n %{devname}
%_remove_install_info libext2fs.info


%files -f %{name}.lang
%doc README
%{_root_sbindir}/badblocks
%{_root_sbindir}/debugfs
%{_root_sbindir}/dumpe2fs
%{_root_sbindir}/e2fsck
%{_root_sbindir}/e2fsck.static
%{_root_sbindir}/e2image
%{_root_sbindir}/e2label
%{_root_sbindir}/e2mmpstatus
%{_root_sbindir}/e2scrub
%{_root_sbindir}/e2scrub_all
%{_root_sbindir}/e2undo
%{_root_sbindir}/e3jsize
%{_root_sbindir}/fsck.ext2
%{_root_sbindir}/fsck.ext3
%{_root_sbindir}/fsck.ext4
%{_root_sbindir}/logsave
%{_root_sbindir}/mke2fs
%{_root_sbindir}/mke3fs
%{_root_sbindir}/mkfs.ext2
%{_root_sbindir}/mkfs.ext3
%{_root_sbindir}/mkfs.ext4
%{_root_sbindir}/resize2fs
%{_root_sbindir}/tune2fs
# FIXME: why isn't this marked %config(noreplace)?
%{_sysconfdir}/*.conf
%{_sysconfdir}/cron.d/e2scrub_all

%{_bindir}/chattr
%{_bindir}/lsattr
%{_mandir}/man1/chattr.1*
%{_mandir}/man1/fuse2fs.1*
%{_mandir}/man1/lsattr.1*
%{_mandir}/man5/e2fsck.conf.5*
%{_mandir}/man5/ext2.5*
%{_mandir}/man5/ext3.5*
%{_mandir}/man5/ext4.5*
%{_mandir}/man5/mke2fs.conf.5*
%{_mandir}/man8/badblocks.8*
%{_mandir}/man8/debugfs.8*
%{_mandir}/man8/dumpe2fs.8*
%{_mandir}/man8/e2freefrag.8*
%{_mandir}/man8/e2fsck.8*
%{_mandir}/man8/e2image.8*
%{_mandir}/man8/e2label.8*
%{_mandir}/man8/e2mmpstatus.8*
%{_mandir}/man8/e2scrub.8.*
%{_mandir}/man8/e2scrub_all.8.*
%{_mandir}/man8/e2undo.8.*
%{_mandir}/man8/e4crypt.8.*
%{_mandir}/man8/e4defrag.8.*
%{_mandir}/man8/filefrag.8*
%{_mandir}/man8/fsck.ext2.8*
%{_mandir}/man8/fsck.ext3.8*
%{_mandir}/man8/fsck.ext4.8.*
%{_mandir}/man8/logsave.8*
%{_mandir}/man8/mke2fs.8*
%{_mandir}/man8/mkfs.ext2.8*
%{_mandir}/man8/mkfs.ext3.8*
%{_mandir}/man8/mkfs.ext4.8.*
%{_mandir}/man8/mklost+found.8*
%{_mandir}/man8/resize2fs.8*
%{_mandir}/man8/tune2fs.8*
%{_sbindir}/e2freefrag
%{_sbindir}/e4crypt
%{_sbindir}/e4defrag
%{_sbindir}/filefrag
%{_bindir}/fuse2fs
%{_sbindir}/mklost+found

%files -n %{libname}
%doc README
%{_root_libdir}/libcom_err.so.%{major}
%{_root_libdir}/libe2p.so.%{major}
%{_root_libdir}/libext2fs.so.%{major}
%{_root_libdir}/libss.so.%{major}
%{_root_libdir}/libcom_err.so.%{major}.*
%{_root_libdir}/libe2p.so.%{major}.*
%{_root_libdir}/libext2fs.so.%{major}.*
%{_root_libdir}/libss.so.%{major}.*
%{_libdir}/e2initrd_helper
%{_libdir}/%{name}/e2scrub_all_cron

%files -n %{devname}
%doc doc/RelNotes/v%{version}.txt
%{_infodir}/libext2fs.info*
%{_bindir}/compile_et
%{_mandir}/man1/compile_et.1*
%{_bindir}/mk_cmds
%{_mandir}/man1/mk_cmds.1*
%{_libdir}/pkgconfig/*

%{_libdir}/libcom_err.so
%{_libdir}/libe2p.a
%{_libdir}/libe2p.so
%{_libdir}/libext2fs.a
%{_libdir}/libext2fs.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}/e2p/e2p.h
%{_includedir}/com_err.h
%{_mandir}/man3/com_err.3*


%changelog
* Tue Jan 14 2020 tv <tv> 1.45.5-1.mga7
+ Revision: 1477901
- 1.45.5 (CVECVE-2019-5188, mga#26031 )
+ daviddavid <daviddavid>
- new version: 1.45.4, fixes CVE-2019-5094 (mga#25562)

* Sat Jun 15 2019 tmb <tmb> 1.45.2-1.mga7
+ Revision: 1399996
- update to 1.45.2

* Fri Mar 08 2019 luigiwalser <luigiwalser> 1.45.0-1.mga7
+ Revision: 1372680
- 1.45.0

* Wed Mar 06 2019 luigiwalser <luigiwalser> 1.44.6-1.mga7
+ Revision: 1371876
- 1.44.6

* Sun Dec 16 2018 daviddavid <daviddavid> 1.44.5-1.mga7
+ Revision: 1341567
- new version: 1.44.5

* Sun Sep 02 2018 daviddavid <daviddavid> 1.44.4-2.mga7
+ Revision: 1256227
- fix dangling link (mga#23512)

* Fri Aug 24 2018 daviddavid <daviddavid> 1.44.4-1.mga7
+ Revision: 1253665
- new version: 1.44.4
- remove merged upstream patches

* Tue Apr 17 2018 kekepower <kekepower> 1.44.1-1.mga7
+ Revision: 1219678
- Disable two slow tests
- Update to version 1.44.1
+ tv <tv>
- disable uninit patch, thus fixing build
- new release
- new snapshot

* Sat Sep 09 2017 tv <tv> 1.43.6-1.mga7
+ Revision: 1152226
- new release

* Thu Feb 02 2017 luigiwalser <luigiwalser> 1.43.4-1.mga6
+ Revision: 1084538
- 1.43.4

* Mon Sep 05 2016 luigiwalser <luigiwalser> 1.43.3-1.mga6
+ Revision: 1050140
- 1.43.3
- remove patch 5 (fixed upstream)
- 1.43.2

* Thu Jun 09 2016 luigiwalser <luigiwalser> 1.43.1-1.mga6
+ Revision: 1020946
- 1.43.1
- remove upstream patch
- re-enable test suite on i586

* Wed May 25 2016 tv <tv> 1.43-2.mga6
+ Revision: 1018310
- only run testsuite on x86_64
+ luigiwalser <luigiwalser>
- 1.43 (package update from Theodoros Kalamatianos)
- add upstream patch to fix test failures because of the two-part version number
- update source URL
- now supports fuse2fs

* Tue Mar 01 2016 blino <blino> 1.42.13-3.mga6
+ Revision: 981159
- remove duplicate URL field incorrectly added in r870990
+ tv <tv>
- switch to pkgconfig() BRs
- add URL

* Fri Aug 21 2015 tmb <tmb> 1.42.13-2.mga6
+ Revision: 867086
- rebuild for new gcc

* Sun Jun 21 2015 tv <tv> 1.42.13-1.mga6
+ Revision: 837856
- new release
- rediff 1 patch
- drop merged patch

* Tue Feb 24 2015 luigiwalser <luigiwalser> 1.42.12-5.mga5
+ Revision: 816803
- add upstream patch to fix CVE-2015-1572

* Wed Oct 15 2014 umeabot <umeabot> 1.42.12-4.mga5
+ Revision: 739955
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 1.42.12-3.mga5
+ Revision: 678904
- Mageia 5 Mass Rebuild

* Sat Aug 30 2014 tv <tv> 1.42.12-2.mga5
+ Revision: 669407
- requires library with same version (should fix ordering issue reported on dev ml)

* Sat Aug 30 2014 tv <tv> 1.42.12-1.mga5
+ Revision: 669402
- new release

* Sun Aug 10 2014 tv <tv> 1.42.11-1.mga5
+ Revision: 661407
- adjust file list
- new release

* Wed Jan 01 2014 tmb <tmb> 1.42.9-2.mga4
+ Revision: 563775
- dont disable testsuite

* Wed Jan 01 2014 tmb <tmb> 1.42.9-1.mga4
+ Revision: 563768
- update to 1.42.9 (fixes possible data corruption and data loss)
- drop merged P2

* Sat Oct 19 2013 umeabot <umeabot> 1.42.8-2.mga4
+ Revision: 530084
- Mageia 4 Mass Rebuild

* Tue Jul 16 2013 tv <tv> 1.42.8-1.mga4
+ Revision: 455054
- temporary disable testsuite
- temporary BR e2fsprogs in order to fix testsuite
- fix regression test in new version (RH)
+ fwang <fwang>
- new version 1.42.8

* Sun Mar 10 2013 tv <tv> 1.42.7-1.mga3
+ Revision: 402070
- rediff patch 5
- new release

* Fri Jan 11 2013 umeabot <umeabot> 1.42.6-3.mga3
+ Revision: 349232
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Mon Jan 07 2013 tmb <tmb> 1.42.6-2.mga3
+ Revision: 341138
- rebuild for new util-linux

* Sun Sep 23 2012 fwang <fwang> 1.42.6-1.mga3
+ Revision: 296867
- new version 1.42.6

* Wed Aug 29 2012 tv <tv> 1.42.5-1.mga3
+ Revision: 285537
- new release

* Thu Jun 14 2012 fwang <fwang> 1.42.4-1.mga3
+ Revision: 260411
- new version 1.42.4

* Sat Jun 02 2012 tv <tv> 1.42.3-1.mga3
+ Revision: 253456
- new release

* Fri Apr 27 2012 colin <colin> 1.42.2-2.mga2
+ Revision: 233470
- Update spec ($RPM_BUILD_ROOT -> %%{buildroot})
- Include an e2fsck.conf file that disables warnings about time offsets by default.

* Tue Apr 03 2012 tmb <tmb> 1.42.2-1.mga2
+ Revision: 228141
- update to 1.42.2 (several important bugfixes)

* Wed Feb 22 2012 fwang <fwang> 1.42.1-1.mga2
+ Revision: 212006
- new version 1.42.1

* Thu Dec 29 2011 tmb <tmb> 1.42-1.mga2
+ Revision: 188716
- update to 1.42
- update filelists
- rediff patches to apply cleanly
- drop buildroot and defattr

* Tue Jan 11 2011 blino <blino> 1.41.14-2.mga1
+ Revision: 6149
- remove old ldconfig scriptlets
+ tmb <tmb>
- imported package e2fsprogs