diff --git a/inn.spec b/inn.spec index 91e9e9d..51eb8cf 100644 --- a/inn.spec +++ b/inn.spec @@ -1,7 +1,7 @@ Summary: The InterNetNews (INN) system, an Usenet news server. Name: inn Version: 2.3.5 -Release: 9 +Release: 10 License: GPL Group: System Environment/Daemons Source0: ftp://ftp.isc.org/isc/inn/inn-%{version}.tar.gz @@ -14,6 +14,7 @@ Source10: inn-faq.tar.gz Patch: inn-2.3.1-rh.patch Patch2: inn-2.3.3-strerror.patch Patch3: inn-headusage.patch +Patch4: inn-2.3.5-pie.patch BuildRequires: db4-devel Prereq: /sbin/chkconfig, grep, textutils, sed, fileutils, sh-utils Requires: bash >= 2.0, inews @@ -67,12 +68,18 @@ local news servers. %patch -p1 -b .rh %patch2 -p1 %patch3 -p1 +%patch4 -p1 -b .pie perl -pi -e 's/LOCK_READ/LLOCK_READ/' `find . -type f` perl -pi -e 's/LOCK_WRITE/LLOCK_WRITE/' `find . -type f` %build -CFLAGS="$RPM_OPT_FLAGS" with_tmp_path=/var/lib/news/tmp ./configure \ +%ifarch s390 s390x +export CFLAGS="$RPM_OPT_FLAGS -fPIC" +%else +export CFLAGS="$RPM_OPT_FLAGS -fpic" +%endif +with_tmp_path=/var/lib/news/tmp ./configure \ --prefix=/usr/lib/news \ --sysconfdir=/etc/news --mandir=%{_mandir} \ --with-log-dir=/var/log/news --with-spool-dir=/var/spool/news\ @@ -248,6 +255,9 @@ exit 0 %{_mandir}/man1/inews* %changelog +* Mon May 17 2004 Thomas Woerner 2.3.5-10 +- compiling server and suid programs PIE + * Tue Apr 6 2004 Thomas Woerner 2.3.5-9 - /etc/rc.d/init.d/innd is owned by root now (#119131)