77 lines
1.5 KiB
RPMSpec
77 lines
1.5 KiB
RPMSpec
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
|
|
Source1: %name-%version-vendor.tar
|
|
|
|
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
|
|
%setup -a1
|
|
|
|
mkdir -p ./.cargo
|
|
cat >> ./.cargo/config.toml <<EOF
|
|
[source.crates-io]
|
|
replace-with = "vendored-sources"
|
|
|
|
[source."git+https://github.com/typst/typst-dev-assets?tag=v0.11.1"]
|
|
git = "https://github.com/typst/typst-dev-assets"
|
|
tag = "v0.11.1"
|
|
replace-with = "vendored-sources"
|
|
|
|
[source.vendored-sources]
|
|
directory = "vendor"
|
|
|
|
[build]
|
|
rustflags = ["-Copt-level=3", "-Cdebuginfo=1"]
|
|
|
|
[profile.release]
|
|
strip = false
|
|
|
|
[profile.release.package."typst-cli"]
|
|
strip = false
|
|
|
|
EOF
|
|
|
|
|
|
%build
|
|
%rust_build
|
|
|
|
%install
|
|
%rust_install
|
|
|
|
%check
|
|
%rust_test --workspace
|
|
|
|
%files
|
|
%doc *.md
|
|
|
|
%_bindir/*
|
|
%changelog
|
|
* Wed Oct 16 2024 Sergey Konev <konevsa@altlinux.org> 0.11.1-alt1
|
|
- 0.11.1
|
|
|