forked from openSUSE/imagewriter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmageia-imagewriter.spec
56 lines (44 loc) · 1.34 KB
/
mageia-imagewriter.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
%define rname imagewriter_mageia
%define oname imagewriter
Name: mageia-imagewriter
Version: 1.10
Release: %mkrel 1
Summary: Utility for writing raw disk images & hybrid ISOs to USB keys
License: GPLv2
Group: System/Configuration
Url: https://github.com/david-geiger/imagewriter
Source0: %{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: qt4-devel
BuildRequires: udisks2
%description
A graphical utility for writing raw disk images & hybrid ISOs to USB keys
Based on SUSE Studio Imagewriter
%prep
%setup -q
%apply_patches
# rename_icons(Otherwise conflict with the package usb-imagewriter)
for png in 128x128 64x64 32x32; do
mv ./icons/${png}/%{oname}.png ./icons/${png}/%{rname}.png
done
%build
qmake DEFINES=USEUDISKS2 PREFIX=%{buildroot}%{_prefix} imagewriter.pro
make CFLAGS="$RPM_OPT_FLAGS -DKIOSKHACK"
%install
%makeinstall_std
mkdir -p %{buildroot}%{_sbindir}
# rename_binary(Otherwise conflict with the package usb-imagewriter)
mv %{buildroot}%{_bindir}/%{oname} %{buildroot}%{_sbindir}/%{rname}
cp %{name}.desktop %{buildroot}%{_datadir}/applications
# Adjust for console-helper magic
pushd %{buildroot}%{_bindir}
ln -s consolehelper %{rname}
popd
%files
%doc COPYING
%{_bindir}/%{rname}
%{_sbindir}/%{rname}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{rname}.*
%changelog