comparison 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
comparison
equal deleted inserted replaced
15:f61684ae8245 16:8fa14e28f099
25 Source0: %{name}-%{unmangled_version}.tar.gz 25 Source0: %{name}-%{unmangled_version}.tar.gz
26 %if 0%{?suse_version}==1550 26 %if 0%{?suse_version}==1550
27 BuildRequires: java-11-openjdk, ant 27 BuildRequires: java-11-openjdk, ant
28 Requires: java-11-openjdk 28 Requires: java-11-openjdk
29 %else 29 %else
30 BuildRequires: java-latest-openjdk, ant 30 BuildRequires: java-11-openjdk, ant
31 Requires: java-latest-openjdk 31 Requires: java-11-openjdk
32 %endif 32 %endif
33 BuildArch: noarch 33 BuildArch: noarch
34 34
35 %description 35 %description
36 36
37 37
38 %prep 38 %prep
39 %setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version} 39 %setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version}
40 40
41 %build 41 %build
42 ant clean
42 ant compile 43 ant compile
43 ant jar 44 ant jar
44 45
45 %install 46 %install
46 mkdir -p %{buildroot}/usr 47 #mkdir -p %{buildroot}/usr
47 mkdir -p %{buildroot}/usr/games 48 mkdir -p %{buildroot}/usr/games
48 mkdir -p %{buildroot}/usr/share 49 #mkdir -p %{buildroot}/usr/share
49 mkdir -p %{buildroot}/usr/share/flappyufo 50 mkdir -p %{buildroot}/usr/share/flappyufo
50 mkdir -p %{buildroot}/usr/share/applications 51 mkdir -p %{buildroot}/usr/share/applications
51 52
52 #%make_install 53 #%make_install
53 54
58 %files 59 %files
59 %defattr(0755,root,root) 60 %defattr(0755,root,root)
60 %{_datadir}/flappyufo/ 61 %{_datadir}/flappyufo/
61 /usr/games/ 62 /usr/games/
62 %defattr(0644,root,root) 63 %defattr(0644,root,root)
63 /usr/games/FloppyUfo.jar 64 /usr/games/FlappyUfo.jar
64 %{_datadir}/flappyufo/floppyufo.png 65 %{_datadir}/flappyufo/flappyufo.png
65 %{_datadir}/applications/floppyufo.desktop 66 %{_datadir}/applications/flappyufo.desktop
66 67
67 %changelog 68 %changelog