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

            A new commit has been pushed.

            Repo   : rpms/sdlhack
            Branch : rawhide
            Commit : 8570a2cbc4915185e8671da95474aec96479d506
            Author : Filipe Rosset <filiperosset@fedoraproject.org>
            Date   : 2026-06-14T00:17:09-03:00
            Stats  : +13/-14 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/sdlhack/c/8570a2cbc4915185e8671da95474aec96479d506?branch=rawhide

            Log:
            spec cleanup and modernization

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

---
diff --git a/sdlhack.spec b/sdlhack.spec
index 135497b..26538d8 100644
--- a/sdlhack.spec
+++ b/sdlhack.spec
@@ -2,9 +2,10 @@ Name:           sdlhack
 Version:        1.4
 Release:        %autorelease
 Summary:        Force full-screen games to minimize
-# Automatically converted from old format: LGPLv2+ - review is highly recommended.
-License:        LicenseRef-Callaway-LGPLv2+
-URL:            http://www.jspenguin.org/software/sdlhack/
+
+# Upstream files specify LGPL v2.1 or later
+License:        LGPL-2.1-or-later
+URL:            http://jspenguin.org:81/software/sdlhack/
 Source0:        http://jspenguin.org:81/software/%{name}/%{name}-%{version}.tar.gz
 Source1:        %{name}.1
 BuildRequires:  gcc
@@ -19,22 +20,20 @@ It also allows you to disable joystick detection.
 # Change the path of the library since we install it in a private libdir
 sed -i 's|lib%{name}.so|%{_libdir}/%{name}/lib%{name}.so|g' sdlhack
 
-sed -i 's|lib%{name}-i386.so|lib%{name}.so|g;s|lig%{name}-x86_64.so|lib%{name}.so|g' build
-
-# Remove any prebuilt lib
+# Remove any prebuilt libs
 rm -f *.so
 
 %build
-export CFLAGS="-v %{optflags}"
-bash build
+gcc %{optflags} %{build_ldflags} $(sdl-config --cflags) -shared -fPIC -ldl -Wall lib%{name}.c -o lib%{name}.so
 
 %install
-mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_mandir}/man1}
-install -Dpm 755 %{name} $RPM_BUILD_ROOT%{_bindir}
-# Install libsdlhack.so in a privatelib rather than system wide one since it is gonna
-# be used only with this program
-install -Dpm 755 lib%{name}.so $RPM_BUILD_ROOT%{_libdir}/%{name}
-install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1
+mkdir -p %{buildroot}%{_bindir}
+mkdir -p %{buildroot}%{_libdir}/%{name}
+mkdir -p %{buildroot}%{_mandir}/man1
+install -Dpm 755 %{name} %{buildroot}%{_bindir}
+# Install libsdlhack.so in a private libdir since it is only used by this program
+install -Dpm 755 lib%{name}.so %{buildroot}%{_libdir}/%{name}
+install -Dpm 644 %{SOURCE1} %{buildroot}%{_mandir}/man1
 
 
 %files

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

only message in thread, other threads:[~2026-06-14  3:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-14  3:22 [rpms/sdlhack] 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