- Add README.SUSE and refer to that in %description to explain

limited functionality of ImageMagick in openSUSE

OBS-URL: https://build.opensuse.org/package/show/Publishing/lyx?expand=0&rev=171
This commit is contained in:
Cor Blom 2019-07-04 15:14:17 +00:00 committed by Git OBS Bridge
parent c9f740f08a
commit 112b4b82ed
3 changed files with 15 additions and 5 deletions

4
README.SUSE Normal file
View File

@ -0,0 +1,4 @@
LyX makes use of ImageMagick, a.o. for showing previews of images in the LyX windows. In (open)SUSE some functionality of ImageMagick is disabled for security reasons. This is true for all postscripts files. Showing an eps image in LyX, therefore, does not work out of the box. A postscript file has some functionality of a program, so it is safer to have this functionality disabled.
If you want to enable some disabled functionality, you can edit the settings in /etc/ImageMagick-7, if you know what you are doing. An alternative is to remove the package with the default SUSE setting and install the upstream version: ImageMagick-config-7-SUSE must be replaced by ImageMagick-config-7-upstream.

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 4 15:12:50 UTC 2019 - Cor Blom <cornelis@solcon.nl>
- Add README.SUSE and refer to that in %description to explain
limited functionality of ImageMagick in openSUSE
-------------------------------------------------------------------
Wed Jul 3 19:43:35 UTC 2019 - Cor Blom <cornelis@solcon.nl>

View File

@ -27,6 +27,7 @@ Source: ftp://ftp.lyx.org/pub/lyx/stable/2.3.x/lyx-%{version}.tar.xz
Source1: lyxrc.dist
Source2: lyx.keyring
Source3: ftp://ftp.lyx.org/pub/lyx/stable/2.3.x/lyx-%{version}.tar.xz.sig
Source4: README.SUSE
# PATCH-FIX-UPSTREAM to satisfy rpmlint - use #! /usr/bin/python as shebang
# See: https://www.lyx.org/trac/changeset/cac27076ead10684270520670adc6bd004793361/lyxgit
# Upstream also made change to python3 in master. Because 2.3.1 is compatible with both
@ -115,10 +116,9 @@ have different formats, such as DVI, postscript, PDF, html.
LyX can check the LaTeX installation by opening the LaTeX Configuration
document under "Help" on the menubar.
LyX uses ImageMagick to deal with images. Be aware that some functionaly
of ImageMagick is disable in openSUSE for security reasons. Remove
ImageMagick-config-7-SUSE and install ImageMagick-config-7-upstream to
restore support for some images, like eps.
LyX uses ImageMagick to deal with images. For security reasons
(open)SUSE limits the functionaly of ImageMagick. See README.SUSE
(in /usr/share/doc/packages/lyx/) for more information.
%prep
%setup -q
@ -153,7 +153,7 @@ pushd %{buildroot}%{_datadir}/lyx/doc/
popd
cp ANNOUNCE COPYING NEWS \
README README.localization RELEASE-NOTES UPGRADING \
README README.localization RELEASE-NOTES UPGRADING %{SOURCE4} \
%{buildroot}/%{_defaultdocdir}/%{name}/
mkdir -p $RPM_BUILD_ROOT$TEXMF/tex/latex