-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwoeusb.spec
153 lines (69 loc) · 2.74 KB
/
woeusb.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
%global debug_package %{nil}
Name: WoeUSB
Version: 3.3.0
Release: 2%{?dist}
Summary: Windows USB installation media creator
License: GPLv3+
URL: https://github.com/slacka/WoeUSB
Source0: https://github.com/slacka/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Requires: grub2-pc-modules
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: wxGTK3-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: gettext
BuildRequires: desktop-file-utils
%description
A utility that enables you to create your own bootable Windows installation
USB storage device from an existing Windows Installation disc or disk image.
%prep
%autosetup
%build
# Replace the version placeholders
find . -type f -print0 | xargs -0 sed -i "s/@@WOEUSB_VERSION@@/%{version}/"
autoreconf -fiv
%configure
%make_build
%install
%make_install
sed -i '1!b;s/env bash/bash/' %{buildroot}%{_bindir}/woeusb
sed -i '1!b;s/env bash/bash/' %{buildroot}%{_datadir}/woeusb/data/listDvdDrive
sed -i '1!b;s/env bash/bash/' %{buildroot}%{_datadir}/woeusb/data/listUsb
# rpmgrill fails if the desktop icon is only in /usr/share/pixmaps (bug #1539633)
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
mv %{buildroot}%{_datadir}/pixmaps/woeusbgui-icon.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
desktop-file-validate %{buildroot}%{_datadir}/applications/woeusbgui.desktop
%files
%license COPYING
# CLI
%{_bindir}/woeusb
%{_mandir}/man1/woeusb.1.gz
# GUI
%{_mandir}/man1/woeusbgui.1.gz
%{_bindir}/woeusbgui
%{_datadir}/applications/woeusbgui.desktop
%{_datadir}/icons/hicolor/48x48/apps/woeusbgui-icon.png
%dir %{_datadir}/woeusb
%dir %{_datadir}/woeusb/data
%{_datadir}/woeusb/data/c501-logo.png
%{_datadir}/woeusb/data/icon.png
%{_datadir}/woeusb/data/listDvdDrive
%{_datadir}/woeusb/data/listUsb
%{_datadir}/woeusb/data/woeusb-logo.png
%dir %{_datadir}/woeusb/locale
%dir %{_datadir}/woeusb/locale/fr
%dir %{_datadir}/woeusb/locale/fr/LC_MESSAGES
%dir %{_datadir}/woeusb/locale/zh_TW
%dir %{_datadir}/woeusb/locale/zh_TW/LC_MESSAGES
%lang(fr) %{_datadir}/woeusb/locale/fr/LC_MESSAGES/woeusb.mo
%lang(fr) %{_datadir}/woeusb/locale/fr/LC_MESSAGES/wxstd.mo
%lang(zh) %{_datadir}/woeusb/locale/zh_TW/LC_MESSAGES/woeusb.mo
%changelog
* Wed Aug 21 2019 Josie Herzog 3.3.0
- This release features improvements to the WoeUSB GUI (finally!).
- The option of using the NTFS filesystem as the target filesystem has now being provided in the GUI.
* Sun Apr 14 2019 Josie Herzog 3.2.12
- Initial release
- Initial script provided by Matt Prahl <[email protected]>