Merge branch 'w/tectonic'

This commit is contained in:
windowsboy111
2022-11-02 00:05:03 +08:00
7 changed files with 58 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
project "pkg" {
rpm {
spec = "tectonic.spec"
sources = "."
}
}
+19
View File
@@ -0,0 +1,19 @@
import os
import requests
import re
NAME = 'tectonic'
REPO = "tectonic-typesetting/tectonic"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK).json()['tag_name']
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
+33
View File
@@ -0,0 +1,33 @@
Name: tectonic
Version: 0.12.0
Release: %autorelease
Summary: A modernized, complete, self-contained TeX/LaTeX engine, powered by XeTeX and TeXLive
URL: https://github.com/tectonic-typesetting/tectonic
License: MIT
Source0: %{url}/archive/refs/tags/tectonic@%{version}.tar.gz
Requires: openssl harfbuzz-icu libpng freetype graphite2 zlib fontconfig
BuildRequires: cargo gcc gcc-c++ mold openssl-devel libpng-devel freetype graphite2-devel zlib-devel fontconfig-devel pkgconfig(icu-uc)
%description
Tectonic is a modernized, complete, self-contained TeX/LaTeX engine, powered by XeTeX and TeXLive.
%prep
%autosetup -n tectonic-tectonic-%{version}
# %build
# cargo build --features external-harfbuzz
%install
cargo install --path . --features external-harfbuzz
%files
%doc README.md
%license LICENSE
%changelog
* Tue Nov 1 2022 windowsboy111 <windowsboy111@fyralabs.com>
- Repackaged for Terra