diff flappyufo/RPM/flappyufo.spec @ 16:8fa14e28f099

flappyufo-spec fix
author Przemyslaw <prymula76@outlook.com>
date Sat, 24 Feb 2024 17:25:30 +0100
parents 0c50890ef159
children
line wrap: on
line diff
--- a/flappyufo/RPM/flappyufo.spec	Sat Feb 10 21:05:36 2024 +0100
+++ b/flappyufo/RPM/flappyufo.spec	Sat Feb 24 17:25:30 2024 +0100
@@ -27,8 +27,8 @@
 BuildRequires:	java-11-openjdk, ant
 Requires:       java-11-openjdk
 %else
-BuildRequires:	java-latest-openjdk, ant
-Requires:		java-latest-openjdk
+BuildRequires:	java-11-openjdk, ant
+Requires:		java-11-openjdk
 %endif
 BuildArch:	noarch
 
@@ -39,13 +39,14 @@
 %setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version}
 
 %build
+ant clean
 ant compile
 ant jar
 
 %install
-mkdir -p %{buildroot}/usr
+#mkdir -p %{buildroot}/usr
 mkdir -p %{buildroot}/usr/games
-mkdir -p %{buildroot}/usr/share
+#mkdir -p %{buildroot}/usr/share
 mkdir -p %{buildroot}/usr/share/flappyufo
 mkdir -p %{buildroot}/usr/share/applications
 
@@ -60,8 +61,8 @@
 %{_datadir}/flappyufo/
 /usr/games/
 %defattr(0644,root,root)
-/usr/games/FloppyUfo.jar
-%{_datadir}/flappyufo/floppyufo.png
-%{_datadir}/applications/floppyufo.desktop
+/usr/games/FlappyUfo.jar
+%{_datadir}/flappyufo/flappyufo.png
+%{_datadir}/applications/flappyufo.desktop
 
 %changelog