Mercurial > hg > pub > prymula > com
comparison lamertetris/RPM/lamertetris.spec @ 18:b5e2aba31fdb
lamertetris-0.230821-3 package for arch
author | Przemyslaw <prymula76@outlook.com> |
---|---|
date | Sun, 31 Mar 2024 15:35:26 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
17:e9c503d896a6 | 18:b5e2aba31fdb |
---|---|
1 # | |
2 # spec file for package lamertetris | |
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 2.230821-3 | |
19 Name: lamertetris | |
20 Version: 2.230821 | |
21 Release: 3 | |
22 Summary: My implementation of the cult 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), gcc-c++ | |
28 Requires: libSDL2-2_0-0, libSDL2_ttf-2_0-0 | |
29 %else | |
30 BuildRequires: SDL2-devel, SDL2_ttf-devel, pkgconfig, pkgconfig(sdl2), gcc-c++ | |
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}/usr/share | |
48 mkdir -p %{buildroot}/usr/share/lamertetris | |
49 mkdir -p %{buildroot}/usr/share/lamertetris/img | |
50 | |
51 #mkdir -p %{buildroot}/usr | |
52 #mkdir -p %{buildroot}/usr/share | |
53 mkdir -p %{buildroot}/usr/share/applications | |
54 | |
55 #%make_install | |
56 | |
57 install -m 0755 lamertetris %{buildroot}/usr/bin/lamertetris | |
58 install -m 0644 assets/lamertetris.png %{buildroot}/usr/share/lamertetris/img | |
59 install -m 0644 assets/lamertetris.bmp %{buildroot}/usr/share/lamertetris/img | |
60 install -m 0644 assets/wallpaper.bmp %{buildroot}/usr/share/lamertetris/img | |
61 install -m 0644 LamerTetris.desktop %{buildroot}/usr/share/applications | |
62 install -m 0644 assets/SpicyRice.ttf %{buildroot}/usr/share/lamertetris | |
63 | |
64 | |
65 | |
66 %files | |
67 %defattr(0755,root,root) | |
68 /usr/bin/lamertetris | |
69 /usr/share/lamertetris/ | |
70 /usr/share/lamertetris/img/ | |
71 %defattr(0644,root,root) | |
72 /usr/share/lamertetris/img/lamertetris.png | |
73 /usr/share/lamertetris/img/lamertetris.bmp | |
74 /usr/share/lamertetris/img/wallpaper.bmp | |
75 /usr/share/applications/LamerTetris.desktop | |
76 /usr/share/lamertetris/SpicyRice.ttf | |
77 | |
78 %changelog |