forked from mattaustin/fremantleline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
harbour-fremantleline.spec
58 lines (46 loc) · 1.44 KB
/
harbour-fremantleline.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
Name: harbour-fremantleline
Version: 0.9.8
Release: 1
Summary: Perth trains live departure information
URL: http://www.perthtrains.net/
License: GPLv3
Source: https://github.com/mattaustin/fremantleline/archive/0.9.8.tar.gz
BuildArch: noarch
Requires: libsailfishapp-launcher
Requires: pyotherside-qml-plugin-python3-qt5
Requires: sailfishsilica-qt5
%description
Live departure information for Perth metropolitan train services. View the
service information by station, including: direction, stopping pattern, and
number of cars.
%prep
%setup -q -n fremantleline-%{version}
%install
rm -rf %{buildroot}
# Application files
TARGET=%{buildroot}/%{_datadir}/%{name}
mkdir -p $TARGET
mkdir -p $TARGET/qml
cp -rpv fremantleline $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 COPYING $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 COPYING
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png