mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-04-28 06:21:23 +00:00
specify BuildRequires and %install manually in pwsp.spec
This commit is contained in:
@@ -1,19 +1,24 @@
|
|||||||
|
# Generated by rust2rpm 27
|
||||||
%bcond check 1
|
%bcond check 1
|
||||||
|
|
||||||
# prevent library files from being installed
|
# prevent library files from being installed
|
||||||
%global cargo_install_lib 0
|
%global cargo_install_lib 0
|
||||||
|
|
||||||
Name: pwsp
|
Name: pwsp
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: Lets you play audio files through your microphone
|
Summary: Lets you play audio files through your microphone
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
|
|
||||||
URL: https://github.com/arabianq/pipewire-soundpad
|
URL: https://github.com/arabianq/pipewire-soundpad
|
||||||
Source: https://github.com/arabianq/pipewire-soundpad/archive/refs/tags/%{version}.tar.gz
|
Source: https://github.com/arabianq/pipewire-soundpad/archive/refs/tags/%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: cargo-rpm-macros >= 26
|
BuildRequires: rust
|
||||||
|
BuildRequires: cargo
|
||||||
|
BuildRequires: pipewire-devel
|
||||||
|
BuildRequires: alsa-lib-devel
|
||||||
|
BuildRequires: clang-devel
|
||||||
|
|
||||||
%global _description %{expand:
|
%global _description %{expand:
|
||||||
PWSP lets you play audio files through your microphone. Has both CLI and
|
PWSP lets you play audio files through your microphone. Has both CLI and
|
||||||
@@ -23,27 +28,22 @@ GUI clients.}
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n pipewire-soundpad-%{version} -p1
|
%autosetup -n pipewire-soundpad-%{version} -p1
|
||||||
%cargo_prep
|
|
||||||
|
|
||||||
%generate_buildrequires
|
|
||||||
%cargo_generate_buildrequires
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cargo_build
|
cargo build --release --locked
|
||||||
%{cargo_license_summary}
|
|
||||||
%{cargo_license} > LICENSE.dependencies
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%cargo_install
|
install -Dm755 target/release/pwsp-cli %{buildroot}%{_bindir}/pwsp-cli
|
||||||
|
install -Dm755 target/release/pwsp-daemon %{buildroot}%{_bindir}/pwsp-daemon
|
||||||
|
install -Dm755 target/release/pwsp-gui %{buildroot}%{_bindir}/pwsp-gui
|
||||||
|
|
||||||
%if %{with check}
|
%if %{with check}
|
||||||
%check
|
%check
|
||||||
%cargo_test
|
cargo test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%license LICENSE.dependencies
|
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{_bindir}/pwsp-cli
|
%{_bindir}/pwsp-cli
|
||||||
%{_bindir}/pwsp-daemon
|
%{_bindir}/pwsp-daemon
|
||||||
|
|||||||
Reference in New Issue
Block a user