|
|
4584bf4 |
%global debug_package %{nil}
|
|
|
4584bf4 |
|
|
|
4584bf4 |
Name: WoeUSB
|
|
|
4584bf4 |
Version: 2.1.3
|
|
|
4584bf4 |
Release: 1%{?dist}
|
|
|
4584bf4 |
Summary: Windows USB installation media creator
|
|
|
4584bf4 |
License: GPLv3+
|
|
|
4584bf4 |
URL: https://github.com/slacka/WoeUSB
|
|
|
4584bf4 |
Source0: https://github.com/slacka/WoeUSB/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
4584bf4 |
Patch0: 0001-Use-device-instead-of-format-in-the-GUI-to-avoid-a-w.patch
|
|
|
4584bf4 |
Patch1: 0002-Fix-small-grammar-errors.patch
|
|
|
4584bf4 |
|
|
|
4584bf4 |
BuildRequires: gcc
|
|
|
4584bf4 |
BuildRequires: gcc-c++
|
|
|
4584bf4 |
BuildRequires: wxGTK3-devel
|
|
|
4584bf4 |
BuildRequires: autoconf
|
|
|
4584bf4 |
BuildRequires: automake
|
|
|
4584bf4 |
BuildRequires: libtool
|
|
|
4584bf4 |
BuildRequires: gettext
|
|
|
4584bf4 |
BuildRequires: desktop-file-utils
|
|
|
4584bf4 |
# Used for applying the patches
|
|
|
4584bf4 |
BuildRequires: git
|
|
|
4584bf4 |
# This requirement isn't automatically getting picked up
|
|
|
4584bf4 |
Requires: wxGTK3-webview
|
|
|
4584bf4 |
|
|
|
4584bf4 |
%description
|
|
|
4584bf4 |
A utility that enables you to create your own bootable Windows installation
|
|
|
4584bf4 |
USB storage device from an existing Windows Installation disc or disk image.
|
|
|
4584bf4 |
|
|
|
4584bf4 |
%prep
|
|
|
4584bf4 |
%autosetup -S git
|
|
|
4584bf4 |
|
|
|
4584bf4 |
|
|
|
4584bf4 |
%build
|
|
|
4584bf4 |
# Resolves some compilation errors
|
|
|
4584bf4 |
export LDFLAGS="-Wl,-as-needed"
|
|
|
4584bf4 |
# Replace the version placeholders
|
|
|
4584bf4 |
find . -type f -print0 | xargs -0 sed -i "s/@@WOEUSB_VERSION@@/%{version}/"
|
|
|
4584bf4 |
%configure
|
|
|
4584bf4 |
%make_build
|
|
|
4584bf4 |
|
|
|
4584bf4 |
%install
|
|
|
4584bf4 |
%make_install
|
|
|
4584bf4 |
sed -i '1!b;s/env bash/bash/' %{buildroot}%{_bindir}/woeusb
|
|
|
4584bf4 |
sed -i '1!b;s/env bash/bash/' %{buildroot}%{_prefix}/share/woeusb/data/listDvdDrive
|
|
|
4584bf4 |
sed -i '1!b;s/env bash/bash/' %{buildroot}%{_prefix}/share/woeusb/data/listUsb
|
|
|
4584bf4 |
desktop-file-validate %{buildroot}/%{_datadir}/applications/woeusbgui.desktop
|
|
|
4584bf4 |
|
|
|
4584bf4 |
|
|
|
4584bf4 |
%files
|
|
|
4584bf4 |
%license COPYING
|
|
|
4584bf4 |
# CLI
|
|
|
4584bf4 |
%{_bindir}/woeusb
|
|
|
4584bf4 |
%{_mandir}/man1/woeusb.1.gz
|
|
|
4584bf4 |
# GUI
|
|
|
4584bf4 |
%{_mandir}/man1/woeusbgui.1.gz
|
|
|
4584bf4 |
%{_bindir}/woeusbgui
|
|
|
4584bf4 |
%{_datadir}/applications/woeusbgui.desktop
|
|
|
4584bf4 |
%{_datadir}/pixmaps/woeusbgui-icon.png
|
|
|
4584bf4 |
%dir %{_datadir}/woeusb
|
|
|
4584bf4 |
%dir %{_datadir}/woeusb/data
|
|
|
4584bf4 |
%{_datadir}/woeusb/data/c501-logo.png
|
|
|
4584bf4 |
%{_datadir}/woeusb/data/icon.png
|
|
|
4584bf4 |
%{_datadir}/woeusb/data/listDvdDrive
|
|
|
4584bf4 |
%{_datadir}/woeusb/data/listUsb
|
|
|
4584bf4 |
%{_datadir}/woeusb/data/woeusb-logo.png
|
|
|
4584bf4 |
%dir %{_datadir}/woeusb/locale/fr/LC_MESSAGES
|
|
|
4584bf4 |
%lang(fr) %{_datadir}/woeusb/locale/fr/LC_MESSAGES/trad.mo
|
|
|
4584bf4 |
%lang(fr) %{_datadir}/woeusb/locale/fr/LC_MESSAGES/wxstd.mo
|
|
|
4584bf4 |
|
|
|
4584bf4 |
|
|
|
4584bf4 |
%changelog
|
|
|
4584bf4 |
* Wed Sep 20 2017 Matt Prahl <mprahl@redhat.com> - 2.1.3-1
|
|
|
4584bf4 |
- Initial release
|