-
Notifications
You must be signed in to change notification settings - Fork 1
/
typst.spec
37 lines (29 loc) · 881 Bytes
/
typst.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Name: typst
Version: 0.11.1
Release: 1
Summary: A new markup-based typesetting system that is powerful and easy to learn.
License: Apache-2.0
URL: https://github.com/typst/typst
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
BuildRequires: rust-packaging >= 21
BuildRequires: openssl
BuildRequires: openssl-libs
BuildRequires: perl
BuildRequires: openssl-devel
BuildRequires: pkg-config
BuildRequires: perl-FindBin
%description
Typst is a new markup-based typesetting system that is designed to be as powerful as LaTeX while being much easier to learn and use.
%prep
%autosetup
%build
cargo build -p typst-cli --release --all-features
%install
install -d -m 0755 %{buildroot}%{_bindir}
install -m 0755 target/release/typst %{buildroot}%{_bindir}/%{name}
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%changelog
%autochangelog