Spec and .gear/rules
This commit is contained in:
parent
3701f841fe
commit
7051698d4d
1
.gear/rules
Normal file
1
.gear/rules
Normal file
@ -0,0 +1 @@
|
||||
tar: v@version@:.
|
71
typst.spec
Normal file
71
typst.spec
Normal file
@ -0,0 +1,71 @@
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
mkdir -p ./.cargo
|
||||
cat >> ./.cargo/config <<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/*
|
Loading…
Reference in New Issue
Block a user