public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/flaw] rawhide: drop ix86 support
@ 2026-07-19  3:48 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-07-19  3:48 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/flaw
Branch : rawhide
Commit : 391d01a32107d65a35af9d99b69c8af863c8edb1
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date   : 2026-07-19T00:47:54-03:00
Stats  : +32/-21 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/flaw/c/391d01a32107d65a35af9d99b69c8af863c8edb1?branch=rawhide

Log:
drop ix86 support

---
diff --git a/flaw.spec b/flaw.spec
index 468132b..16afa5d 100644
--- a/flaw.spec
+++ b/flaw.spec
@@ -1,22 +1,30 @@
-%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
-
-Name:		flaw
-Version:	1.3.2a
-Release:	%autorelease
-Summary:	Free top-down wizard battle game
+Name:           flaw
+Version:        1.3.2a
+Release:        %autorelease
+Summary:        Free top-down wizard battle game
 # Automatically converted from old format: GPLv3+ - review is highly recommended.
-License:	GPL-3.0-or-later
-URL:		http://flaw.sourceforge.net/
-Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+License:        GPL-3.0-or-later
+URL:            http://flaw.sourceforge.net/
+Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 #patch to build on aarch64, upstream notified to use autoconf 2.69
-Patch0:		flaw-aarch64.patch
+Patch0:         flaw-aarch64.patch
+ExcludeArch:    %{ix86}
 
+BuildRequires:  desktop-file-utils
+BuildRequires:  fdupes
+BuildRequires:  gcc
 BuildRequires:  gcc-c++
-BuildRequires:	SDL_image-devel SDL_mixer-devel SDL_ttf-devel SDL-devel gnu-free-serif-fonts 
-BuildRequires:	SDL_gfx-devel desktop-file-utils gnu-free-sans-fonts gettext intltool
-BuildRequires:	gcc
-BuildRequires: make
-Requires:	gnu-free-sans-fonts gnu-free-serif-fonts
+BuildRequires:  gettext
+BuildRequires:  gnu-free-sans-fonts
+BuildRequires:  gnu-free-serif-fonts
+BuildRequires:  intltool
+BuildRequires:  make
+BuildRequires:  SDL-devel
+BuildRequires:  SDL_gfx-devel
+BuildRequires:  SDL_image-devel
+BuildRequires:  SDL_mixer-devel
+BuildRequires:  SDL_ttf-devel
+Requires:       gnu-free-sans-fonts gnu-free-serif-fonts
 
 %description
 FLAW is a free top-down wizard battle game.
@@ -37,7 +45,7 @@ chmod 644 src/*.h
 sed -i -e '2d' data/flaw.desktop
 
 %build
-%configure --docdir=%{_pkgdocdir}
+%configure --docdir=%{_docdir}/%{name}
 %make_build
 
 %install
@@ -50,8 +58,8 @@ sed -i -e '2d' data/flaw.desktop
 #
 # See http://www.freedesktop.org/software/appstream/docs/ for more details.
 #
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
-cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <<EOF
+mkdir -p %{buildroot}%{_metainfodir}
+cat > %{buildroot}%{_metainfodir}/%{name}.appdata.xml <<EOF
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Copyright 2014 Edgar Muniz Berlinck <edgar.vv@gmail.com> -->
 <!--
@@ -89,16 +97,19 @@ SentUpstream: 2014-09-24
 EOF
 
 %find_lang %{name}
+%fdupes %{buildroot}%{_datadir}
+
+%check
 desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
 
 %files -f %{name}.lang
 %{_bindir}/flaw
 %{_datadir}/flaw
 %{_datadir}/pixmaps/flaw.png
-%{_datadir}/appdata/%{name}.appdata.xml
+%{_metainfodir}/%{name}.appdata.xml
 %{_datadir}/applications/flaw.desktop
-%exclude %{_pkgdocdir}/INSTALL
-%doc %{_pkgdocdir}
+%exclude %{_docdir}/%{name}/INSTALL
+%doc %{_docdir}/%{name}
 
 %changelog
 %autochangelog

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

only message in thread, other threads:[~2026-07-19  3:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-19  3:48 [rpms/flaw] rawhide: drop ix86 support Filipe Rosset

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