annotate arkanoid/RPM/arkanoid.spec @ 14:49dd434149cd

README.md immposiblerush
author prymula <prymula76@outlook.com>
date Sat, 10 Feb 2024 20:40:34 +0100
parents 542e305f23f4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
1 #
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
2 # spec file for package arkanoid
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
3 #
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
4 # Copyright (c) 2020 SUSE LLC
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
5 #
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
6 # All modifications and additions to the file contributed by third parties
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
7 # remain the property of their copyright owners, unless otherwise agreed
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
8 # upon. The license for this file, and modifications and additions to the
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
9 # file, is the same license as for the pristine package itself (unless the
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
10 # license for the pristine package is not an Open Source License, in which
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
11 # case the license is the MIT License). An "Open Source License" is a
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
12 # license that conforms to the Open Source Definition (Version 1.9)
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
13 # published by the Open Source Initiative.
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
14
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
15 # Please submit bugfixes or comments via https://bugs.opensuse.org/
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
16 #
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
17
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
18 %define unmangled_version 0.7-1
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
19 Name: arkanoid
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
20 Version: 0.7
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
21 Release: 1
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
22 Summary: 80s classics game
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
23 License: CC-PDDC
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
24 URL: http://prymula.ct8.pl
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
25 Source0: %{name}-%{unmangled_version}.tar.gz
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
26 %if 0%{?suse_version}==1530
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
27 BuildRequires: libSDL2-devel, libSDL2_ttf-devel, pkgconfig, pkgconfig(sdl2)
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
28 Requires: libSDL2-2_0-0, libSDL2_ttf-2_0-0
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
29 %else
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
30 BuildRequires: SDL2-devel, SDL2_ttf-devel, pkgconfig, pkgconfig(sdl2)
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
31 Requires: SDL2, SDL2_ttf
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
32 %endif
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
33 BuildArch: x86_64
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
34
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
35 %description
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
36
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
37
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
38 %prep
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
39 %setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version}
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
40
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
41 %build
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
42 make
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
43
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
44 %install
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
45 mkdir -p %{buildroot}/usr
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
46 mkdir -p %{buildroot}/usr/bin
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
47 mkdir -p %{buildroot}%{_datadir}
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
48 #mkdir -p %{buildroot}%{_datadir}/fonts
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
49 mkdir -p %{buildroot}%{_datadir}/arkanoid
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
50 mkdir -p %{buildroot}%{_datadir}/pixmaps
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
51 mkdir -p %{buildroot}%{_datadir}/applications
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
52
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
53 #%make_install
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
54
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
55 install -m 0755 arkanoid %{buildroot}/usr/bin
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
56 install -m 0644 icon/arkanoid.png %{buildroot}%{_datadir}/pixmaps
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
57 install -m 0644 icon/gumka_arkanoid.bmp %{buildroot}%{_datadir}/pixmaps
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
58 install -m 0644 arkanoid.desktop %{buildroot}%{_datadir}/applications
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
59 #install -m 0644 SpicyRice.ttf %{buildroot}%{_datadir}/fonts
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
60 install -m 0644 SpicyRice.ttf %{buildroot}%{_datadir}/arkanoid
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
61
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
62
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
63
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
64 %files
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
65 %defattr(0755,root,root)
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
66 /usr/bin/arkanoid
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
67 %{_datadir}/arkanoid/
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
68 %defattr(0644,root,root)
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
69 %{_datadir}/pixmaps/arkanoid.png
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
70 %{_datadir}/pixmaps/gumka_arkanoid.bmp
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
71 %{_datadir}/applications/arkanoid.desktop
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
72 %{_datadir}/arkanoid/SpicyRice.ttf
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
73 #%{_datadir}/fonts/SpicyRice.ttf
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
74
542e305f23f4 arkanoid-trix-debian-dir
prymula <prymula76@outlook.com>
parents:
diff changeset
75 %changelog