## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 28 %bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 %global crate coppwr Name: rust-coppwr Version: 1.7.1 Release: %autorelease Summary: Low level control GUI for PipeWire License: GPL-3.0 URL: https://github.com/dimtpap/coppwr Source: %{url}/releases/download/%{version}/%{crate}-%{version}-vendor.tar.gz BuildRequires: cargo-rpm-macros >= 26 BuildRequires: desktop-file-utils BuildRequires: pkgconfig(libpipewire-0.3) %global _description %{expand: coppwr displays and provides control over many aspects of PipeWire as directly as possible in an organized and visual way. It can help with debugging and diagnosing a PipeWire setup or with developing software that interacts with PipeWire.} %description %{_description} %package -n %{crate} Summary: %{summary} # FIXME: paste output of %%cargo_license_summary here License: # FIXME # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/coppwr %prep %autosetup -n %{crate}-%{version} -p1 mv .cargo/ ../ %cargo_prep -v vendor # cat config-vendor.toml >> .cargo/config.toml %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} %install %cargo_install desktop-file-install --dir=%{buildroot}%{_datadir}/applications assets/io.github.dimtpap.coppwr.desktop install -Dpm 0644 assets/io.github.dimtpap.coppwr.metainfo.xml %{buildroot}%{_metainfodir}/io.github.dimtpap.coppwr.metainfo.xml for size in 32 48 64 128 256 512; do install -Dpm 0644 assets/icon/${size}.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/io.github.dimtpap.coppwr.png done install -Dpm 0644 assets/icon/scalable.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/io.github.dimtpap.coppwr.svg %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Thu Dec 11 2025 John Doe - 1.7.1-1 - Uncommitted changes ## END: Generated by rpmautospec