typst/typst.spec
Sergey Konev b57e6284fb
Some checks failed
Continuous integration / Tests (ubuntu-latest) (push) Failing after 18s
Continuous integration / Check clippy, formatting, and documentation (push) Failing after 27s
Continuous integration / Check fuzzers (push) Failing after 23s
Continuous integration / Check mininum Rust version (push) Failing after 25s
Continuous integration / Tests (windows-latest) (push) Has been cancelled
Continuous integration / Tests (push) Has been cancelled
Better versioned tarball
2024-10-16 16:25:13 +03:00

79 lines
1.6 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
Source2: Cargo.lock
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
cp -f %SOURCE2 Cargo.lock
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