Blame WoeUSB.spec

4584bf4
%global debug_package   %{nil}
4584bf4
4584bf4
Name:           WoeUSB
6805286
Version:        3.3.1
481d8b4
Release:        3%{?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
6412dbe
ExcludeArch:    s390x
4584bf4
b595fdb
Requires:       grub2-pc-modules
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
6805286
%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
4d8a0dc
sed -i '1!b;s/env bash/bash/' %{buildroot}%{_datadir}/woeusb/data/listDvdDrive
4d8a0dc
sed -i '1!b;s/env bash/bash/' %{buildroot}%{_datadir}/woeusb/data/listUsb
fd85174
# rpmgrill fails if the desktop icon is only in /usr/share/pixmaps (bug #1539633)
fd85174
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
fd85174
mv %{buildroot}%{_datadir}/pixmaps/woeusbgui-icon.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
fd85174
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
fd85174
%{_datadir}/icons/hicolor/48x48/apps/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
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
481d8b4
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-3
481d8b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
481d8b4
6412dbe
* Mon Mar 16 2020 mprahl <mprahl@redhat.com> - 3.3.1-2
6412dbe
- Stop building for s390x due to RHBZ#1813540
6412dbe
6805286
* Tue Mar 10 2020 mprahl <mprahl@redhat.com> - 3.3.1-1
6805286
- new version
6805286
2b3321c
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-3
2b3321c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2b3321c
6f1a9f7
* Fri Dec 20 2019 mprahl <mprahl@redhat.com> - 3.3.0-2
6f1a9f7
- Apply a workaround for RHBZ#1783669
6f1a9f7
2eef012
* Wed Oct 16 2019 mprahl <mprahl@redhat.com> - 3.3.0-1
2eef012
- new version
2eef012
b41fe8e
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.12-3
b41fe8e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b41fe8e
01345ad
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.12-2
01345ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
01345ad
54c9cf9
* Wed Dec 26 2018 mprahl <mprahl@redhat.com> - 3.2.12-1
54c9cf9
- new version
54c9cf9
b595fdb
* Sat Sep 08 2018 mprahl <mprahl@redhat.com> - 3.2.2-1
b595fdb
- New version
b595fdb
- Add grub2-pc-modules as a requirement
b595fdb
56046ed
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-2
56046ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
56046ed
30eb142
* Tue May 29 2018 mprahl <mprahl@redhat.com> - 3.2.1-1
30eb142
- new version
30eb142
fd85174
* Mon Apr 2 2018 Matt Prahl <mprahl@redhat.com> - 3.1.5-2
fd85174
* Address rpmgrill failures
fd85174
adeaed2
* Mon Apr 2 2018 Matt Prahl <mprahl@redhat.com> - 3.1.5-1
adeaed2
- Update to v3.1.5
adeaed2
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