%global commit 0054ae4cc15ea715148e65d4390fa774c37bb0aa %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: mediawriter Version: 0 Release: 0.1git%{shortcommit}%{?dist} Summary: Fedora Media Writer License: GPLv2+ URL: https://github.com/MartinBriza/MediaWriter #Source0: https://github.com/MartinBriza/MediaWriter/archive/#{version}.tar.gz Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires: qt5-qtbase-devel BuildRequires: gettext #BuildRequires: libappstream-glib BuildRequires: gcc-c++ Requires: qt5-qtbase%{?_isa} Requires: qt5-qtquickcontrols%{?_isa} >= 5.3.0 #f24/23 Requires: udisks2 Requires: storaged%{?_isa} Requires: polkit%{?_isa} %description A tool to write images of Fedora media to portable drives like flash drives or memory cards. %prep %autosetup -p1 -n MediaWriter-%{commit} mkdir %{_target_platform} %build pushd %{_target_platform} %{qmake_qt5} PREFIX=%{_prefix} .. popd %make_build -C %{_target_platform} %install make install INSTALL_ROOT=%{buildroot} -C %{_target_platform} %files %{_bindir}/%{name} %{_libexecdir}/%{name} %changelog * Tue Aug 2 2016 Martin Bříza 0-0.1git0054ae4 - Initial release