summaryrefslogtreecommitdiff
path: root/rpm/salmeta.spec
blob: af9de8a63e06d853c81e281a739fee15c84500ef (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
96
97
98
99
100
# 
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.27
# 

Name:       salmeta

# >> macros
# << macros

%{!?qtc_qmake:%define qtc_qmake %qmake}
%{!?qtc_qmake5:%define qtc_qmake5 %qmake5}
%{!?qtc_make:%define qtc_make make}
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary:    Metawatch manager application
Version:    0.1.2
Release:    1
Group:      Communications/Bluetooth
License:    GPLv3
URL:        http://javispedro.com
Source0:    %{name}-%{version}.tar.bz2
Source100:  salmeta.yaml
Requires:   sailfishsilica-qt5 >= 0.10.9
Requires:   sailfish-components-bluetooth-qt5
Requires:   nemo-qml-plugin-configuration-qt5
Requires:   systemd
Requires:   systemd-user-session-targets
BuildRequires:  pkgconfig(sailfishapp) >= 1.0.2
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Bluetooth)
BuildRequires:  pkgconfig(mlite5)
BuildRequires:  pkgconfig(libiphb)
BuildRequires:  libgato-devel
BuildRequires:  qt5-qtconnectivity-qtbluetooth-devel
BuildRequires:  desktop-file-utils

%description
Salmeta is a Metawatch manager program for Sailfish devices that allows
pairing a Metawatch, forwarding notifications as well as configuring the
watch layout and widgets.


%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
# >> build pre
# << build pre

%qtc_qmake5 

%qtc_make %{?_smp_mflags}

# >> build post
# << build post

%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%qmake5_install

# >> install post
# << install post

desktop-file-install --delete-original       \
  --dir %{buildroot}%{_datadir}/applications             \
   %{buildroot}%{_datadir}/applications/*.desktop

%post
# >> post
if [ "$1" -ge 1 ]; then
systemctl-user daemon-reload || :
systemctl-user restart salmeta.service || :
fi
# << post

%postun
# >> postun
if [ "$1" -eq 0 ]; then
systemctl-user stop salmeta.service || :
systemctl-user daemon-reload || :
fi
# << postun

%files
%defattr(-,root,root,-)
%{_bindir}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/86x86/apps/%{name}.png
%{_libdir}/systemd/user/salmeta.service
# >> files
# << files