-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(cherry picked from commit 98bd6f8) Co-authored-by: madomado <[email protected]>
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
project pkg { | ||
rpm { | ||
spec = "WoeUSB-ng.spec" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rpm.version(gh_tag("WoeUSB/WoeUSB-ng")); |