annotate lamertetris/RPM/lamertetris.spec @ 25:404e262cd7e7 default tip

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