Remove the samples subpackage from RHEL 7

This commit is contained in:
Debarshi Ray 2019-01-02 12:40:27 +01:00
parent db6d7a77c7
commit 7bac0c82cb

View File

@ -1,7 +1,7 @@
Summary: Library for reading RAW files obtained from digital photo cameras Summary: Library for reading RAW files obtained from digital photo cameras
Name: LibRaw Name: LibRaw
Version: 0.19.2 Version: 0.19.2
Release: 1%{?dist} Release: 2%{?dist}
License: BSD and (CDDL or LGPLv2) License: BSD and (CDDL or LGPLv2)
URL: http://www.libraw.org URL: http://www.libraw.org
@ -40,12 +40,14 @@ Requires: %{name}-devel%{?_isa} = %{version}-%{release}
%description static %description static
LibRaw static development libraries. LibRaw static development libraries.
%if 0%{?rhel} != 7
%package samples %package samples
Summary: LibRaw sample programs Summary: LibRaw sample programs
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%description samples %description samples
LibRaw sample programs LibRaw sample programs
%endif
%prep %prep
%setup -q %setup -q
@ -56,7 +58,11 @@ LibRaw sample programs
%build %build
autoreconf -if autoreconf -if
%configure \ %configure \
%if 0%{?rhel} == 7
--enable-examples=no \
%else
--enable-examples=yes \ --enable-examples=yes \
%endif
--enable-jasper \ --enable-jasper \
--enable-jpeg \ --enable-jpeg \
--enable-lcms \ --enable-lcms \
@ -109,6 +115,9 @@ rm -fv %{buildroot}%{_libdir}/lib*.la
%changelog %changelog
* Wed Jan 02 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.19.2-2
- Remove the samples subpackage from RHEL 7
* Wed Dec 26 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.19.2-1 * Wed Dec 26 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.19.2-1
- 0.19.2 - 0.19.2