diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 20:59:07 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 20:59:07 +0000 |
commit | e3ef23e2bd1fca0e409b02dbf87160aca39f1c1e (patch) | |
tree | 1688de9dcfdc2b72c3e40a99d746c83995ba955b /python-woeusb-ng.spec | |
parent | 27c0cba60bfd3a4d60e3028b0df4f08b07f7a15f (diff) |
automatic import of python-woeusb-ng
Diffstat (limited to 'python-woeusb-ng.spec')
-rw-r--r-- | python-woeusb-ng.spec | 351 |
1 files changed, 351 insertions, 0 deletions
diff --git a/python-woeusb-ng.spec b/python-woeusb-ng.spec new file mode 100644 index 0000000..7279f6c --- /dev/null +++ b/python-woeusb-ng.spec @@ -0,0 +1,351 @@ +%global _empty_manifest_terminate_build 0 +Name: python-WoeUSB-ng +Version: 0.2.12 +Release: 1 +Summary: 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. +License: GPL-3 +URL: https://github.com/WoeUSB/WoeUSB-ng +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/52/5b/e7426fc6096116efc8ca380e6c8ceaa265f17300a6308b948c7abe4ec9f0/WoeUSB-ng-0.2.12.tar.gz +BuildArch: noarch + + +%description +<div align="center"> +<h1>WoeUSB-ng</h1> +<img src=".github/woeusb-logo.png" alt="brand" width="28%" /> +</div> + +_A Linux program to create a Windows USB stick installer from a real Windows DVD or image._ + +This package contains two programs: + +* **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 +* **woeusbgui**: Graphic version of woeusb + +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) + +This project rewrite of original [WoeUSB](https://github.com/slacka/WoeUSB) + +## Installation + +### Arch +```shell +yay -S woeusb-ng +``` + +### For other distributions + +### 1. Install WoeUSB-ng's Dependencies +#### Ubuntu + +```shell +sudo apt install git p7zip-full python3-pip python3-wxgtk4.0 grub2-common grub-pc-bin parted dosfstools ntfs-3g +``` + +#### Fedora (tested on: Fedora Workstation 33) +```shell +sudo dnf install git p7zip p7zip-plugins python3-pip python3-wxpython4 +``` + +### 2. Install WoeUSB-ng +```shell +sudo pip3 install WoeUSB-ng +``` + +## Installation from source code + +### 1. Install WoeUSB-ng's Build Dependencies +#### Ubuntu +```shell +sudo apt install git p7zip-full python3-pip python3-wxgtk4.0 grub2-common grub-pc-bin parted dosfstools ntfs-3g +``` +#### Arch +```shell +sudo pacman -Suy p7zip python-pip python-wxpython +``` +#### Fedora (tested on: Fedora Workstation 33) +```shell +sudo dnf install git p7zip p7zip-plugins python3-pip python3-wxpython4 +``` +### 2. Install WoeUSB-ng +```shell +git clone https://github.com/WoeUSB/WoeUSB-ng.git +cd WoeUSB-ng +sudo pip3 install . +``` + +## Installation from source code locally or in virtual environment +```shell +git clone https://github.com/WoeUSB/WoeUSB-ng.git +cd WoeUSB-ng +git apply development.patch +sudo pip3 install -e . +``` +Please note that this will not create menu shortcut and you may need to run gui twice as it may want to adjust policy. + +## Uninstalling + +To remove WoeUSB-ng completely run (needed only when using installation from source code): +```shell +sudo pip3 uninstall WoeUSB-ng +sudo rm /usr/share/icons/WoeUSB-ng/icon.ico \ + /usr/share/applications/WoeUSB-ng.desktop \ + /usr/local/bin/woeusbgui +sudo rmdir /usr/share/icons/WoeUSB-ng/ +``` + +## License +WoeUSB-ng is distributed under the [GPL license](https://github.com/WoeUSB/WoeUSB-ng/blob/master/COPYING). + + +%package -n python3-WoeUSB-ng +Summary: 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. +Provides: python-WoeUSB-ng +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-WoeUSB-ng +<div align="center"> +<h1>WoeUSB-ng</h1> +<img src=".github/woeusb-logo.png" alt="brand" width="28%" /> +</div> + +_A Linux program to create a Windows USB stick installer from a real Windows DVD or image._ + +This package contains two programs: + +* **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 +* **woeusbgui**: Graphic version of woeusb + +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) + +This project rewrite of original [WoeUSB](https://github.com/slacka/WoeUSB) + +## Installation + +### Arch +```shell +yay -S woeusb-ng +``` + +### For other distributions + +### 1. Install WoeUSB-ng's Dependencies +#### Ubuntu + +```shell +sudo apt install git p7zip-full python3-pip python3-wxgtk4.0 grub2-common grub-pc-bin parted dosfstools ntfs-3g +``` + +#### Fedora (tested on: Fedora Workstation 33) +```shell +sudo dnf install git p7zip p7zip-plugins python3-pip python3-wxpython4 +``` + +### 2. Install WoeUSB-ng +```shell +sudo pip3 install WoeUSB-ng +``` + +## Installation from source code + +### 1. Install WoeUSB-ng's Build Dependencies +#### Ubuntu +```shell +sudo apt install git p7zip-full python3-pip python3-wxgtk4.0 grub2-common grub-pc-bin parted dosfstools ntfs-3g +``` +#### Arch +```shell +sudo pacman -Suy p7zip python-pip python-wxpython +``` +#### Fedora (tested on: Fedora Workstation 33) +```shell +sudo dnf install git p7zip p7zip-plugins python3-pip python3-wxpython4 +``` +### 2. Install WoeUSB-ng +```shell +git clone https://github.com/WoeUSB/WoeUSB-ng.git +cd WoeUSB-ng +sudo pip3 install . +``` + +## Installation from source code locally or in virtual environment +```shell +git clone https://github.com/WoeUSB/WoeUSB-ng.git +cd WoeUSB-ng +git apply development.patch +sudo pip3 install -e . +``` +Please note that this will not create menu shortcut and you may need to run gui twice as it may want to adjust policy. + +## Uninstalling + +To remove WoeUSB-ng completely run (needed only when using installation from source code): +```shell +sudo pip3 uninstall WoeUSB-ng +sudo rm /usr/share/icons/WoeUSB-ng/icon.ico \ + /usr/share/applications/WoeUSB-ng.desktop \ + /usr/local/bin/woeusbgui +sudo rmdir /usr/share/icons/WoeUSB-ng/ +``` + +## License +WoeUSB-ng is distributed under the [GPL license](https://github.com/WoeUSB/WoeUSB-ng/blob/master/COPYING). + + +%package help +Summary: Development documents and examples for WoeUSB-ng +Provides: python3-WoeUSB-ng-doc +%description help +<div align="center"> +<h1>WoeUSB-ng</h1> +<img src=".github/woeusb-logo.png" alt="brand" width="28%" /> +</div> + +_A Linux program to create a Windows USB stick installer from a real Windows DVD or image._ + +This package contains two programs: + +* **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 +* **woeusbgui**: Graphic version of woeusb + +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) + +This project rewrite of original [WoeUSB](https://github.com/slacka/WoeUSB) + +## Installation + +### Arch +```shell +yay -S woeusb-ng +``` + +### For other distributions + +### 1. Install WoeUSB-ng's Dependencies +#### Ubuntu + +```shell +sudo apt install git p7zip-full python3-pip python3-wxgtk4.0 grub2-common grub-pc-bin parted dosfstools ntfs-3g +``` + +#### Fedora (tested on: Fedora Workstation 33) +```shell +sudo dnf install git p7zip p7zip-plugins python3-pip python3-wxpython4 +``` + +### 2. Install WoeUSB-ng +```shell +sudo pip3 install WoeUSB-ng +``` + +## Installation from source code + +### 1. Install WoeUSB-ng's Build Dependencies +#### Ubuntu +```shell +sudo apt install git p7zip-full python3-pip python3-wxgtk4.0 grub2-common grub-pc-bin parted dosfstools ntfs-3g +``` +#### Arch +```shell +sudo pacman -Suy p7zip python-pip python-wxpython +``` +#### Fedora (tested on: Fedora Workstation 33) +```shell +sudo dnf install git p7zip p7zip-plugins python3-pip python3-wxpython4 +``` +### 2. Install WoeUSB-ng +```shell +git clone https://github.com/WoeUSB/WoeUSB-ng.git +cd WoeUSB-ng +sudo pip3 install . +``` + +## Installation from source code locally or in virtual environment +```shell +git clone https://github.com/WoeUSB/WoeUSB-ng.git +cd WoeUSB-ng +git apply development.patch +sudo pip3 install -e . +``` +Please note that this will not create menu shortcut and you may need to run gui twice as it may want to adjust policy. + +## Uninstalling + +To remove WoeUSB-ng completely run (needed only when using installation from source code): +```shell +sudo pip3 uninstall WoeUSB-ng +sudo rm /usr/share/icons/WoeUSB-ng/icon.ico \ + /usr/share/applications/WoeUSB-ng.desktop \ + /usr/local/bin/woeusbgui +sudo rmdir /usr/share/icons/WoeUSB-ng/ +``` + +## License +WoeUSB-ng is distributed under the [GPL license](https://github.com/WoeUSB/WoeUSB-ng/blob/master/COPYING). + + +%prep +%autosetup -n WoeUSB-ng-0.2.12 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-WoeUSB-ng -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.12-1 +- Package Spec generated |