annotate flappyufo/RPM/flappyufo.spec @ 11:78390e0e674f

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