diff --git a/anda/marble-gtk/anda.hcl b/anda/lib/marble-gtk/anda.hcl similarity index 100% rename from anda/marble-gtk/anda.hcl rename to anda/lib/marble-gtk/anda.hcl diff --git a/anda/marble-gtk/marble-gtk.spec b/anda/lib/marble-gtk/marble-gtk.spec similarity index 100% rename from anda/marble-gtk/marble-gtk.spec rename to anda/lib/marble-gtk/marble-gtk.spec diff --git a/anda/poppler/anda.hcl b/anda/lib/poppler/anda.hcl similarity index 100% rename from anda/poppler/anda.hcl rename to anda/lib/poppler/anda.hcl diff --git a/anda/poppler/poppler.spec b/anda/lib/poppler/poppler.spec similarity index 100% rename from anda/poppler/poppler.spec rename to anda/lib/poppler/poppler.spec diff --git a/anda/tectonic/anda.hcl b/anda/tectonic/anda.hcl new file mode 100644 index 0000000000..bb1c7fab20 --- /dev/null +++ b/anda/tectonic/anda.hcl @@ -0,0 +1,6 @@ +project "pkg" { + rpm { + spec = "tectonic.spec" + sources = "." + } +} diff --git a/anda/tectonic/chkupdate.py b/anda/tectonic/chkupdate.py new file mode 100644 index 0000000000..7eaa8b71da --- /dev/null +++ b/anda/tectonic/chkupdate.py @@ -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}') diff --git a/anda/tectonic/tectonic.spec b/anda/tectonic/tectonic.spec new file mode 100644 index 0000000000..4d9c1e117d --- /dev/null +++ b/anda/tectonic/tectonic.spec @@ -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 +- Repackaged for Terra