From 1dddc1585497244eddb2c3a762d5865c0522885843e238a6181353989d13afc3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= <ismail@i10z.com>
Date: Sun, 21 Dec 2014 17:40:43 +0000
Subject: [PATCH] Accepting request 266059 from
 home:msmeissn:branches:Archiving

- build with PIE

- build with PIE

OBS-URL: https://build.opensuse.org/request/show/266059
OBS-URL: https://build.opensuse.org/package/show/Archiving/unzip?expand=0&rev=30
---
 unzip-rcc.changes | 5 +++++
 unzip-rcc.spec    | 6 +++---
 unzip.changes     | 5 +++++
 unzip.spec        | 6 +++---
 4 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/unzip-rcc.changes b/unzip-rcc.changes
index cbc758e..3a6cdb2 100644
--- a/unzip-rcc.changes
+++ b/unzip-rcc.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Sun Dec 21 13:43:32 UTC 2014 - meissner@suse.com
+
+- build with PIE
+
 -------------------------------------------------------------------
 Fri Aug  2 18:29:07 UTC 2013 - coolo@suse.com
 
diff --git a/unzip-rcc.spec b/unzip-rcc.spec
index 983eaa9..59fa0b7 100644
--- a/unzip-rcc.spec
+++ b/unzip-rcc.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package unzip-rcc
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -93,9 +93,9 @@ export RPM_OPT_FLAGS="%{optflags} \
 -D_GNU_SOURCE -DRCC_LAZY -DWILD_STOP_AT_DIR \
 -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT \
 -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DNO_LCHMOD \
--DDATE_FORMAT=DF_YMD -I. -fstack-protector -fno-strict-aliasing"
+-DDATE_FORMAT=DF_YMD -I. -fstack-protector -fno-strict-aliasing -fPIE"
 
-make %{?_smp_mflags}  -f unix/Makefile LF2="-ldl" linux_noasm
+make %{?_smp_mflags}  -f unix/Makefile LF2="-ldl -pie" linux_noasm
 
 %check
 make -f unix/Makefile check
diff --git a/unzip.changes b/unzip.changes
index cbc758e..3a6cdb2 100644
--- a/unzip.changes
+++ b/unzip.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Sun Dec 21 13:43:32 UTC 2014 - meissner@suse.com
+
+- build with PIE
+
 -------------------------------------------------------------------
 Fri Aug  2 18:29:07 UTC 2013 - coolo@suse.com
 
diff --git a/unzip.spec b/unzip.spec
index abd4b4f..8fbdc6d 100644
--- a/unzip.spec
+++ b/unzip.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package unzip
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -93,9 +93,9 @@ export RPM_OPT_FLAGS="%{optflags} \
 -D_GNU_SOURCE -DRCC_LAZY -DWILD_STOP_AT_DIR \
 -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT \
 -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DNO_LCHMOD \
--DDATE_FORMAT=DF_YMD -I. -fstack-protector -fno-strict-aliasing"
+-DDATE_FORMAT=DF_YMD -I. -fstack-protector -fno-strict-aliasing -fPIE"
 
-make %{?_smp_mflags}  -f unix/Makefile LF2="-ldl" linux_noasm
+make %{?_smp_mflags}  -f unix/Makefile LF2="-ldl -pie" linux_noasm
 
 %check
 make -f unix/Makefile check