Name: microtex Version: 0 Release: 1.1 Summary: A dynamic, cross-platform, and embeddable LaTeX rendering library # The core project is MIT, but resources/fonts are under different licenses. License: MIT and others URL: https://github.com/NanoMichael/MicroTeX # Points directly to a downloadable tarball of the master branch Source0: https://github.com/NanoMichael/MicroTeX/archive/refs/heads/master.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: gtkmm3.0-devel BuildRequires: gtksourceview3-devel BuildRequires: tinyxml2-devel BuildRequires: gtksourceviewmm3-devel %description It 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. %prep # Since GitHub's master tarball extracts to "MicroTeX-master", we must specify the directory name %autosetup -n MicroTeX-master %build # Disabling HAVE_LOG and GRAPHICS_DEBUG for a cleaner release build # We also skip RPATH so the manual install doesn't fail the check-rpaths test %cmake -DHAVE_LOG=OFF -DGRAPHICS_DEBUG=OFF -DCMAKE_SKIP_RPATH=ON %cmake_build %install # Upstream CMakeLists.txt has no install rules, so we must install manually install -D -p -m 0755 %{_vpath_builddir}/LaTeX %{buildroot}%{_bindir}/LaTeX install -D -p -m 0755 %{_vpath_builddir}/libLaTeX.so %{buildroot}%{_libdir}/libLaTeX.so %files %license LICENSE %doc README.md %{_bindir}/LaTeX %{_libdir}/libLaTeX.so %license LICENSE %doc README.md %{_bindir}/LaTeX # Note: Add %%{_libdir}/*.so and %%{_includedir}/* if the CMake install target exports the library/headers. %changelog * Sat Mar 21 2026 Your Name - 0-1.1 - Fixed Source0 URL to point to a valid tar archive - Escaped macros in comments - Added initial changelog section