LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File imagewriter.spec of Package imagewriter (Project home:favogt:imgwriter)

#
# spec file for package imagewriter
#
# Copyright (c) 2017 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 http://bugs.opensuse.org/
#

Name:           imagewriter
Version:        0.9
Release:        0
Summary:        Write openSUSE to media
License:        GPL-3.0
Group:          Hardware/Other
Url:            https://gitlab.com/Vogtinator/imagewriter
Source:         %{name}-%{version}.tar.xz
BuildRequires:  hicolor-icon-theme
Requires:       hicolor-icon-theme
%if  0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires:  qt5-qtbase-devel >= 5.6
BuildRequires:  qt5-qtdeclarative-devel
Requires:       qt5-qtquickcontrols
%else
BuildRequires:  libqt5-qtbase-devel >= 5.6
BuildRequires:  libqt5-qtdeclarative-devel
Requires:       libqt5-qtquickcontrols
%endif
Requires:       udisks2
Requires:       cdrecord
Requires:       polkit

%description
The openSUSE Image Writer is a tool that automates downloading and writing
of openSUSE images to media.

%prep
%setup -q

%build
qmake-qt5 \
  QMAKE_CXXFLAGS="%{optflags}" \
  QMAKE_CFLAGS="%{optflags}" \
  QMAKE_LFLAGS="-Wl,--as-needed -Wl,--no-undefined" \
  CONFIG+=force_debug_info
make %{?_smp_mflags}

%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install INSTALL_ROOT=%{buildroot}

%files
%{_bindir}/imagewriter
%{_datadir}/icons/hicolor/128x128/apps/org.opensuse.imgwriter.png
%{_datadir}/applications/org.opensuse.imgwriter.desktop

%changelog