6
|
1 #
|
|
2 # spec file for package trix
|
|
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.230821-0~beta
|
|
19 Name: trix
|
|
20 Version: 0.230821
|
|
21 Release: 0~beta
|
|
22 Summary: clicking on blocks
|
|
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, libSDL2_image-devel, pkgconfig, pkgconfig(sdl2)
|
|
28 Requires: libSDL2-2_0-0, libSDL2_ttf-2_0-0, libSDL2_image-2_0-0
|
|
29 %else
|
|
30 BuildRequires: SDL2-devel, SDL2_ttf-devel, SDL2_image-devel, pkgconfig, pkgconfig(sdl2)
|
|
31 Requires: SDL2, SDL2_ttf, SDL_image
|
|
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}%{_bindir}
|
|
46 mkdir -p %{buildroot}%{_datadir}
|
|
47 mkdir -p %{buildroot}%{_datadir}/trix
|
|
48 mkdir -p %{buildroot}%{_datadir}/trix/img
|
|
49 mkdir -p %{buildroot}%{_datadir}/trix/img/bg
|
|
50
|
|
51 #mkdir -p %{buildroot}/usr
|
|
52 #mkdir -p %{buildroot}/usr/share
|
|
53 mkdir -p %{buildroot}%{_datadir}/applications
|
|
54
|
|
55 #%make_install
|
|
56
|
|
57 install -m 0755 trix %{buildroot}%{_bindir}
|
|
58 install -m 0644 img/trix-icon.png %{buildroot}%{_datadir}/trix/img
|
|
59 install -m 0644 img/trix-icon.bmp %{buildroot}%{_datadir}/trix/img
|
|
60 install -m 0644 img/icons.bmp %{buildroot}%{_datadir}/trix/img
|
|
61 install -m 0644 img/bg/image1.jpeg %{buildroot}%{_datadir}/trix/img/bg
|
|
62 install -m 0644 img/bg/image2.jpeg %{buildroot}%{_datadir}/trix/img/bg
|
|
63 install -m 0644 img/bg/image3.jpeg %{buildroot}%{_datadir}/trix/img/bg
|
|
64 install -m 0644 img/bg/image4.jpeg %{buildroot}%{_datadir}/trix/img/bg
|
|
65 install -m 0644 img/bg/image5.jpeg %{buildroot}%{_datadir}/trix/img/bg
|
|
66 install -m 0644 img/bg/image6.jpeg %{buildroot}%{_datadir}/trix/img/bg
|
|
67 install -m 0644 img/bg/catalogue.txt %{buildroot}%{_datadir}/trix/img/bg
|
|
68 install -m 0644 img/bg/AUTHOR.txt %{buildroot}%{_datadir}/trix/img/bg
|
|
69 install -m 0644 Trix.desktop %{buildroot}/usr/share/applications
|
|
70 install -m 0644 ZapfHumanist.ttf %{buildroot}%{_datadir}/trix
|
|
71
|
|
72
|
|
73
|
|
74 %files
|
|
75 %defattr(0755,root,root)
|
|
76 %{_bindir}/trix
|
|
77 %{_datadir}/trix/
|
|
78 %{_datadir}/trix/img/
|
|
79 %{_datadir}/trix/img/bg/
|
|
80 %defattr(0644,root,root)
|
|
81 %{_datadir}/trix/img/trix-icon.png
|
|
82 %{_datadir}/trix/img/trix-icon.bmp
|
|
83 %{_datadir}/trix/img/icons.bmp
|
|
84 %{_datadir}/trix/img/bg/image1.jpeg
|
|
85 %{_datadir}/trix/img/bg/image2.jpeg
|
|
86 %{_datadir}/trix/img/bg/image3.jpeg
|
|
87 %{_datadir}/trix/img/bg/image4.jpeg
|
|
88 %{_datadir}/trix/img/bg/image5.jpeg
|
|
89 %{_datadir}/trix/img/bg/image6.jpeg
|
|
90 %{_datadir}/trix/img/bg/catalogue.txt
|
|
91 %{_datadir}/trix/img/bg/AUTHOR.txt
|
|
92 %{_datadir}/applications/Trix.desktop
|
|
93 %{_datadir}/trix/ZapfHumanist.ttf
|
|
94
|
|
95 %changelog
|