Hello community,

here is the log from the commit of package lyx for openSUSE:Factory checked in 
at 2020-09-07 21:35:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lyx (Old)
 and      /work/SRC/openSUSE:Factory/.lyx.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lyx"

Mon Sep  7 21:35:47 2020 rev:100 rq:832693 version:2.3.5.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/lyx/lyx.changes  2020-06-29 21:19:15.905951040 
+0200
+++ /work/SRC/openSUSE:Factory/.lyx.new.3399/lyx.changes        2020-09-07 
21:35:59.329398348 +0200
@@ -1,0 +2,8 @@
+Thu Sep  3 19:19:34 UTC 2020 - Cor Blom <[email protected]>
+
+- Place the math fonts coming with LyX in a separate package and
+  install them in the system font directory. In this way fontconfig
+  finds them, which is half of the fix for the diplay of math fonts
+  in LyX. The other half comes with the next release
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lyx.spec ++++++
--- /var/tmp/diff_new_pack.TLE1yw/_old  2020-09-07 21:36:00.233398768 +0200
+++ /var/tmp/diff_new_pack.TLE1yw/_new  2020-09-07 21:36:00.237398770 +0200
@@ -42,6 +42,7 @@
 BuildRequires:  enchant-devel
 BuildRequires:  fdupes
 BuildRequires:  file-devel
+BuildRequires:  fontpackages-devel
 BuildRequires:  hicolor-icon-theme
 BuildRequires:  hunspell-devel
 BuildRequires:  libboost_headers-devel
@@ -60,6 +61,7 @@
 BuildRequires:  pkgconfig(Qt5Widgets)
 BuildRequires:  pkgconfig(Qt5Xml)
 #!BuildIgnore: lyx
+Requires:       %{name}-fonts
 Requires:       ImageMagick
 Requires:       ghostscript
 # Goal is to require/recommends (roughly) everything that is supported in the 
GUI of LyX
@@ -110,6 +112,7 @@
 Recommends:     texlive-picinpar
 Recommends:     texlive-shapepar
 Recommends:     texlive-sidecap
+%reconfigure_fonts_prereq
 
 %description
 LyX is a document processor that encourages an approach to writing
@@ -125,6 +128,14 @@
 (open)SUSE limits the functionaly of ImageMagick. See README.SUSE
 (in /usr/share/doc/packages/lyx/) for more information.
 
+%package fonts
+Summary:        Fonts for displaying math
+Group:          System/X11/Fonts
+BuildArch:      noarch
+
+%description fonts
+A collection of Math symbol fonts for LyX.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -165,6 +176,11 @@
 mkdir -p $RPM_BUILD_ROOT$TEXMF/tex/latex
 ln -s %{_datadir}/lyx/tex $RPM_BUILD_ROOT$TEXMF/tex/latex/lyx
 
+# fonts
+install -m 0755 -d %{buildroot}%{_fontsdir}/lyx
+mv %{buildroot}%{_datadir}/lyx/fonts/*.ttf %{buildroot}%{_fontsdir}/lyx/
+rm -rf %{buildroot}%{_datadir}/lyx/fonts
+
 install -p -D -m 0644 lib/appdata.xml 
%{buildroot}%{_datadir}/appdata/lyx.appdata.xml
 
 install -p -D -m 0644 lib/scripts/bash_completion 
%{buildroot}%{_datadir}/bash-completion/completions/lyx
@@ -175,6 +191,8 @@
 
 %find_lang %{name}
 
+%reconfigure_fonts_scriptlets -c -n %{name}-fonts
+
 %post
 %desktop_database_post
 %icon_theme_cache_post
@@ -203,4 +221,11 @@
 %{_mandir}/man1/tex2lyx.1%{?ext_man}
 %{_datadir}/bash-completion/completions/lyx
 
+%files fonts
+%dir %{_fontsdir}
+%dir %{_fontsdir}/lyx
+%{_fontsdir}/lyx/*.ttf
+%doc lib/fonts/BaKoMaFontLicense.txt
+%doc lib/fonts/ReadmeBaKoMa4LyX.txt
+
 %changelog




Reply via email to