From 93fb035dabfc0c39ebb57dd702c201c28db4a14e Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 21 Nov 2017 16:19:01 +0530 Subject: [PATCH] condition the gcc deprecation patch on epel --- libbsd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libbsd.spec b/libbsd.spec index 958f6a7..481d196 100644 --- a/libbsd.spec +++ b/libbsd.spec @@ -8,7 +8,7 @@ Group: System Environment/Libraries # BuildRoot tag necessary for EL5 only: BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) Source0: http://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz -Patch1: %{name}-%{version}-deprecated.patch +Patch1: %{name}-0.8.3-deprecated.patch %description libbsd provides useful functions commonly found on BSD systems, and @@ -40,7 +40,9 @@ configured using "pkg-config --libs libbsd-ctor". %prep %setup -q +%if 0%{?rhel} && 0%{?rhel} < 7 %patch1 -p1 -b .deprecated +%endif %build %configure @@ -89,6 +91,7 @@ rm %{buildroot}%{_libdir}/%{name}.la * Tue Nov 21 2017 Jens Petersen - 0.8.6-1 - update to 0.8.6 (#1462722) - fixes manpage conflict (#1504831) +- condition the gcc deprecation patch on epel < 7 * Thu Aug 03 2017 Fedora Release Engineering - 0.8.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild