4584bf4
%global debug_package   %{nil}
4584bf4
4584bf4
Name:           WoeUSB
b8dadf4
Version:        2.2.2
5dda8c4
Release:        2%{?dist}
4584bf4
Summary:        Windows USB installation media creator
4584bf4
License:        GPLv3+
4584bf4
URL:            https://github.com/slacka/WoeUSB
b8dadf4
Source0:        https://github.com/slacka/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
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
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
b8dadf4
%autosetup
4584bf4
4584bf4
%build
4584bf4
# Replace the version placeholders
4584bf4
find . -type f -print0 | xargs -0 sed -i "s/@@WOEUSB_VERSION@@/%{version}/"
b8dadf4
autoreconf -fiv
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
b8dadf4
%{_datadir}/woeusb/data/woeusbgui-screenshot.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
0a027ab
%dir %{_datadir}/woeusb/locale
0a027ab
%dir %{_datadir}/woeusb/locale/fr
4584bf4
%dir %{_datadir}/woeusb/locale/fr/LC_MESSAGES
0a027ab
%dir %{_datadir}/woeusb/locale/zh_TW
0a027ab
%dir %{_datadir}/woeusb/locale/zh_TW/LC_MESSAGES
b8dadf4
%lang(fr) %{_datadir}/woeusb/locale/fr/LC_MESSAGES/woeusb.mo
4584bf4
%lang(fr) %{_datadir}/woeusb/locale/fr/LC_MESSAGES/wxstd.mo
b8dadf4
%lang(zh) %{_datadir}/woeusb/locale/zh_TW/LC_MESSAGES/woeusb.mo
b8dadf4
4584bf4
4584bf4
%changelog
5dda8c4
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-2
5dda8c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5dda8c4
b8dadf4
* Mon Oct 9 2017 Matt Prahl <mprahl@redhat.com> - 2.2.2-1
b8dadf4
- Update to v2.2.2
b8dadf4
4584bf4
* Wed Sep 20 2017 Matt Prahl <mprahl@redhat.com> - 2.1.3-1
4584bf4
- Initial release