comparison flappyufo/RPM/flappyufo.spec @ 0:2787f5e749ae

INIT
author prymula <prymula76@outlook.com>
date Thu, 21 Sep 2023 22:33:57 +0200
parents
children 0c50890ef159
comparison
equal deleted inserted replaced
-1:000000000000 0:2787f5e749ae
1 #
2 # spec file for package n00btetris
3 #
4 # Copyright (c) 2020 SUSE LLC
5 #
6 # All modifications and additions to the file contributed by third parties
7 # remain the property of their copyright owners, unless otherwise agreed
8 # upon. The license for this file, and modifications and additions to the
9 # file, is the same license as for the pristine package itself (unless the
10 # license for the pristine package is not an Open Source License, in which
11 # case the license is the MIT License). An "Open Source License" is a
12 # license that conforms to the Open Source Definition (Version 1.9)
13 # published by the Open Source Initiative.
14
15 # Please submit bugfixes or comments via https://bugs.opensuse.org/
16 #
17
18 %define unmangled_version 0.230919-0
19 Name: flappyufo
20 Version: 0.230919
21 Release: 0
22 Summary: Clone Flappy Bird from Android
23 License: GPL
24 URL: https://prymula.ct8.pl
25 Source0: %{name}-%{unmangled_version}.tar.gz
26 %if 0%{?suse_version}==1550
27 BuildRequires: java-11-openjdk, ant
28 Requires: java-11-openjdk
29 %else
30 BuildRequires: java-latest-openjdk, ant
31 Requires: java-latest-openjdk
32 %endif
33 BuildArch: noarch
34
35 %description
36
37
38 %prep
39 %setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version}
40
41 %build
42 ant compile
43 ant jar
44
45 %install
46 mkdir -p %{buildroot}/usr
47 mkdir -p %{buildroot}/usr/games
48 mkdir -p %{buildroot}/usr/share
49 mkdir -p %{buildroot}/usr/share/flappyufo
50 mkdir -p %{buildroot}/usr/share/applications
51
52 #%make_install
53
54 install -m 0644 build/jar/FlappyUfo.jar %{buildroot}/usr/games
55 install -m 0644 res/flappyufo.png %{buildroot}/usr/share/flappyufo
56 install -m 0644 flappyufo.desktop %{buildroot}/usr/share/applications
57
58 %files
59 %defattr(0755,root,root)
60 %{_datadir}/flappyufo/
61 /usr/games/
62 %defattr(0644,root,root)
63 /usr/games/FloppyUfo.jar
64 %{_datadir}/flappyufo/floppyufo.png
65 %{_datadir}/applications/floppyufo.desktop
66
67 %changelog