woeusb/woeusb.spec

72 lines
1.8 KiB
RPMSpec
Raw Normal View History

2019-02-03 09:56:28 +03:00
%define rname WoeUSB
%define debug_package %{nil}
Summary: Creates Windows USB stick installer from a Windows DVD or image
Name: woeusb
Version: 3.2.12
2019-02-17 23:27:15 +07:00
Release: 2
2019-02-03 09:56:28 +03:00
License: GPLv2
Group: System/Kernel and hardware
Url: https://github.com/slacka/WoeUSB
Source0: https://github.com/slacka/WoeUSB/archive/v%{version}.tar.gz?/%{rname}-%{version}.tar.gz
2019-02-17 23:27:15 +07:00
Source1: trad.mo
Patch0: russian-translated-shortcut-3.2.12.patch
2019-02-03 09:56:28 +03:00
BuildRequires: wxgtku3.0-devel
BuildRequires: imagemagick
BuildRequires: jpeg-devel
%description
This package contains two programs:
o woeusb: A command-line utility that enables you to create your own bootable
Windows installation USB storage device from an existing Windows
Installation disc or disk image
o woeusbgui: A GUI wrapper of woeusb based on WxWidgets
Supported images:
Windows Vista, Windows 7, Window 8.x, Windows 10. All languages and any version
(home, pro...) and Windows PE are supported.
Supported bootmodes:
Legacy/MBR-style/IBM PC compatible bootmode
Native UEFI booting is supported for Windows 7 and later images
(limited to the FAT filesystem as the target)
%files -f %{name}.lang
%{_bindir}/%{name}
%{_bindir}/%{name}gui
%{_mandir}/man1/%{name}.*
%{_mandir}/man1/%{name}gui.*
%{_datadir}/pixmaps/%{name}gui-icon.png
%{_datadir}/woeusb/data/*
%{_datadir}/woeusb/locale/fr/LC_MESSAGES/wxstd.mo
2019-02-17 23:27:15 +07:00
%{_datadir}/locale/ru/LC_MESSAGES/trad.mo
2019-02-03 09:56:28 +03:00
%{_datadir}/applications/%{name}gui.desktop
#---------------------------------------------------------------
%prep
%setup -qn %{rname}-%{version}
2019-02-17 23:27:15 +07:00
%patch0 -p1
2019-02-03 09:56:28 +03:00
%build
autoreconf -fiv
%configure2_5x \
--enable-shared \
--disable-static \
--disable-dependency-tracking
%make
%install
%makeinstall_std
2019-02-17 23:27:15 +07:00
#added russian translate
install -D %{SOURCE1} %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES/trad.mo
2019-02-03 09:56:28 +03:00
%find_lang %{name}