add: WoeUSB-ng (#2561) (#2574)

(cherry picked from commit 98bd6f82a0)

Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2024-12-04 21:51:39 -08:00
committed by GitHub
parent 07610e64cf
commit 2f6b46664e
3 changed files with 56 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
Name: WoeUSB-ng
Version: 0.2.12
Release: 1%?dist
Summary: Simple tool that enable you to create your own usb stick with Windows installer
License: GPL-3.0-only
Requires: parted dosfstools ntfsprogs p7zip p7zip-plugins xdg-utils grub2-tools
URL: https://github.com/WoeUSB/WoeUSB-ng
Source: https://github.com/WoeUSB/WoeUSB-ng/archive/refs/tags/v%version.tar.gz
Patch0: https://patch-diff.githubusercontent.com/raw/WoeUSB/WoeUSB-ng/pull/79.patch
BuildArch: noarch
BuildRequires: python3-devel python3-installer
%global _description %{expand:
WoeUSB-ng is a simple tool that enable you to create your own usb stick windows installer from an iso image or a real DVD. This is a rewrite of original WoeUSB.}
%description %_description
%prep
%autosetup -p1
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files WoeUSB
install -Dpm644 miscellaneous/WoeUSB-ng.desktop %buildroot%_datadir/applications/WoeUSB-ng.desktop
install -Dpm644 miscellaneous/com.github.woeusb.woeusb-ng.policy %buildroot%_datadir/polkit-1/actions/com.github.woeusb.woeusb-ng.policy
%check
#pyproject_check_import
%files -f %{pyproject_files}
%_bindir/woeusb
%_bindir/woeusbgui
%_datadir/applications/WoeUSB-ng.desktop
%_iconsdir/hicolor/scalable/apps/woeusb-logo.png
%_datadir/polkit-1/actions/com.github.woeusb.woeusb-ng.policy
%changelog
%autochangelog
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "WoeUSB-ng.spec"
}
}
+1
View File
@@ -0,0 +1 @@
rpm.version(gh_tag("WoeUSB/WoeUSB-ng"));