typst/typst.spec

79 lines
1.6 KiB
RPMSpec
Raw Permalink Normal View History

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 = "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
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