From 7bac0c82cb98ac785750b259974797b0f5680285 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Wed, 2 Jan 2019 12:40:27 +0100 Subject: [PATCH] Remove the samples subpackage from RHEL 7 --- LibRaw.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/LibRaw.spec b/LibRaw.spec index 13295e2..0c72402 100644 --- a/LibRaw.spec +++ b/LibRaw.spec @@ -1,7 +1,7 @@ Summary: Library for reading RAW files obtained from digital photo cameras Name: LibRaw Version: 0.19.2 -Release: 1%{?dist} +Release: 2%{?dist} License: BSD and (CDDL or LGPLv2) URL: http://www.libraw.org @@ -40,12 +40,14 @@ Requires: %{name}-devel%{?_isa} = %{version}-%{release} %description static LibRaw static development libraries. +%if 0%{?rhel} != 7 %package samples Summary: LibRaw sample programs Requires: %{name} = %{version}-%{release} %description samples LibRaw sample programs +%endif %prep %setup -q @@ -56,7 +58,11 @@ LibRaw sample programs %build autoreconf -if %configure \ +%if 0%{?rhel} == 7 + --enable-examples=no \ +%else --enable-examples=yes \ +%endif --enable-jasper \ --enable-jpeg \ --enable-lcms \ @@ -109,6 +115,9 @@ rm -fv %{buildroot}%{_libdir}/lib*.la %changelog +* Wed Jan 02 2019 Debarshi Ray - 0.19.2-2 +- Remove the samples subpackage from RHEL 7 + * Wed Dec 26 2018 Gwyn Ciesla - 0.19.2-1 - 0.19.2