From 2fec3f26f698d66e51bd285c992b84a0f136f6c3 Mon Sep 17 00:00:00 2001 From: Petr Šabata Date: Sep 17 2015 20:00:42 +0000 Subject: Enable full RELRO --- diff --git a/ii.spec b/ii.spec index 6df9023..65c41f6 100644 --- a/ii.spec +++ b/ii.spec @@ -1,16 +1,17 @@ -Name: ii -Version: 1.7 -Release: 7%{?dist} -Summary: IRC IT, simple FIFO based IRC client -Group: Applications/Communications -License: MIT -URL: http://tools.suckless.org/%{name} -Source0: http://dl.suckless.org/tools/%{name}-%{version}.tar.gz -Patch0: %{name}-1.6-make.patch +Name: ii +Version: 1.7 +Release: 8%{?dist} +Summary: IRC IT, simple FIFO based IRC client +Group: Applications/Communications +License: MIT +URL: http://tools.suckless.org/%{name} +Source0: http://dl.suckless.org/tools/%{name}-%{version}.tar.gz +Patch0: %{name}-1.6-make.patch BuildRequires: binutils BuildRequires: coreutils BuildRequires: gcc BuildRequires: make +BuildRequires: sed %description A minimalist FIFO and file-system-based IRC client. It creates an IRC @@ -21,6 +22,7 @@ directory a FIFO in file and a normal out file is created. %setup -q sed -i 's!^PREFIX *=.*!PREFIX = %{_prefix}!' config.mk sed -i 's!^CFLAGS *=.*!CFLAGS = ${INCLUDES} -DVERSION=\\"${VERSION}\\" %{optflags}!' config.mk +sed -i 's!^LDFLAGS *=.*!LDFLAGS = ${LIBS} -znow!' config.mk %patch0 -p1 -b .make %build @@ -32,10 +34,13 @@ make install DESTDIR=%{buildroot} %files %license LICENSE %doc CHANGES FAQ README -%{_bindir}/ii -%{_mandir}/man1/ii.1* +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1* %changelog +* Thu Sep 17 2015 Petr Šabata - 1.7-8 +- Enable full RELRO + * Thu Jun 25 2015 Petr Šabata - 1.7-7 - Correct the dep list - Modernize spec