add: bacon (#7297)

* add: bacon

* remove unnecessary command

* add missing semicolon

---------

Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
metcya
2025-11-11 23:30:12 -06:00
committed by GitHub
parent bc09881bbe
commit 2477c31c2d
3 changed files with 140 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "rust-bacon.spec"
}
}
+134
View File
@@ -0,0 +1,134 @@
# Generated by rust2rpm 27
%bcond check 1
%global crate bacon
%global features "sound,clipboard"
Name: rust-bacon
Version: 3.19.0
Release: %autorelease
Summary: Background rust compiler
Packager: metcya <metcya@gmail.com>
License: AGPL-3.0
URL: https://crates.io/crates/bacon
Source: %{crates_source}
BuildRequires: anda-srpm-macros
BuildRequires: mold
BuildRequires: cargo-rpm-macros >= 24
BuildRequires: alsa-lib-devel
%global _description %{expand:
Background rust compiler.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
License: AGPL-3.0
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE
%license LICENSE.dependencies
%doc CHANGELOG.md
%doc CONTRIBUTING.md
%doc README.md
%{_bindir}/bacon
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE
%doc %{crate_instdir}/CHANGELOG.md
%doc %{crate_instdir}/CONTRIBUTING.md
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%package -n %{name}+default-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+default-devel %{_description}
This package contains library source intended for building other packages which
use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+arboard-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+arboard-devel %{_description}
This package contains library source intended for building other packages which
use the "arboard" feature of the "%{crate}" crate.
%files -n %{name}+arboard-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+clipboard-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+clipboard-devel %{_description}
This package contains library source intended for building other packages which
use the "clipboard" feature of the "%{crate}" crate.
%files -n %{name}+clipboard-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+rodio-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+rodio-devel %{_description}
This package contains library source intended for building other packages which
use the "rodio" feature of the "%{crate}" crate.
%files -n %{name}+rodio-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+sound-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+sound-devel %{_description}
This package contains library source intended for building other packages which
use the "sound" feature of the "%{crate}" crate.
%files -n %{name}+sound-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
%{cargo_prep_online}
%build
%{cargo_build -f %{features}}
%{cargo_license_online -f %{features}} > LICENSE.dependencies
%install
%{cargo_install}
%if %{with check}
%check
%{cargo_test}
%endif
%changelog
%autochangelog
+1
View File
@@ -0,0 +1 @@
rpm.version(crates("bacon"));