File Mogan.spec of Package Mogan
#
# spec file for package Mogan
#
# Copyright (c) 2022 沈浪熊猫儿 shenda@ustc.edu
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: Mogan
Version: 1.1.2
Release: 0
Summary: A Structured WYSIWYG Scientific Text Editor
License: GPL-3.0
URL: https://github.com/XmacsLabs/mogan
Source0: mogan-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: libpng16-devel
BuildRequires: libpng16-compat-devel
BuildRequires: zlib-devel-static
BuildRequires: libjpeg8-devel
BuildRequires: libcurl-devel
BuildRequires: sqlite3-devel
BuildRequires: freetype2-devel
BuildRequires: libQt5Core-devel
BuildRequires: libQt5Gui-devel
BuildRequires: libQt5Widgets-devel
BuildRequires: libQt5PrintSupport-devel
BuildRequires: libqt5-qtsvg-devel
BuildRequires: hicolor-icon-theme
BuildRequires: libpcre1
BuildRequires: texlive-fandol-fonts
Requires: texlive-fandol-fonts
%description
Mogan Editor is a structure editor delivered by the Xmacs Labs.
Mogan Editor is a libre software forked from GNU TeXmacs, the major differences are:
- Switched from GNU Guile 1.8.x to S7 Scheme
- Upgraded from Qt 4.8.x to Qt 5.15.x
- Via Help->Mogan, massive online TeXmacs documents provided by Xmacs Planet and TMML wiki
%prep
%setup -q -n mogan-%{version}
%build
%cmake
%cmake_build
%install
%cmake_install
ln -s /usr/share/fonts/texlive-fandol %{buildroot}%{_datadir}/Xmacs/fonts/truetype/fandol
%files
%{_bindir}/mogan
%doc %{_mandir}/man1/mogan.1.gz
%doc %{_datadir}/Xmacs/examples
%doc %{_datadir}/Xmacs/doc
%doc %{_datadir}/Xmacs/README
%doc %{_datadir}/Xmacs/LICENSE
%doc %{_datadir}/Xmacs/COPYING
%doc %{_datadir}/Xmacs/TEX_FONTS
%doc %{_datadir}/Xmacs/INSTALL
%doc %{_datadir}/Xmacs/texts
%{_prefix}/lib/xmacs
%dir %{_datadir}/Xmacs
%{_datadir}/Xmacs/bin
%{_datadir}/Xmacs/fonts
%{_datadir}/Xmacs/langs
%{_datadir}/Xmacs/packages
%{_datadir}/Xmacs/misc
%{_datadir}/Xmacs/plugins
%{_datadir}/Xmacs/progs
%{_datadir}/Xmacs/styles
%{_datadir}/icons/hicolor/*/*/Xmacs.png
%{_datadir}/icons/hicolor/scalable/mimetypes/text-x-mogan.svg
%{_datadir}/mime/packages/mogan.xml
%{_datadir}/pixmaps/Xmacs.xpm
%{_datadir}/applications/mogan.desktop
%changelog