mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-01 17:32:18 +00:00
135 lines
3.2 KiB
RPMSpec
135 lines
3.2 KiB
RPMSpec
# Generated by rust2rpm 27
|
|
%bcond check 1
|
|
|
|
%global crate bacon
|
|
%global features "sound,clipboard"
|
|
|
|
Name: rust-bacon
|
|
Version: 3.22.0
|
|
Release: 1%?dist
|
|
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
|