2007-01-16 00:24:26 +01:00
|
|
|
#
|
2011-01-18 12:13:12 +01:00
|
|
|
# spec file for package lyx
|
2007-01-16 00:24:26 +01:00
|
|
|
#
|
2024-01-18 23:12:06 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2007-01-16 00:24:26 +01:00
|
|
|
#
|
2008-09-24 17:11:38 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-06-25 20:44:32 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:24:26 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-01-18 23:12:06 +01:00
|
|
|
%if 0%{?suse_version} >= 1600
|
|
|
|
%bcond_without qt6
|
|
|
|
%endif
|
|
|
|
|
2007-01-16 00:24:26 +01:00
|
|
|
Name: lyx
|
2024-05-31 10:12:46 +02:00
|
|
|
Version: 2.4.0
|
2017-02-19 22:00:15 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: WYSIWYM (What You See Is What You Mean) document processor
|
2018-02-27 10:41:30 +01:00
|
|
|
License: GPL-2.0-or-later
|
2017-02-19 22:00:15 +01:00
|
|
|
Group: Productivity/Publishing/TeX/Frontends
|
2019-06-25 21:26:42 +02:00
|
|
|
URL: http://www.lyx.org/
|
2024-05-31 10:12:46 +02:00
|
|
|
Source: http://ftp.lyx.org/pub/lyx/stable/2.4.x/lyx-%{version}.tar.xz
|
2017-02-19 22:00:15 +01:00
|
|
|
Source1: lyxrc.dist
|
|
|
|
Source2: lyx.keyring
|
2024-05-31 10:12:46 +02:00
|
|
|
Source3: http://ftp.lyx.org/pub/lyx/stable/2.4.x/lyx-%{version}.tar.xz.sig
|
2019-07-04 17:14:17 +02:00
|
|
|
Source4: README.SUSE
|
2024-03-22 20:59:47 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2014-04-15 00:14:09 +02:00
|
|
|
BuildRequires: bc
|
2017-02-19 22:00:15 +01:00
|
|
|
BuildRequires: enchant-devel
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: file-devel
|
2020-09-03 21:21:16 +02:00
|
|
|
BuildRequires: fontpackages-devel
|
2017-02-19 22:00:15 +01:00
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: hunspell-devel
|
2019-06-25 21:26:42 +02:00
|
|
|
BuildRequires: libboost_headers-devel
|
2021-02-07 12:43:31 +01:00
|
|
|
BuildRequires: mythes-devel
|
2017-02-19 22:00:15 +01:00
|
|
|
BuildRequires: pkgconfig
|
2018-08-30 00:06:42 +02:00
|
|
|
BuildRequires: python3
|
2017-02-19 22:00:15 +01:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: zlib-devel
|
2024-01-18 23:12:06 +01:00
|
|
|
%if %{with qt6}
|
|
|
|
BuildRequires: qt6-gui-private-devel
|
2024-03-22 20:59:47 +01:00
|
|
|
BuildRequires: pkgconfig(Qt6Concurrent)
|
|
|
|
BuildRequires: pkgconfig(Qt6Core)
|
|
|
|
BuildRequires: pkgconfig(Qt6Core5Compat)
|
|
|
|
BuildRequires: pkgconfig(Qt6DBus)
|
|
|
|
BuildRequires: pkgconfig(Qt6Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt6PrintSupport)
|
|
|
|
BuildRequires: pkgconfig(Qt6Sql)
|
|
|
|
BuildRequires: pkgconfig(Qt6Svg)
|
|
|
|
BuildRequires: pkgconfig(Qt6Widgets)
|
|
|
|
BuildRequires: pkgconfig(Qt6Xml)
|
2024-01-18 23:12:06 +01:00
|
|
|
%else
|
2016-05-24 11:10:00 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Concurrent)
|
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5DBus)
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
|
|
|
BuildRequires: pkgconfig(Qt5Script)
|
|
|
|
BuildRequires: pkgconfig(Qt5Sql)
|
|
|
|
BuildRequires: pkgconfig(Qt5Svg)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
BuildRequires: pkgconfig(Qt5Xml)
|
2024-01-18 23:12:06 +01:00
|
|
|
%endif
|
2019-06-25 21:26:42 +02:00
|
|
|
#!BuildIgnore: lyx
|
2020-09-03 21:21:16 +02:00
|
|
|
Requires: %{name}-fonts
|
2019-06-25 21:26:42 +02:00
|
|
|
Requires: ImageMagick
|
|
|
|
Requires: ghostscript
|
2014-09-17 13:39:08 +02:00
|
|
|
# Goal is to require/recommends (roughly) everything that is supported in the GUI of LyX
|
2013-05-05 21:02:19 +02:00
|
|
|
# LyX can supoort everything of LaTeX in the preamble, but not everything is supported in the GUI
|
2013-09-12 13:43:48 +02:00
|
|
|
# I have ingored extra fonts and document classes
|
2014-09-25 15:08:20 +02:00
|
|
|
# Use "Recommends" so that expert users can have some control
|
2014-09-17 13:39:08 +02:00
|
|
|
Recommends: texlive-algorithms
|
|
|
|
Recommends: texlive-arabi
|
|
|
|
Recommends: texlive-bezos
|
2018-01-29 22:03:41 +01:00
|
|
|
Recommends: texlive-biber
|
|
|
|
Recommends: texlive-bibtex8
|
2014-09-17 13:39:08 +02:00
|
|
|
Recommends: texlive-bibtopic
|
|
|
|
Recommends: texlive-braille
|
|
|
|
Recommends: texlive-collection-fontsrecommended
|
|
|
|
Recommends: texlive-collection-htmlxml
|
|
|
|
Recommends: texlive-collection-latexrecommended
|
|
|
|
Recommends: texlive-collection-luatex
|
|
|
|
Recommends: texlive-collection-xetex
|
|
|
|
Recommends: texlive-covington
|
|
|
|
Recommends: texlive-endnotes
|
|
|
|
Recommends: texlive-esint
|
2015-01-07 21:20:57 +01:00
|
|
|
Recommends: texlive-esint-type1
|
2019-08-13 12:27:29 +02:00
|
|
|
Recommends: texlive-fixme
|
2016-10-10 20:18:07 +02:00
|
|
|
Recommends: texlive-forest
|
2014-09-17 13:39:08 +02:00
|
|
|
Recommends: texlive-fragments
|
|
|
|
Recommends: texlive-ifsym
|
|
|
|
Recommends: texlive-mathdots
|
2018-12-10 14:26:00 +01:00
|
|
|
Recommends: texlive-menukeys
|
2014-09-17 13:39:08 +02:00
|
|
|
Recommends: texlive-mhchem
|
|
|
|
Recommends: texlive-multirow
|
|
|
|
Recommends: texlive-nomencl
|
2015-02-06 11:02:32 +01:00
|
|
|
Recommends: texlive-pdfcomment
|
2014-09-17 13:39:08 +02:00
|
|
|
Recommends: texlive-pdfsync
|
|
|
|
Recommends: texlive-prettyref
|
|
|
|
Recommends: texlive-refstyle
|
|
|
|
Recommends: texlive-rotfloat
|
|
|
|
Recommends: texlive-splitindex
|
2020-11-21 21:45:19 +01:00
|
|
|
Recommends: texlive-tablefootnote
|
2016-08-27 00:30:31 +02:00
|
|
|
Recommends: texlive-tcolorbox
|
2014-09-17 13:39:08 +02:00
|
|
|
Recommends: texlive-textgreek
|
2019-08-13 12:27:29 +02:00
|
|
|
Recommends: texlive-todonotes
|
2014-09-17 13:39:08 +02:00
|
|
|
Recommends: texlive-units
|
|
|
|
Recommends: texlive-wrapfig
|
|
|
|
Recommends: texlive-zhmetrics
|
|
|
|
Recommends: xindy
|
2013-09-12 13:43:48 +02:00
|
|
|
# Some stuff needed for LyX's documentation:
|
2014-09-17 13:39:08 +02:00
|
|
|
Recommends: texlive-braket
|
2021-02-09 14:41:42 +01:00
|
|
|
Recommends: texlive-cprotect
|
2014-09-17 13:39:08 +02:00
|
|
|
Recommends: texlive-diagbox
|
2021-02-09 14:41:42 +01:00
|
|
|
Recommends: texlive-doublestroke
|
2014-09-17 13:39:08 +02:00
|
|
|
Recommends: texlive-picinpar
|
2015-10-12 10:25:56 +02:00
|
|
|
Recommends: texlive-shapepar
|
2015-10-17 01:52:42 +02:00
|
|
|
Recommends: texlive-sidecap
|
2011-02-01 10:06:08 +01:00
|
|
|
|
2007-01-16 00:24:26 +01:00
|
|
|
%description
|
2011-10-17 12:36:00 +02:00
|
|
|
LyX is a document processor that encourages an approach to writing
|
|
|
|
based on the structure of your documents, not their appearance. The
|
|
|
|
author can concentrate on the content (What You See Is What You Mean).
|
|
|
|
The formatting is done by the backends (like LaTeX) and the output can
|
|
|
|
have different formats, such as DVI, postscript, PDF, html.
|
|
|
|
|
2013-09-12 13:43:48 +02:00
|
|
|
LyX can check the LaTeX installation by opening the LaTeX Configuration
|
|
|
|
document under "Help" on the menubar.
|
|
|
|
|
2019-07-04 17:14:17 +02:00
|
|
|
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.
|
2019-07-03 21:49:48 +02:00
|
|
|
|
2020-09-03 21:21:16 +02:00
|
|
|
%package fonts
|
2020-09-03 21:40:55 +02:00
|
|
|
Summary: Fonts for displaying math
|
2020-09-03 21:21:16 +02:00
|
|
|
Group: System/X11/Fonts
|
|
|
|
BuildArch: noarch
|
2023-12-13 16:31:12 +01:00
|
|
|
%reconfigure_fonts_prereq
|
2020-09-03 21:21:16 +02:00
|
|
|
|
|
|
|
%description fonts
|
|
|
|
A collection of Math symbol fonts for LyX.
|
|
|
|
|
2007-01-16 00:24:26 +01:00
|
|
|
%prep
|
2024-01-20 12:50:40 +01:00
|
|
|
%autosetup
|
2011-09-06 15:40:12 +02:00
|
|
|
|
2007-01-16 00:24:26 +01:00
|
|
|
%build
|
2008-10-09 19:25:00 +02:00
|
|
|
TEXMF=%{_datadir}/texmf
|
2024-03-22 20:59:47 +01:00
|
|
|
%configure \
|
|
|
|
--enable-build-type=rel \
|
|
|
|
--without-included-boost \
|
|
|
|
--without-aspell \
|
|
|
|
--with-hunspell \
|
|
|
|
--with-enchant \
|
2024-01-18 23:12:06 +01:00
|
|
|
%if %{with qt6}
|
2024-03-22 21:04:02 +01:00
|
|
|
--enable-qt6
|
2024-01-18 23:12:06 +01:00
|
|
|
%else
|
2024-03-22 20:59:47 +01:00
|
|
|
--enable-qt5
|
2024-01-18 23:12:06 +01:00
|
|
|
%endif
|
2024-03-22 20:59:47 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:24:26 +01:00
|
|
|
|
|
|
|
%install
|
2008-10-09 19:25:00 +02:00
|
|
|
TEXMF=%{_datadir}/texmf
|
2024-03-22 21:20:43 +01:00
|
|
|
%make_install TEXMF=$TEXMF
|
2024-01-18 23:12:06 +01:00
|
|
|
%python3_fix_shebang
|
2011-05-30 16:15:33 +02:00
|
|
|
|
|
|
|
# some defaults
|
2017-02-19 22:00:15 +01:00
|
|
|
install -p -m644 -D %{SOURCE1} %{buildroot}%{_datadir}/lyx/lyxrc.dist
|
2012-03-12 15:51:40 +01:00
|
|
|
|
2017-02-19 22:00:15 +01:00
|
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
|
|
|
|
pushd %{buildroot}%{_datadir}/lyx/doc/
|
2007-01-16 00:24:26 +01:00
|
|
|
for i in *
|
|
|
|
do
|
2008-10-09 19:25:00 +02:00
|
|
|
ln -s %{_datadir}/lyx/doc/$i \
|
2017-02-19 22:00:15 +01:00
|
|
|
%{buildroot}/%{_defaultdocdir}/%{name}/
|
2007-01-16 00:24:26 +01:00
|
|
|
done
|
|
|
|
popd
|
2017-02-19 22:00:15 +01:00
|
|
|
|
2014-04-15 00:14:09 +02:00
|
|
|
cp ANNOUNCE COPYING NEWS \
|
2019-07-04 17:14:17 +02:00
|
|
|
README README.localization RELEASE-NOTES UPGRADING %{SOURCE4} \
|
2017-02-19 22:00:15 +01:00
|
|
|
%{buildroot}/%{_defaultdocdir}/%{name}/
|
|
|
|
|
2008-10-09 19:25:00 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT$TEXMF/tex/latex
|
|
|
|
ln -s %{_datadir}/lyx/tex $RPM_BUILD_ROOT$TEXMF/tex/latex/lyx
|
2017-02-19 22:00:15 +01:00
|
|
|
|
2020-09-03 21:21:16 +02:00
|
|
|
# fonts
|
|
|
|
install -m 0755 -d %{buildroot}%{_fontsdir}/lyx
|
|
|
|
mv %{buildroot}%{_datadir}/lyx/fonts/*.ttf %{buildroot}%{_fontsdir}/lyx/
|
|
|
|
rm -rf %{buildroot}%{_datadir}/lyx/fonts
|
|
|
|
|
2018-08-28 21:38:25 +02:00
|
|
|
install -p -D -m 0644 lib/scripts/bash_completion %{buildroot}%{_datadir}/bash-completion/completions/lyx
|
2017-02-19 22:00:15 +01:00
|
|
|
|
2014-04-15 00:14:09 +02:00
|
|
|
%suse_update_desktop_file lyx Office WordProcessor
|
2007-01-16 00:24:26 +01:00
|
|
|
|
2017-02-19 22:00:15 +01:00
|
|
|
%fdupes -s %{buildroot}%{_prefix}
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
2020-09-03 21:21:16 +02:00
|
|
|
%reconfigure_fonts_scriptlets -c -n %{name}-fonts
|
|
|
|
|
2017-02-19 22:00:15 +01:00
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
2008-10-09 19:25:00 +02:00
|
|
|
%docdir %{_datadir}/lyx/doc
|
2007-01-16 00:24:26 +01:00
|
|
|
%doc %{_defaultdocdir}/lyx
|
2017-02-19 22:00:15 +01:00
|
|
|
%{_bindir}/lyx
|
|
|
|
%{_bindir}/lyxclient
|
|
|
|
%{_bindir}/tex2lyx
|
2008-10-09 19:25:00 +02:00
|
|
|
%{_datadir}/applications/lyx.desktop
|
2024-01-18 23:12:06 +01:00
|
|
|
%{_datadir}/metainfo/org.lyx.LyX.metainfo.xml
|
2014-04-15 00:14:09 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
2011-09-19 13:06:15 +02:00
|
|
|
%dir %{_datadir}/texmf
|
|
|
|
%dir %{_datadir}/texmf/tex
|
|
|
|
%dir %{_datadir}/texmf/tex/latex
|
2008-10-09 19:25:00 +02:00
|
|
|
%{_datadir}/texmf/tex/latex/lyx
|
|
|
|
%{_datadir}/lyx
|
2019-06-25 21:26:42 +02:00
|
|
|
%{_mandir}/man1/lyx.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/lyxclient.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/tex2lyx.1%{?ext_man}
|
2018-08-28 21:38:25 +02:00
|
|
|
%{_datadir}/bash-completion/completions/lyx
|
2007-01-16 00:24:26 +01:00
|
|
|
|
2020-09-03 21:21:16 +02:00
|
|
|
%files fonts
|
|
|
|
%dir %{_fontsdir}/lyx
|
|
|
|
%{_fontsdir}/lyx/*.ttf
|
|
|
|
%doc lib/fonts/BaKoMaFontLicense.txt
|
|
|
|
|
2007-04-27 16:48:55 +02:00
|
|
|
%changelog
|