2024-10-16 13:34:26 +03:00
Name : typst
Version : 0.11.1
Release : alt1
Summary : A new markup-based typesetting system that is powerful and easy to learn.
License : Apache-2.0
Group : Text tools
Url : https://github.com/typst/typst
Packager : Sergey Konev <konevsa@altlinux.org>
Source : %name-%version.tar
2024-10-16 14:15:33 +03:00
Source1 : %name-%version-vendor.tar
2024-10-16 16:24:53 +03:00
Source2 : Cargo.lock
2024-10-16 13:34:26 +03:00
BuildRequires(pre): rpm-build-rust
BuildRequires : /proc
BuildRequires : rust-cargo
BuildRequires : libssl-devel
%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. Typst has:
- Built-in markup for the most common formatting tasks
- Flexible functions for everything else
- A tightly integrated scripting system
- Math typesetting, bibliography management, and more
- Fast compile times thanks to incremental compilation
- Friendly error messages in case something goes wrong
%prep
2024-10-16 14:43:39 +03:00
%setup -a1
2024-10-16 16:24:53 +03:00
cp -f %SOURCE2 Cargo.lock
2024-10-16 13:34:26 +03:00
mkdir -p ./.cargo
2024-10-16 14:43:39 +03:00
cat >> ./.cargo/config.toml <<EOF
2024-10-16 13:34:26 +03:00
[source.crates-io]
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / t y p s t / t y p s t - d e v - a s s e t s ? t a g = v 0 . 1 1 . 1 " ]
git = " h t t p s : / / g i t h u b . c o m / t y p s t / t y p s t - d e v - a s s e t s "
tag = " v 0 . 1 1 . 1 "
replace-with = " v e n d o r e d - s o u r c e s "
[source.vendored-sources]
directory = " v e n d o r "
[build]
rustflags = [" - C o p t - l e v e l = 3 " , " - C d e b u g i n f o = 1 " ]
[profile.release]
strip = false
[profile.release.package." t y p s t - c l i " ]
strip = false
EOF
%build
%rust_build
%install
%rust_install
%check
%rust_test --workspace
%files
%doc *.md
2024-10-16 14:19:53 +03:00
%_bindir /*
%changelog
2024-10-16 14:28:29 +03:00
* Wed Oct 16 2024 Sergey Konev <konevsa@altlinux.org> 0.11.1-alt1
2024-10-16 14:19:53 +03:00
- 0.11.1