--- /dev/null
+--- util-linux-2.20.1/configure.ac~ 2011-11-27 21:36:59.000000000 +0100
++++ util-linux-2.20.1/configure.ac 2011-11-27 21:44:54.089830949 +0100
+@@ -491,7 +491,7 @@
+ AC_DEFINE([HAVE_SCANF_AS_MODIFIER], [1], [scanf %as modifier]) ;;
+ *)
+ AC_MSG_RESULT([no])
+- if "x$build_libmount" = xyes; then
++ if test "x$build_libmount" = xyes; then
+ AC_MSG_WARN([%as or %ms for sscanf() not found; do not build libmount])
+ build_libmount=no
+ fi
Summary(uk.UTF-8): Набір базових системних утиліт для Linux
Name: util-linux
Version: 2.20.1
-Release: 0.1
+Release: 1
License: GPL
Group: Applications/System
#Source0: http://ftp.kernel.org/pub/linux/utils/util-linux/v2.20/%{name}-%{version}.tar.bz2
Patch9: %{name}-swaponsymlink.patch
Patch10: %{name}-diet.patch
Patch11: no-openat.patch
+Patch12: %{name}-build.patch
URL: http://userweb.kernel.org/~kzak/util-linux/
BuildRequires: audit-libs-devel >= 1.0.6
BuildRequires: autoconf >= 2.60
%if %{without partx}
%patch11 -p1
%endif
+%patch12 -p1
%if "%{pld_release}" != "ac"
sed -i -e 's/-lncursesw/-lncursesw -ltinfow/' configure.ac
--disable-shared \
--enable-static \
--disable-fsck \
+ --disable-libmount \
--disable-login-utils \
--disable-schedutils \
--disable-silent-rules \
sed -i -e 's/ cal\$(EXEEXT) / /; s/ lsblk\$(EXEEXT)//' misc-utils/Makefile
-for dir in libblkid libmount libuuid disk-utils misc-utils fsck fdisk schedutils hwclock; do
+for dir in libblkid libuuid disk-utils misc-utils fsck fdisk schedutils hwclock; do
%{__make} -C $dir \
%if %{with uClibc}
LDFLAGS="-Wl,-static"
%{_libdir}/libmount.a
%if %{with initrd} && %{with dietlibc}
-%files -n libmount-dietlibc
-%defattr(644,root,root,755)
-%{dietlibdir}/libmount.a
-%endif
-
%files -n fsck
%defattr(644,root,root,755)
%attr(755,root,root) /sbin/fsck