fix bundled urw font install (#1911008)

bundled fonts were getting installed, then promptly
deleted.  Move the install to after directory cleanup
epel9
Rex Dieter 4 years ago
parent 8d9826c4ce
commit 6d4547b0c4

@ -27,7 +27,7 @@
Summary: An ImageMagick fork, offering faster image generation and better quality Summary: An ImageMagick fork, offering faster image generation and better quality
Name: GraphicsMagick Name: GraphicsMagick
Version: 1.3.36 Version: 1.3.36
Release: 1%{?dist} Release: 2%{?dist}
License: MIT License: MIT
Source0: http://downloads.sourceforge.net/sourceforge/graphicsmagick/GraphicsMagick-%{version}.tar.xz Source0: http://downloads.sourceforge.net/sourceforge/graphicsmagick/GraphicsMagick-%{version}.tar.xz
@ -252,17 +252,17 @@ if [ -z perl-pkg-files ] ; then
fi fi
%endif %endif
rm -rf %{buildroot}%{_datadir}/GraphicsMagick
# Keep config
rm -rf %{buildroot}%{_datadir}/%{name}-%{version}/[a-b,d-z,A-Z]*
rm -vf %{buildroot}%{_libdir}/lib*.la
%if 0%{?urw_font_bundle} %if 0%{?urw_font_bundle}
mkdir -p %{buildroot}%{urw_font_path}/ mkdir -p %{buildroot}%{urw_font_path}/
install -p -m644 urw-fonts/* \ install -p -m644 urw-fonts/* \
%{buildroot}%{urw_font_path}/ %{buildroot}%{urw_font_path}/
%endif %endif
rm -rf %{buildroot}%{_datadir}/GraphicsMagick
# Keep config
rm -rf %{buildroot}%{_datadir}/%{name}-%{version}/[a-b,d-z,A-Z]*
rm -vf %{buildroot}%{_libdir}/lib*.la
# fix multilib issues # fix multilib issues
%ifarch %{multilib_archs} %ifarch %{multilib_archs}
mv %{buildroot}%{_includedir}/GraphicsMagick/magick/magick_types.h \ mv %{buildroot}%{_includedir}/GraphicsMagick/magick/magick_types.h \
@ -354,6 +354,9 @@ exit 1
%changelog %changelog
* Mon Jan 25 2021 Rex Dieter <rdieter@fedoraproject.org> - 1.3.36-2
- fix bundled urw font install (#1911008)
* Wed Dec 30 2020 Rex Dieter <rdieter@fedoraproject.org> - 1.3.36-1 * Wed Dec 30 2020 Rex Dieter <rdieter@fedoraproject.org> - 1.3.36-1
- 1.3.36 - 1.3.36
- fix urw font path, Requires: urw-base35-fonts-legacy (#1847187) - fix urw font path, Requires: urw-base35-fonts-legacy (#1847187)

Loading…
Cancel
Save