# Generated by rust2rpm 25 %bcond_without check # prevent library files from being installed %global __cargo_is_lib() 0 %global crate filepicker Name: vdhcoapp-filepicker Version: 1.0.1 Release: 1.20240314git9a07cff%{?dist} Summary: File picker helper for vhdcoapp SourceLicense: GPLv2 License: GPLv2 URL: https://github.com/paulrouget/static-filepicker Source0: filepicker-1.0.1.tar.xz Source1: filepicker-1.0.1-vendor.tar.xz Patch0: 0001-cargo.toml-bump-version-to-match-tag.patch BuildRequires: cargo-rpm-macros >= 25 BuildRequires: gtk3-devel %description File picker helper program for vdhcoapp (companion app for Video DownloadHelper browser extension.). Required by Video DownloadHelper and its companion app when configured to use the OS-native file picker instead of browser-based one. %prep %autosetup -n %{crate}-%{version} -p1 -a1 %cargo_prep -v vendor %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} %install %cargo_install # Rename executable mv %{buildroot}/%{_bindir}/filepicker %{buildroot}/%{_bindir}/vdhcoapp-filepicker %if %{with check} %check %cargo_test %endif %files %license LICENSE.txt %license LICENSE.dependencies %license cargo-vendor.txt %{_bindir}/vdhcoapp-filepicker %changelog * Thu Mar 14 2024 Rok Mandeljc - 1.0.1-1.20240314git9a07cff - Initial packaging attempt