File popsicle.spec of Package popsicle
#
# spec file for package popsicle
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global rustflags '-Clink-arg=-Wl,-z,relro,-z,now'
Name: popsicle
Version: 1.3.3
Release: 0
Summary: Multiple USB File Flasher
License: MIT
URL: https://github.com/pop-os/popsicle
Source0: %{name}-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: clang-devel
BuildRequires: help2man
BuildRequires: pkgconfig
BuildRequires: cargo-packaging
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(gtk+-3.0)
%description
Popsicle is a Linux utility for flashing multiple USB devices in parallel, written in Rust.
%prep
%autosetup -a1
%build
%make_build
%install
%make_install \
default_prefix=%{_prefix}
strip --strip-all %{buildroot}%{_bindir}/*
%files
%license LICENSE
%doc README.md
%{_bindir}/popsicle
%{_bindir}/popsicle-gtk
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/
%{_datadir}/icons/hicolor/*/*/*
%{_mandir}/man1/popsicle.1%{?ext_man}
%{_datadir}/metainfo/*.appdata.xml
%changelog