From e0f00f9a2be0c985b3d7f277e34a87263fc88de3 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Wed, 4 Dec 2024 21:52:22 -0800 Subject: [PATCH] add: WoeUSB-ng (#2561) (#2572) (cherry picked from commit 98bd6f82a038e46f29bbee207b81dd2da338ed36) Co-authored-by: madomado --- anda/apps/woeusb-ng/WoeUSB-ng.spec | 50 ++++++++++++++++++++++++++++++ anda/apps/woeusb-ng/anda.hcl | 5 +++ anda/apps/woeusb-ng/update.rhai | 1 + 3 files changed, 56 insertions(+) create mode 100644 anda/apps/woeusb-ng/WoeUSB-ng.spec create mode 100644 anda/apps/woeusb-ng/anda.hcl create mode 100644 anda/apps/woeusb-ng/update.rhai diff --git a/anda/apps/woeusb-ng/WoeUSB-ng.spec b/anda/apps/woeusb-ng/WoeUSB-ng.spec new file mode 100644 index 0000000000..cdb0820207 --- /dev/null +++ b/anda/apps/woeusb-ng/WoeUSB-ng.spec @@ -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 diff --git a/anda/apps/woeusb-ng/anda.hcl b/anda/apps/woeusb-ng/anda.hcl new file mode 100644 index 0000000000..f729a2237e --- /dev/null +++ b/anda/apps/woeusb-ng/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "WoeUSB-ng.spec" + } +} diff --git a/anda/apps/woeusb-ng/update.rhai b/anda/apps/woeusb-ng/update.rhai new file mode 100644 index 0000000000..cfefed935e --- /dev/null +++ b/anda/apps/woeusb-ng/update.rhai @@ -0,0 +1 @@ +rpm.version(gh_tag("WoeUSB/WoeUSB-ng"));