-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflatdrake.spec
89 lines (74 loc) · 2.51 KB
/
flatdrake.spec
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
%global gb3_ver %(rpm -q --qf '%%{version}' gambas-devel)
Summary: FlatDrake is a frontend for FlatPak
Name: flatdrake
Version: 2.2.0
Release: 6
License: GPLv3
Group: Graphical desktop/KDE
URL: https://mib.pianetalinux.org
#URL: https://github.com/astrgl/flatdrake
Source0: https://github.com/astrgl/flatdrake/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: gambas-devel
BuildRequires: gambas-gb.dbus
BuildRequires: gambas-gb.form
BuildRequires: gambas-gb.form.stock
BuildRequires: gambas-gb.gui
BuildRequires: gambas-gb.qt6
BuildRequires: gambas-gb.image
BuildRequires: gambas-gui-backend
BuildRequires: imagemagick
Requires: flatpak
Requires: gambas-runtime = %{gb3_ver}
Requires: gambas-devel = %{gb3_ver}
Requires: gambas-gb.dbus = %{gb3_ver}
Requires: gambas-gb.form = %{gb3_ver}
Requires: gambas-gb.form.stock = %{gb3_ver}
Requires: gambas-gb.gui = %{gb3_ver}
Requires: gambas-gb.qt6 = %{gb3_ver}
Requires: gambas-gb.image = %{gb3_ver}
Requires: gambas-gui-backend = %{gb3_ver}
Requires: lsb-release
Requires: xrandr
Requires: draketray
BuildArch: noarch
%patchlist
flatdrake-qt6.patch
%description
FlatDrake is a frontend for FlatPak
Powerful like a terminal and simple like a GUI!
%files
%license FILE-EXTRA/license
%{_bindir}/%{name}.gambas
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.svg
#---------------------------------------------------------------------------
%prep
%autosetup -p1
%build
gbc3 -e -a -g -t -f public-module -f public-control -j%{?_smp_mflags}
gba3
# unversion binary
mv %{name}-%{version}.gambas %{name}.gambas
%install
# binary
install -Dm 0755 %{name}.gambas -t %{buildroot}/%{_bindir}/
# data files
install -Dm 0644 FILE-EXTRA/%{name}-* -t %{buildroot}/%{_datadir}/%{name}/
install -Dm 0644 LINUX.png OMA.png -t %{buildroot}/%{_datadir}/%{name}/
#.desktop
install -Dm 0755 FILE-EXTRA/%{name}.desktop -t %{buildroot}/%{_datadir}/applications
# icons
install -Dm 0644 ICONS-EXTRA/* -t %{buildroot}%{_datadir}/%{name}/
install -Dm 0644 %{name}.svg -t %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
for d in 16 32 48 64 72 128 256 512
do
install -dm 0755 %{buildroot}%{_iconsdir}/hicolor/${d}x${d}/apps/
convert -background none -scale ${d}x${d} %{name}.svg \
%{buildroot}%{_iconsdir}/hicolor/${d}x${d}/apps/%{name}.png
done
install -dm 0755 %{buildroot}%{_datadir}/pixmaps/
convert -scale 32x32 %{name}.svg %{buildroot}%{_datadir}/pixmaps/%{name}.xpm