public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <filiperosset@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/sdlhack] rawhide: spec cleanup and modernization
Date: Sun, 14 Jun 2026 03:22:57 GMT [thread overview]
Message-ID: <178140737745.1.2192864261006597967.rpms-sdlhack-8570a2cbc491@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-14 3:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178140737745.1.2192864261006597967.rpms-sdlhack-8570a2cbc491@fedoraproject.org \
--to=filiperosset@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox