File isoimagewriter.spec of Package isoimagewriter
#
# spec file for package isoimagewriter
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%define kf5_version 5.56.0
Name: isoimagewriter
Version: 0.8
Release: 0
Summary: ROSA Image Writer
License: GPL-3.0-or-later
Group: System/X11/Utilities
URL: https://github.com/KDE/isoimagewriter
Source0: https://download.kde.org/unstable/%{name}/%{version}/%{name}-%{version}.tar.xz
Source1: https://download.kde.org/unstable/%{name}/%{version}/%{name}-%{version}.tar.xz.sig
Source2: %{name}.keyring
Source99: %{name}-rpmlintrc
BuildRequires: cmake
BuildRequires: cmake(KF5Auth) >= %{kf5_version}
BuildRequires: cmake(KF5CoreAddons) >= %{kf5_version}
BuildRequires: cmake(KF5I18n) >= %{kf5_version}
BuildRequires: cmake(KF5IconThemes) >= %{kf5_version}
BuildRequires: cmake(KF5WidgetsAddons) >= %{kf5_version}
BuildRequires: extra-cmake-modules >= 1.1.0
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: kf5-filesystem
BuildRequires: libqgpgme-devel >= 1.8.0
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core) >= 5.4.0
BuildRequires: pkgconfig(Qt5Gui) >= 5.4.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.4.0
BuildRequires: pkgconfig(libudev)
BuildRequires: update-desktop-files
Recommends: %{name}-lang
%description
This tool is designed for creating bootable USB flash disks with ROSA Linux
installator by dumping the distribution ISO image file contents to the
flash disk. It might also work the same way for other Linux (or non-Linux)
distributions, but there is no guarantee since the image must be prepared
for such use.
%lang_package
%prep
%setup -q
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%fdupes -s %{buildroot}%{_datadir}
%suse_update_desktop_file -r org.kde.%{name} KDE System SystemSetup
%find_lang %{name}
%files
%doc doc/README.html
%{_kf5_bindir}/%{name}
%{_kf5_applicationsdir}/org.kde.%{name}.desktop
%dir %{_kf5_appstreamdir}
%{_kf5_appstreamdir}/org.kde.%{name}.appdata.xml
%dir %{_kf5_libdir}/libexec
%dir %{_kf5_libdir}/libexec/kauth
%{_kf5_libdir}/libexec/kauth/%{name}_helper
%{_kf5_sharedir}/dbus-1/system.d/org.kde.%{name}.conf
%{_kf5_sharedir}/dbus-1/system-services/org.kde.%{name}.service
%{_kf5_sharedir}/polkit-1/actions/org.kde.%{name}.policy
%dir %{_kf5_sharedir}/%{name}
%{_kf5_sharedir}/%{name}/*-signing-key.gpg
%license COPYING
%files lang -f %{name}.lang
%changelog