File clatexmath.spec of Package clatexmath
#
# spec file for package clatexmath
#
# Copyright (c) 2021 Florian "sp1rit" <sp1ritCS@protonmail.com>
# Copyright (c) 2020 SUSE LLC
#
# 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: clatexmath
Version: 0
Release: 0
Summary: A dynamic, cross-platform, and embeddable LaTeX rendering library
Group: Development/Libraries/C and C++
License: MIT
URL: https://github.com/NanoMichael/cLaTeXMath
Source0: %{name}-%{version}.tar.xz
Source99: LICENSE
BuildRequires: meson gcc-c++ pkgconfig
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(gtkmm-3.0)
BuildRequires: pkgconfig(gtksourceviewmm-3.0)
BuildRequires: pkgconfig(tinyxml2)
%global soversion 0
%global libname lib%{name}%{soversion}
%description
CLaTeXMath is a dynamic, cross-platform, and embeddable LaTeX rendering library. Its main purpose is to display mathematical formulas written in LaTeX. It can be embedded in applications on various platforms (Android, iOS, Windows, Linux GTK, Qt...).
%package devel
Summary: Development files for %{name}
Group: Development/Languages/C and C++
Requires: %{libname} = %{version}
%package -n %{libname}
Summary: Shared Library for %{name}
Group: System/Libraries
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%description -n %{libname}
CLaTeXMath is a dynamic, cross-platform, and embeddable LaTeX rendering library. Its main purpose is to display mathematical formulas written in LaTeX. It can be embedded in applications on various platforms (Android, iOS, Windows, Linux GTK, Qt...).
%prep
%autosetup -p1
cp %{_sourcedir}/LICENSE .
%build
%meson
%meson_build
%install
%meson_install
rm %{buildroot}%{_datadir}/%{name}/fonts/licences/{OFL,Knuth_License,License_for_dsrom}.txt
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%license LICENSE
%license res/fonts/licences/OFL.txt
%license res/fonts/licences/Knuth_License.txt
%license res/fonts/licences/License_for_dsrom.txt
%{_libdir}/lib%{name}.so.%{soversion}*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/.clatexmath-res_root
%{_datadir}/%{name}/**
%files devel
%doc README.md
%doc readme/
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/**
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/lib%{name}.so
%changelog