Fix EPEL builds

This commit is contained in:
sagitter 2020-10-05 15:49:13 +02:00
parent 6bd7c9097f
commit b12363c2ff

View File

@ -14,10 +14,14 @@ BuildRequires: dos2unix
BuildRequires: ghostscript BuildRequires: ghostscript
BuildRequires: plotutils-devel BuildRequires: plotutils-devel
BuildRequires: gcc-c++, gcc BuildRequires: gcc-c++, gcc
BuildRequires: libEMF-devel
BuildRequires: libzip-devel BuildRequires: libzip-devel
BuildRequires: ImageMagick-c++-devel BuildRequires: ImageMagick-c++-devel
%if 0%{?fedora} || 0%{?rhel} > 7
BuildRequires: libEMF-devel
%endif
%if 0%{?fedora}
BuildRequires: ming-devel BuildRequires: ming-devel
%endif
Requires: ghostscript%{?_isa} Requires: ghostscript%{?_isa}
%description %description
@ -43,13 +47,10 @@ dos2unix doc/*.htm doc/readme.txt
%build %build
# Buildling without ImageMagick support, to work around bug 507035 # Buildling without ImageMagick support, to work around bug 507035
%configure --disable-static --with-emf \ %configure --disable-static --enable-docs=no --with-libzip-include=%{_includedir} \
--enable-docs=no --with-libzip-include=%{_includedir} %if 0%{?rhel} == 7
--without-emf
# http://fedoraproject.org/wiki/Packaging/Guidelines#Removing_Rpath %endif
#sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
#sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build %make_build
%install %install