Blame WoeUSB.spec

4584bf
%global debug_package   %{nil}
4584bf
4584bf
Name:           WoeUSB
b8dadf
Version:        2.2.2
4584bf
Release:        1%{?dist}
4584bf
Summary:        Windows USB installation media creator
4584bf
License:        GPLv3+
4584bf
URL:            https://github.com/slacka/WoeUSB
b8dadf
Source0:        https://github.com/slacka/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
4584bf
4584bf
BuildRequires:  gcc
4584bf
BuildRequires:  gcc-c++
4584bf
BuildRequires:  wxGTK3-devel
4584bf
BuildRequires:  autoconf
4584bf
BuildRequires:  automake
4584bf
BuildRequires:  libtool
4584bf
BuildRequires:  gettext
4584bf
BuildRequires:  desktop-file-utils
4584bf
4584bf
%description
4584bf
A utility that enables you to create your own bootable Windows installation
4584bf
USB storage device from an existing Windows Installation disc or disk image.
4584bf
4584bf
%prep
b8dadf
%autosetup
4584bf
4584bf
%build
4584bf
# Replace the version placeholders
4584bf
find . -type f -print0 | xargs -0 sed -i "s/@@WOEUSB_VERSION@@/%{version}/"
b8dadf
autoreconf -fiv
4584bf
%configure
4584bf
%make_build
4584bf
4584bf
%install
4584bf
%make_install
4584bf
sed -i '1!b;s/env bash/bash/' %{buildroot}%{_bindir}/woeusb
4584bf
sed -i '1!b;s/env bash/bash/' %{buildroot}%{_prefix}/share/woeusb/data/listDvdDrive
4584bf
sed -i '1!b;s/env bash/bash/' %{buildroot}%{_prefix}/share/woeusb/data/listUsb
4584bf
desktop-file-validate %{buildroot}/%{_datadir}/applications/woeusbgui.desktop
4584bf
4584bf
4584bf
%files
4584bf
%license COPYING
4584bf
# CLI
4584bf
%{_bindir}/woeusb
4584bf
%{_mandir}/man1/woeusb.1.gz
4584bf
# GUI
4584bf
%{_mandir}/man1/woeusbgui.1.gz
4584bf
%{_bindir}/woeusbgui
4584bf
%{_datadir}/applications/woeusbgui.desktop
4584bf
%{_datadir}/pixmaps/woeusbgui-icon.png
b8dadf
%{_datadir}/woeusb/data/woeusbgui-screenshot.png
4584bf
%dir %{_datadir}/woeusb
4584bf
%dir %{_datadir}/woeusb/data
4584bf
%{_datadir}/woeusb/data/c501-logo.png
4584bf
%{_datadir}/woeusb/data/icon.png
4584bf
%{_datadir}/woeusb/data/listDvdDrive
4584bf
%{_datadir}/woeusb/data/listUsb
4584bf
%{_datadir}/woeusb/data/woeusb-logo.png
4584bf
%dir %{_datadir}/woeusb/locale/fr/LC_MESSAGES
b8dadf
%lang(fr) %{_datadir}/woeusb/locale/fr/LC_MESSAGES/woeusb.mo
4584bf
%lang(fr) %{_datadir}/woeusb/locale/fr/LC_MESSAGES/wxstd.mo
b8dadf
%dir %{_datadir}/woeusb/locale/zh_TW/LC_MESSAGES
b8dadf
%lang(zh) %{_datadir}/woeusb/locale/zh_TW/LC_MESSAGES/woeusb.mo
b8dadf
4584bf
4584bf
4584bf
%changelog
b8dadf
* Mon Oct 9 2017 Matt Prahl <mprahl@redhat.com> - 2.2.2-1
b8dadf
- Update to v2.2.2
b8dadf
4584bf
* Wed Sep 20 2017 Matt Prahl <mprahl@redhat.com> - 2.1.3-1
4584bf
- Initial release