commit 3cf59a96d62584ed9e17b0833432c5c35f786af1
Author: Andrea Musuruane <musuruan(a)gmail.com>
Date: Sat Dec 14 17:02:47 2019 +0100
Spec file clean up
roadfighter.spec | 39 ++++++++++++++-------------------------
sources | 2 +-
2 files changed, 15 insertions(+), 26 deletions(-)
---
diff --git a/roadfighter.spec b/roadfighter.spec
index a65d76d..7cb7cab 100644
--- a/roadfighter.spec
+++ b/roadfighter.spec
@@ -1,13 +1,13 @@
Name: roadfighter
Version: 1.0.1269
-Release: 16%{?dist}
+Release: 17%{?dist}
Summary: Konami's Road Fighter remake
#
http://www.braingames.getput.com/forum/forum_posts.asp?TID=678&PN=1
License: Distributable
URL:
http://roadfighter.jorito.net/
Source0:
http://braingames.jorito.net/roadfighter/downloads/%{name}.src_%{version}...
-Source1: roadfighter.sh
+Source1: %{name}.sh
Patch0: %{name}-1.0.1269-Makefile.patch
Patch1: %{name}-1.0.1269-fix-string-format-bug.patch
Patch2: %{name}-1.0.1269-build-fix.patch
@@ -41,8 +41,8 @@ mv readme.txt.utf8 readme.txt
%build
-export CFLAGS="%{optflags}"
-make %{?_smp_mflags}
+%set_build_flags macro
+%make_build
%install
@@ -58,36 +58,22 @@ cp -pr fonts graphics maps sound %{buildroot}%{_datadir}/%{name}
# Install icon
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
-convert -resize 32x32 \
- -frame 0x3 \
- -mattecolor '#dfdfdf' \
- -transparent '#dfdfdf' \
- build/linux/roadfighter.png \
+convert -resize 48x48 \
+ -extent 48x48 \
+ -gravity center \
+ -background none \
+ build/linux/%{name}.png \
%{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
# Install desktop file
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install \
--dir %{buildroot}%{_datadir}/applications \
- --set-icon=roadfighter \
+ --set-icon=%{name} \
+ --remove-category=Application \
build/linux/%{name}.desktop
-%post
-touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
-
-
-%postun
-if [ $1 -eq 0 ] ; then
- touch --no-create %{_datadir}/icons/hicolor &>/dev/null
- gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
-fi
-
-
-%posttrans
-gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
-
-
%files
%{_bindir}/%{name}
%{_datadir}/%{name}
@@ -98,6 +84,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
+* Sat Dec 14 2019 Andrea Musuruane <musuruan(a)gmail.com> - 1.0.1269-17
+- Spec file clean up
+
* Sat Aug 10 2019 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
1.0.1269-16
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
diff --git a/sources b/sources
index 52a71f9..e3bba87 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-a1626dda4d17ae30bbdd9c1ede2cd555 roadfighter.src_1.0.1269.tgz
+SHA512 (roadfighter.src_1.0.1269.tgz) =
68f2c3f5d943750ef080d2a2761c0dba8875d3b7b2f0805dbd726f47aa7c31ee7c34832e7f367ac7f7575c468a72ec25c5f47eddb6e5c0b6efb816c0e2ff10a8