Mercurial > hg > pub > prymula > com
comparison arkanoid/RPM/arkanoid.spec @ 6:542e305f23f4
arkanoid-trix-debian-dir
author | prymula <prymula76@outlook.com> |
---|---|
date | Wed, 31 Jan 2024 20:40:57 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
5:0c50890ef159 | 6:542e305f23f4 |
---|---|
1 # | |
2 # spec file for package arkanoid | |
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.7-1 | |
19 Name: arkanoid | |
20 Version: 0.7 | |
21 Release: 1 | |
22 Summary: 80s classics game | |
23 License: CC-PDDC | |
24 URL: http://prymula.ct8.pl | |
25 Source0: %{name}-%{unmangled_version}.tar.gz | |
26 %if 0%{?suse_version}==1530 | |
27 BuildRequires: libSDL2-devel, libSDL2_ttf-devel, pkgconfig, pkgconfig(sdl2) | |
28 Requires: libSDL2-2_0-0, libSDL2_ttf-2_0-0 | |
29 %else | |
30 BuildRequires: SDL2-devel, SDL2_ttf-devel, pkgconfig, pkgconfig(sdl2) | |
31 Requires: SDL2, SDL2_ttf | |
32 %endif | |
33 BuildArch: x86_64 | |
34 | |
35 %description | |
36 | |
37 | |
38 %prep | |
39 %setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version} | |
40 | |
41 %build | |
42 make | |
43 | |
44 %install | |
45 mkdir -p %{buildroot}/usr | |
46 mkdir -p %{buildroot}/usr/bin | |
47 mkdir -p %{buildroot}%{_datadir} | |
48 #mkdir -p %{buildroot}%{_datadir}/fonts | |
49 mkdir -p %{buildroot}%{_datadir}/arkanoid | |
50 mkdir -p %{buildroot}%{_datadir}/pixmaps | |
51 mkdir -p %{buildroot}%{_datadir}/applications | |
52 | |
53 #%make_install | |
54 | |
55 install -m 0755 arkanoid %{buildroot}/usr/bin | |
56 install -m 0644 icon/arkanoid.png %{buildroot}%{_datadir}/pixmaps | |
57 install -m 0644 icon/gumka_arkanoid.bmp %{buildroot}%{_datadir}/pixmaps | |
58 install -m 0644 arkanoid.desktop %{buildroot}%{_datadir}/applications | |
59 #install -m 0644 SpicyRice.ttf %{buildroot}%{_datadir}/fonts | |
60 install -m 0644 SpicyRice.ttf %{buildroot}%{_datadir}/arkanoid | |
61 | |
62 | |
63 | |
64 %files | |
65 %defattr(0755,root,root) | |
66 /usr/bin/arkanoid | |
67 %{_datadir}/arkanoid/ | |
68 %defattr(0644,root,root) | |
69 %{_datadir}/pixmaps/arkanoid.png | |
70 %{_datadir}/pixmaps/gumka_arkanoid.bmp | |
71 %{_datadir}/applications/arkanoid.desktop | |
72 %{_datadir}/arkanoid/SpicyRice.ttf | |
73 #%{_datadir}/fonts/SpicyRice.ttf | |
74 | |
75 %changelog |