public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/unetbootin] rawhide: spec cleanup and modernization
@ 2026-06-30 23:34 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-30 23:34 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/unetbootin
            Branch : rawhide
            Commit : f665e846eab370ccf63eab4173aad1b151ef4d1b
            Author : Filipe Rosset <filiperosset@fedoraproject.org>
            Date   : 2026-06-30T19:51:57-03:00
            Stats  : +27/-24 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/unetbootin/c/f665e846eab370ccf63eab4173aad1b151ef4d1b?branch=rawhide

            Log:
            spec cleanup and modernization

Signed-off-by: Filipe Rosset <filiperosset@fedoraproject.org>

---
diff --git a/unetbootin.spec b/unetbootin.spec
index 018dae6..8de6e3c 100644
--- a/unetbootin.spec
+++ b/unetbootin.spec
@@ -1,58 +1,61 @@
-%global debug_package %{nil}
-
-Name:		unetbootin
-Version:	702
-Release:	12%{?dist}
-Summary:	Create bootable Live USB drives for a variety of Linux distributions
+Name:           unetbootin
+Version:        702
+Release:        12%{?dist}
+Summary:        Create bootable Live USB drives for a variety of Linux distributions
 # Automatically converted from old format: GPLv2+ - review is highly recommended.
-License:	GPL-2.0-or-later
-URL:		https://unetbootin.github.io/
-Source0:	https://sourceforge.net/projects/%{name}/files/UNetbootin/%{version}/%{name}-source-%{version}.tar.gz
-Patch0:     unetbootin-675-desktop.patch
+License:        GPL-2.0-or-later
+URL:            https://unetbootin.github.io/
+Source0:        https://sourceforge.net/projects/%{name}/files/UNetbootin/%{version}/%{name}-source-%{version}.tar.gz
+Patch0:         unetbootin-675-desktop.patch
 # Syslinux is only available on x86 architectures
-ExclusiveArch:	%{ix86} x86_64
+ExclusiveArch:  %{ix86} x86_64 aarch64
 
-BuildRequires: make
-BuildRequires:	gcc-c++
-BuildRequires:	desktop-file-utils
-BuildRequires:	qt5-linguist
-BuildRequires:	qt5-qtbase-devel
+BuildRequires:  desktop-file-utils
+BuildRequires:  gcc-c++
+BuildRequires:  make
+BuildRequires:  qt5-linguist
+BuildRequires:  qt5-qtbase-devel
 # Not picked up automatically, required for operation
-Requires:	p7zip-plugins
-Requires:	syslinux
-Requires:	syslinux-extlinux
+Requires:       p7zip-plugins
+%ifarch %{ix86} x86_64
+Requires:       syslinux
+Requires:       syslinux-extlinux
+%endif
 
 %description
 UNetbootin allows you to create bootable Live USB drives for a variety of
 Linux distributions from Windows or Linux, without requiring you to burn a CD.
 You can either let it download one of the many distributions supported
-out-of-the-box for you, or supply your own Linux .iso file if you've already
+out-of-the-box for you, or supply your own Linux .ISO file if you've already
 downloaded one or your preferred distribution isn't on the list.
 
 
 %prep
-%setup -c
-%patch -P0 -p1
+%autosetup -c
+# Fix line endings
+sed -i 's/\r$//' README.TXT
 # Fix desktop file
 sed -i '/^RESOURCES/d' unetbootin.pro
 
 %build
 lupdate-qt5 unetbootin.pro
 lrelease-qt5 unetbootin.pro
-%{?qmake_qt5}%{!?qmake_qt5:qmake-qt5}}
+%qmake_qt5
 %make_build
 
 
 %install
 install -D -p -m 755 unetbootin %{buildroot}%{_bindir}/unetbootin
 # Install desktop file
-desktop-file-install --vendor="" --remove-category=Application --dir=%{buildroot}%{_datadir}/applications unetbootin.desktop
+desktop-file-install --dir=%{buildroot}%{_datadir}/applications unetbootin.desktop
 # Install localization files
 install -d %{buildroot}%{_datadir}/unetbootin
 install -c -p -m 644 unetbootin_*.qm %{buildroot}%{_datadir}/unetbootin/
 # Install pixmap
 install -D -p -m 644 unetbootin_512.png %{buildroot}%{_datadir}/pixmaps/unetbootin.png
 
+%check
+desktop-file-validate %{buildroot}%{_datadir}/applications/unetbootin.desktop
 
 %files
 %doc README.TXT

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-30 23:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-30 23:34 [rpms/unetbootin] rawhide: spec cleanup and modernization Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox