Browse Source

util-linux:
- run autogen.sh before configure
- remove "* include postlogin" from su.pamd

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@7169 ec354946-7b23-47d6-9f5a-488ba84defc7

daisuke 11 years ago
parent
commit
f1fe35a471
1 changed files with 11 additions and 2 deletions
  1. 11 2
      u/util-linux/util-linux-vl.spec

+ 11 - 2
u/util-linux/util-linux-vl.spec

@@ -3,7 +3,7 @@ Summary: A collection of basic system utilities
 Summary(ja): 基本システムユーティリティー集
 Name: util-linux
 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
 Group: System Environment/Base
 URL: http://en.wikipedia.org/wiki/Util-linux
@@ -39,6 +39,9 @@ BuildRequires: popt-devel
 BuildRequires: libutempter-devel
 BuildRequires: libudev-devel
 
+# su/runuser patches need this
+BuildRequires: automake, autoconf, libtool
+
 ### Sources
 Source0: ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.22/%{name}-%{version}.tar.xz
 Source1: util-linux-ng-login.pamd
@@ -377,9 +380,11 @@ cp %{SOURCE8} %{SOURCE9} .
 %build
 unset LINGUAS || :
 
+./autogen.sh
+
 export CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 $RPM_OPT_FLAGS"
 export SUID_CFLAGS="-fpie"
-export SUID_LDFLAGS="-pie"
+export SUID_LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
 %configure \
 	--bindir=/bin \
 	--sbindir=/sbin \
@@ -968,6 +973,10 @@ fi
 %endif
 
 %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
 - update to 2.22.1
 - add upstream patches