File unetbootin.spec of Package unetbootin
#
# spec file for package unetbootin
#
# Copyright (c) 2013 SUSE LINUX Products 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/
#
%define rev 585
Name: unetbootin
Summary: Universal Netboot Installer
Version: 0.0.%{rev}
Release: 0
License: GPL-2.0+
Group: System/GUI/Other
Url: https://sourceforge.net/projects/unetbootin/
Source: %{name}-source-%{rev}.tar.gz
Patch0: %{name}-suse.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
BuildRequires: libqt4-devel
Requires: mtools
Requires: p7zip
Requires: syslinux
Requires: udev
Requires: util-linux
%description
UNetbootin allows for the installation of various Linux/BSD distributions
to a partition or USB drive, so it's no different from a standard install,
only it doesn't need a CD. It can create a dual-boot install,
or replace the existing OS entirely.
%prep
%setup -q -c -n %{name}
%patch0
# rpmlint: wrong-file-end-of-line-encoding
sed -i 's/\r$//' README.TXT
%build
lupdate unetbootin.pro
lrelease unetbootin.pro
qmake "DEFINES += NOSTATIC" "RESOURCES -= unetbootin.qrc"
make %{?_smp_mflags}
%install
install -D -m 0755 %{name} %{buildroot}%{_sbindir}/%{name}
install -d -m 0755 %{buildroot}%{_datadir}/%{name}
install -D -m 0644 unetbootin_*.qm %{buildroot}%{_datadir}/%{name}
%files
%defattr(-,root,root)
%doc README.TXT
%{_sbindir}/*
%{_datadir}/%{name}
%changelog