0
|
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
|
5
|
18 %define unmangled_version 0.230919-1
|
0
|
19 Name: flappyufo
|
|
20 Version: 0.230919
|
5
|
21 Release: 1
|
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
|
16
|
30 BuildRequires: java-11-openjdk, ant
|
|
31 Requires: java-11-openjdk
|
0
|
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
|
16
|
42 ant clean
|
0
|
43 ant compile
|
|
44 ant jar
|
|
45
|
|
46 %install
|
16
|
47 #mkdir -p %{buildroot}/usr
|
0
|
48 mkdir -p %{buildroot}/usr/games
|
16
|
49 #mkdir -p %{buildroot}/usr/share
|
0
|
50 mkdir -p %{buildroot}/usr/share/flappyufo
|
|
51 mkdir -p %{buildroot}/usr/share/applications
|
|
52
|
|
53 #%make_install
|
|
54
|
|
55 install -m 0644 build/jar/FlappyUfo.jar %{buildroot}/usr/games
|
|
56 install -m 0644 res/flappyufo.png %{buildroot}/usr/share/flappyufo
|
|
57 install -m 0644 flappyufo.desktop %{buildroot}/usr/share/applications
|
|
58
|
|
59 %files
|
|
60 %defattr(0755,root,root)
|
|
61 %{_datadir}/flappyufo/
|
|
62 /usr/games/
|
|
63 %defattr(0644,root,root)
|
16
|
64 /usr/games/FlappyUfo.jar
|
|
65 %{_datadir}/flappyufo/flappyufo.png
|
|
66 %{_datadir}/applications/flappyufo.desktop
|
0
|
67
|
|
68 %changelog
|