summaryrefslogtreecommitdiff
path: root/RPM/trix.spec
blob: dceab947926a6ec47a47cfa5f087ac33a5299cd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#
# spec file for package trix
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

%define unmangled_version 0.230821-1
Name:           trix
Version:		0.230821
Release:        1
Summary:    	Clicking on blocks
License:        CC-PDDC
URL:            http://prymula.ct8.pl
Source0:	%{name}-%{unmangled_version}.tar.gz
%if 0%{?suse_version}==1530
BuildRequires:	libSDL2-devel, libSDL2_ttf-devel, libSDL2_image-devel, pkgconfig, pkgconfig(sdl2)
Requires:       libSDL2-2_0-0, libSDL2_ttf-2_0-0, libSDL2_image-2_0-0
%else
BuildRequires:	SDL2-devel, SDL2_ttf-devel, SDL2_image-devel, pkgconfig, pkgconfig(sdl2)
Requires:       SDL2, SDL2_ttf, SDL_image
%endif
BuildArch:	x86_64

%description


%prep
%setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version}

%build
make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_datadir}/trix
mkdir -p %{buildroot}%{_datadir}/trix/img
mkdir -p %{buildroot}%{_datadir}/trix/img/bg

#mkdir -p %{buildroot}/usr
#mkdir -p %{buildroot}/usr/share
mkdir -p %{buildroot}%{_datadir}/applications

#%make_install

install -m 0755 trix %{buildroot}%{_bindir}
install -m 0644 img/trix-icon.png %{buildroot}%{_datadir}/trix/img
install -m 0644 img/trix-icon.bmp %{buildroot}%{_datadir}/trix/img
install -m 0644 img/icons.bmp %{buildroot}%{_datadir}/trix/img
install -m 0644 img/bg/image1.jpeg %{buildroot}%{_datadir}/trix/img/bg
install -m 0644 img/bg/image2.jpeg %{buildroot}%{_datadir}/trix/img/bg
install -m 0644 img/bg/image3.jpeg %{buildroot}%{_datadir}/trix/img/bg
install -m 0644 img/bg/image4.jpeg %{buildroot}%{_datadir}/trix/img/bg
install -m 0644 img/bg/image5.jpeg %{buildroot}%{_datadir}/trix/img/bg
install -m 0644 img/bg/image6.jpeg %{buildroot}%{_datadir}/trix/img/bg
install -m 0644 img/bg/catalogue.txt %{buildroot}%{_datadir}/trix/img/bg
install -m 0644 img/bg/AUTHOR.txt %{buildroot}%{_datadir}/trix/img/bg
install -m 0644 Trix.desktop %{buildroot}/usr/share/applications
install -m 0644 ZapfHumanist.ttf %{buildroot}%{_datadir}/trix



%files
%defattr(0755,root,root)
%{_bindir}/trix
%{_datadir}/trix/
%{_datadir}/trix/img/
%{_datadir}/trix/img/bg/
%defattr(0644,root,root)
%{_datadir}/trix/img/trix-icon.png
%{_datadir}/trix/img/trix-icon.bmp
%{_datadir}/trix/img/icons.bmp
%{_datadir}/trix/img/bg/image1.jpeg
%{_datadir}/trix/img/bg/image2.jpeg
%{_datadir}/trix/img/bg/image3.jpeg
%{_datadir}/trix/img/bg/image4.jpeg
%{_datadir}/trix/img/bg/image5.jpeg
%{_datadir}/trix/img/bg/image6.jpeg
%{_datadir}/trix/img/bg/catalogue.txt
%{_datadir}/trix/img/bg/AUTHOR.txt
%{_datadir}/applications/Trix.desktop
%{_datadir}/trix/ZapfHumanist.ttf

%changelog