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
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 <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
- 0.19.2