|
@@ -3,7 +3,7 @@ Summary: A collection of basic system utilities
|
|
Summary(ja): 基本システムユーティリティー集
|
|
Summary(ja): 基本システムユーティリティー集
|
|
Name: util-linux
|
|
Name: util-linux
|
|
Version: 2.22.1
|
|
Version: 2.22.1
|
|
-Release: 1%{?_dist_release}
|
|
+Release: 2%{?_dist_release}
|
|
License: GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain
|
|
License: GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain
|
|
Group: System Environment/Base
|
|
Group: System Environment/Base
|
|
URL: http://en.wikipedia.org/wiki/Util-linux
|
|
URL: http://en.wikipedia.org/wiki/Util-linux
|
|
@@ -39,6 +39,9 @@ BuildRequires: popt-devel
|
|
BuildRequires: libutempter-devel
|
|
BuildRequires: libutempter-devel
|
|
BuildRequires: libudev-devel
|
|
BuildRequires: libudev-devel
|
|
|
|
|
|
|
|
+# su/runuser patches need this
|
|
|
|
+BuildRequires: automake, autoconf, libtool
|
|
|
|
+
|
|
### Sources
|
|
### Sources
|
|
Source0: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.22/%{name}-%{version}.tar.xz
|
|
Source0: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.22/%{name}-%{version}.tar.xz
|
|
Source1: util-linux-ng-login.pamd
|
|
Source1: util-linux-ng-login.pamd
|
|
@@ -377,9 +380,11 @@ cp %{SOURCE8} %{SOURCE9} .
|
|
%build
|
|
%build
|
|
unset LINGUAS || :
|
|
unset LINGUAS || :
|
|
|
|
|
|
|
|
+./autogen.sh
|
|
|
|
+
|
|
export CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 $RPM_OPT_FLAGS"
|
|
export CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 $RPM_OPT_FLAGS"
|
|
export SUID_CFLAGS="-fpie"
|
|
export SUID_CFLAGS="-fpie"
|
|
-export SUID_LDFLAGS="-pie"
|
|
+export SUID_LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
|
|
%configure \
|
|
%configure \
|
|
--bindir=/bin \
|
|
--bindir=/bin \
|
|
--sbindir=/sbin \
|
|
--sbindir=/sbin \
|
|
@@ -968,6 +973,10 @@ fi
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Nov 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.22.1-2
|
|
|
|
+- run autogen.sh before configure
|
|
|
|
+- remove "* include postlogin" from su.pamd
|
|
|
|
+
|
|
* Tue Nov 27 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.22.1-1
|
|
* Tue Nov 27 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.22.1-1
|
|
- update to 2.22.1
|
|
- update to 2.22.1
|
|
- add upstream patches
|
|
- add upstream patches
|