diff --git a/autotrace.spec b/autotrace.spec index a64cb36..054b9f0 100644 --- a/autotrace.spec +++ b/autotrace.spec @@ -4,12 +4,13 @@ Release: %autorelease Summary: Utility for converting bitmaps to vector graphics License: GPLv2+ and LGPLv2+ URL: http://autotrace.sourceforge.net/ -Source0: https://github.com/%{name}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz +Source0: https://github.com/%{name}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz # https://github.com/autotrace/autotrace/pull/105 Patch0: autotrace-0.31.9-pr105-ImageMagick7.patch +# https://github.com/autotrace/autotrace/pull/108 Patch1: autotrace-0.31.9-expected-test-failure-no-imagemagick.patch # No ImageMagick in RHEL 8 and future releases -%if !(0%{?rhel} >= 8) +%if 0%{?rhel} < 8 BuildRequires: ImageMagick-devel %endif BuildRequires: autoconf @@ -40,7 +41,7 @@ Postscript, SVG, xfig, SWF, and others. Summary: Header files for autotrace Requires: %{name}%{?_isa} = %{version}-%{release} Requires: pkgconfig -%if !(0%{?rhel} >= 8) +%if 0%{?rhel} < 8 Requires: ImageMagick-devel %endif Requires: pstoedit-devel @@ -56,12 +57,12 @@ This package contains header files and development libraries for autotrace. %build autoreconf -ivf -%if ! ( 0%{?rhel} >= 8 ) -%configure --without-magick --disable-static -%else +%if 0%{?rhel} < 8 %configure --enable-magick-readers --disable-static +%else +%configure --without-magick --disable-static %endif -make %{?_smp_mflags} +%make_build %install