-
Notifications
You must be signed in to change notification settings - Fork 1
/
harbour-tmo.spec
56 lines (44 loc) · 1.3 KB
/
harbour-tmo.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
Name: harbour-tmo
Version: 0.1
Release: 1
Summary: An app for the talk.maemo.org community.
URL: https://github.com/mattaustin/tmo
License: ASL 2.0 and MIT
Source: https://github.com/mattaustin/tmo/archive/0.1.tar.gz
BuildArch: noarch
Requires: libsailfishapp-launcher
Requires: pyotherside-qml-plugin-python3-qt5
Requires: sailfishsilica-qt5
%description
An app for the talk.maemo.org community.
%prep
%setup -q -n tmo-%{version}
%install
rm -rf %{buildroot}
# Application files
TARGET=%{buildroot}/%{_datadir}/%{name}
mkdir -p $TARGET
mkdir -p $TARGET/qml
cp -rpv tmo $TARGET/
cp -Hrpv qml/silica/* $TARGET/qml/
ln -s main.qml $TARGET/qml/%{name}.qml
# Documentation files
# Normally this is automatic using %doc in the %files section below, but it is
# not permitted by harbour, so we're placing with the application files.
TARGET=%{buildroot}/%{_datadir}/%{name}/doc
mkdir -p $TARGET
cp README.rst $TARGET/
cp LICENSE $TARGET/
# Desktop Entry
TARGET=%{buildroot}/%{_datadir}/applications
mkdir -p $TARGET
cp -rpv %{name}.desktop $TARGET/
# Icon
#TARGET=%{buildroot}/%{_datadir}/icons/hicolor/86x86/apps/
#mkdir -p $TARGET
#cp -rpv icons/sailfishos.png $TARGET/%{name}.png
%files
#%doc README.rst LICENSE
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
#%{_datadir}/icons/hicolor/*/apps/%{name}.png