mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-28 14:28:28 +00:00
9bbe91be03
* fix(lint): prismlauncher* fluent-icon-theme * fix(lint): fix lints for 6 packages (#578) * fix(lint): fix rpmlint lints for youki package * fix(lint): fix rpmlint lints for xdg-desktop-portal-pantheon * fix(lint): fix rpmlint lints for wingpanel package * fix(lint): fix rpmlint lints for wingpanel-indicator-sound package * fix(lint): fix rpmlint lints for wingpanel-indicator-session package * fix(lint): fix rpmlint lints for wingpanel-indicator-power package * fix(lint): * * fix random typos * feat: revert anda/desktops * fix: armcord-bin authy blahaj * fix: ... anki authy discord~ aya~sound groovy kotlin libappimage qt5-pim * fix: ... qdjango moby-buildx nim-nightly nim system76-scheduler unity-scope-home kondo pop-launcher fuc graalvm vala-lint-nightly * fix: armcord-bin authy blahaj groovy * fix: ... libappimage moby0buildx nim-nightly nim system76-scheduler subatomic * fix blahaj * fix: kondo * fix: libappimage moby-buildx system76-scheduler nim-nightly * fix: subatomic * fix: subatomic * fix: nim * Update anki.spec Signed-off-by: madomado <wboy111@outlook.com> * fix: libappimage nim-nightly * fix: moby-buildx subatomic * fix: moby-buildx subatomic --------- Signed-off-by: madomado <wboy111@outlook.com> Co-authored-by: HTGAzureX1212 <39023054+HTG-YT@users.noreply.github.com>
77 lines
1.8 KiB
RPMSpec
77 lines
1.8 KiB
RPMSpec
# Generated by rust2rpm 22
|
|
%bcond_without check
|
|
%define debug_package %{nil}
|
|
|
|
%global crate anda
|
|
|
|
Name: rust-anda
|
|
Version: 0.1.17
|
|
Release: 1%{?dist}
|
|
Summary: Andaman Build toolchain
|
|
|
|
License: MIT
|
|
URL: https://crates.io/crates/anda
|
|
Source: https://github.com/FyraLabs/anda/archive/refs/tags/%{version}.tar.gz
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
BuildRequires: anda-srpm-macros
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: git-core
|
|
|
|
Requires: mock
|
|
Requires: rpm-build
|
|
Requires: createrepo_c
|
|
Requires: git-core
|
|
%global _description %{expand:
|
|
Andaman Build toolchain.}
|
|
|
|
%description %{_description}
|
|
|
|
%package -n %{crate}
|
|
Summary: %{summary}
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
%files -n %{crate}
|
|
%{_bindir}/anda
|
|
%{_mandir}/man1/anda*.1*
|
|
%config %{_sysconfdir}/bash_completion.d/anda.bash
|
|
%{_datadir}/zsh/site-functions/_anda
|
|
%{_datadir}/fish/completions/anda.fish
|
|
|
|
%prep
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
%cargo_prep_online
|
|
|
|
%build
|
|
%cargo_build
|
|
cargo run --release -p xtask -- manpage
|
|
cargo run --release -p xtask -- completion
|
|
|
|
%install
|
|
%cargo_install
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1/
|
|
|
|
# Install shell completions
|
|
|
|
COMPDIR="target/assets/completion"
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d/
|
|
cp -v $COMPDIR/bash/anda.bash %{buildroot}%{_sysconfdir}/bash_completion.d/anda.bash
|
|
mkdir -p %{buildroot}%{_datadir}/zsh/site-functions/
|
|
cp -v $COMPDIR/zsh/_anda %{buildroot}%{_datadir}/zsh/site-functions/_anda
|
|
mkdir -p %{buildroot}%{_datadir}/fish/completions/
|
|
cp -v $COMPDIR/fish/anda.fish %{buildroot}%{_datadir}/fish/completions/anda.fish
|
|
|
|
# install man pages
|
|
cp -v target/assets/man_pages/* %{buildroot}%{_mandir}/man1/
|
|
|
|
|
|
rm -rf %{buildroot}%{cargo_registry}
|
|
|
|
%changelog
|
|
%autochangelog
|