dba90bd
%global uuid    com.github.fabiocolacio.%{name}
d762a52
%global vergit  2023.05.02
d762a52
d762a52
# Git submodules
d762a52
#   * scidown
d762a52
%global submodule1              scidown
d762a52
%global submodule1_commit       a7b7f063de4f272ef0ec12d00b98470888e8cb32
d762a52
%global submodule1_shortcommit  %(c=%{submodule1_commit}; echo ${c:0:7})
d762a52
#   * charter
d762a52
%global submodule2              charter
d762a52
%global submodule2_commit       a25dee1214ea9ba5882325066555cb813efbb489
d762a52
%global submodule2_shortcommit  %(c=%{submodule2_commit}; echo ${c:0:7})
d762a52
#   * tinyexpr
d762a52
%global submodule3              tinyexpr
d762a52
%global submodule3_commit       9476568b69de4c384903f1d5f255907b92592f45
d762a52
%global submodule3_shortcommit  %(c=%{submodule3_commit}; echo ${c:0:7})
dba90bd
dba90bd
Name:           marker
dba90bd
Version:        0.0.%{vergit}
9a8ee02
Release:        %autorelease
dba90bd
Summary:        GTK 3 markdown editor
dba90bd
dba90bd
# The entire source code is GPLv3+ except:
dba90bd
#
dba90bd
# Apache License (v2.0)
dba90bd
# ------------------------------------
dba90bd
# data/scripts/mathjax/
dba90bd
#
dba90bd
# Creative Commons Attribution-ShareAlike Public License (v3.0)
dba90bd
# ----------------------------------------------------------------------------
dba90bd
# help/C/legal.xml
dba90bd
#
dba90bd
# Creative Commons Attribution-ShareAlike Public License (v4.0)
dba90bd
# ----------------------------------------------------------------------------
dba90bd
# data/scripts/highlight/styles/
dba90bd
#
dba90bd
# Creative Commons CC0 Public License (v1.0)
dba90bd
# ---------------------------------------------------------
dba90bd
# data/scripts/highlight/styles/hopscotch.css
dba90bd
#
dba90bd
# zlib/libpng license
dba90bd
# ----------------------------------
dba90bd
# src/scidown/src/charter/src/tinyexpr/README.md
dba90bd
#
dba90bd
# BSD 3-clause "New" or "Revised" License
dba90bd
# ---------------------------------------
dba90bd
# data/scripts/highlight/LICENSE
dba90bd
#
dba90bd
# Creative Commons CC0 Public License (v5)
dba90bd
# ----------------------------------------
dba90bd
# data/scripts/mathjax/fonts/HTML-CSS/TeX/png/SansSerif/Regular/336/0035.png
dba90bd
#
dba90bd
# Expat License
dba90bd
# -------------
dba90bd
# data/scripts/highlight/styles/dracula.css
dba90bd
# data/scripts/mathjax/extensions/a11y/wgxpath.install.js
dba90bd
#
dba90bd
# ISC License
dba90bd
# -----------
dba90bd
# src/scidown/LICENSE
dba90bd
#
dba90bd
# SIL Open Font License
dba90bd
# ---------------------
dba90bd
# data/scripts/mathjax/fonts/HTML-CSS/STIX-Web/
dba90bd
#
dba90bd
# SIL Open Font License (v1.1)
dba90bd
# ----------------------------
dba90bd
# data/scripts/katex/fonts/
dba90bd
# data/scripts/mathjax/fonts/HTML-CSS/Asana-Math/
dba90bd
# data/scripts/mathjax/fonts/HTML-CSS/Neo-Euler/
dba90bd
# data/scripts/mathjax/fonts/HTML-CSS/STIX-Web/
dba90bd
# data/scripts/mathjax/fonts/HTML-CSS/TeX/
dba90bd
#
dba90bd
License:        GPLv3+ and GPLv2 and LGPLv3+ and CC-BY-SA and ISC and BSD and ASL 2.0 and MIT and CC0 and OFL and zlib
dba90bd
URL:            https://github.com/fabiocolacio/Marker
d762a52
Source0:        %{url}/archive/%{vergit}/%{name}-%{vergit}.tar.gz
d762a52
Source1:        https://github.com/Mandarancio/%{submodule1}/archive/%{submodule1_commit}/%{submodule1}-%{submodule1_shortcommit}.tar.gz
d762a52
Source2:        https://github.com/Mandarancio/%{submodule2}/archive/%{submodule2_commit}/%{submodule2}-%{submodule2_shortcommit}.tar.gz
d762a52
Source3:        https://github.com/codeplea/%{submodule3}/archive/%{submodule3_commit}/%{submodule3}-%{submodule3_shortcommit}.tar.gz
dba90bd
dba90bd
BuildRequires:  desktop-file-utils
dba90bd
BuildRequires:  gcc
dba90bd
BuildRequires:  intltool
4d75bc4
BuildRequires:  itstool
dba90bd
BuildRequires:  libappstream-glib
dba90bd
BuildRequires:  meson
4d75bc4
dba90bd
BuildRequires:  pkgconfig(gtk+-3.0)
dba90bd
BuildRequires:  pkgconfig(gtksourceview-3.0)
dba90bd
BuildRequires:  pkgconfig(gtkspell3-3.0)
d762a52
BuildRequires:  pkgconfig(webkit2gtk-4.1)
759d94e
dba90bd
Requires:       %{name}-data = %{version}-%{release}
dba90bd
Requires:       hicolor-icon-theme
759d94e
dba90bd
Provides:       bundled(highlight-js) = 9.12.0
dba90bd
Provides:       bundled(katex)
dba90bd
Provides:       bundled(mathjax) = 2.7.4
dba90bd
Provides:       bundled(scidown) = 0.1.0~a7b7f06
dba90bd
dba90bd
# Fonts
dba90bd
Provides:       bundled(asana-math-fonts)
dba90bd
Provides:       bundled(gyre-pagella-fonts)
dba90bd
Provides:       bundled(gyre-termes-fonts)
dba90bd
Provides:       bundled(katex-fonts)
dba90bd
Provides:       bundled(latin-modern-fonts)
dba90bd
Provides:       bundled(neo-euler-fonts)
dba90bd
Provides:       bundled(stix-web-fonts)
dba90bd
Provides:       bundled(tex-fonts)
dba90bd
dba90bd
%description
dba90bd
Marker is a markdown editor for Linux made with Gtk+-3.0.
dba90bd
dba90bd
dba90bd
%package        data
dba90bd
Summary:        Data files for %{name}
dba90bd
BuildArch:      noarch
dba90bd
dba90bd
Requires:       %{name} = %{version}-%{release}
dba90bd
dba90bd
%description    data
dba90bd
Data files for %{name}.
dba90bd
dba90bd
dba90bd
%prep
d762a52
%autosetup -n Marker-%{vergit} -p1
d762a52
%autosetup -n Marker-%{vergit} -D -T -a1
d762a52
%autosetup -n Marker-%{vergit} -D -T -a2
d762a52
%autosetup -n Marker-%{vergit} -D -T -a3
d762a52
d762a52
mv %{submodule1}-%{submodule1_commit}/* src/%{submodule1}/
d762a52
mv %{submodule2}-%{submodule2_commit}/* src/%{submodule1}/src/%{submodule2}/
d762a52
mv %{submodule3}-%{submodule3_commit}/* src/%{submodule1}/src/%{submodule2}/src/%{submodule3}/
dba90bd
dba90bd
dba90bd
%build
dba90bd
%meson
dba90bd
%meson_build
dba90bd
dba90bd
dba90bd
%install
dba90bd
%meson_install
dba90bd
%find_lang %{name}
dba90bd
%find_lang Marker --with-gnome
dba90bd
rm %{buildroot}%{_datadir}/%{uuid}/icons/hicolor/generate.sh
dba90bd
dba90bd
dba90bd
%check
dfc8c24
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml
dba90bd
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
dba90bd
dba90bd
dba90bd
%files -f %{name}.lang -f Marker.lang
dba90bd
%license LICENSE.md
dba90bd
%doc README.md CONTRIBUTING.md example.md
dba90bd
%{_bindir}/%{name}
d762a52
# FIXME
d762a52
# Still incorrect place for libraries. Need to report upstream. Continuation of
d762a52
# https://github.com/fabiocolacio/Marker/issues/293
d762a52
%{_prefix}/lib/Marker.extensions/*.so
dba90bd
dba90bd
%{_datadir}/applications/*.desktop
dba90bd
%{_datadir}/glib-2.0/schemas/*.gschema.xml
dba90bd
%{_datadir}/icons/hicolor/*/*/*.svg
dba90bd
%{_metainfodir}/*.xml
dba90bd
dba90bd
%files data
dba90bd
%{_datadir}/%{uuid}/
dba90bd
dba90bd
dba90bd
%changelog
9a8ee02
%autochangelog