blob: 45af0cdcec195cc947013808cb50dd711a98446c (
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
101
102
103
104
105
106
|
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.27
#
Name: saltoq
# >> 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: Qualcomm Toq manager application
Version: 0.1
Release: 1
Group: Communications/Bluetooth
License: GPLv3
URL: https://gitorious.org/javispedro-jolla-misc/salmeta/
Source0: %{name}-%{version}.tar.bz2
Source100: saltoq.yaml
Requires: sailfishsilica-qt5 >= 0.10.9
Requires: sailfish-components-bluetooth-qt5
Requires: systemd
Requires: systemd-user-session-targets
BuildRequires: pkgconfig(sailfishapp) >= 1.0.2
BuildRequires: pkgconfig(Qt5Core) >= 5.2
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Bluetooth) >= 5.2
BuildRequires: pkgconfig(Qt5Contacts)
BuildRequires: pkgconfig(qt5-boostable)
BuildRequires: pkgconfig(mlite5)
BuildRequires: pkgconfig(libiphb)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(commhistory-qt5)
BuildRequires: pkgconfig(qtcontacts-sqlite-qt5-extensions)
BuildRequires: pkgconfig(libmkcal-qt5)
BuildRequires: pkgconfig(libkcalcoren-qt5)
BuildRequires: pkgconfig(openobex)
BuildRequires: qt5-qtconnectivity-qtbluetooth-devel
BuildRequires: desktop-file-utils
%description
Qualcomm Toq.
%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
grep -q "^/usr/bin/saltoqd" /usr/share/mapplauncherd/privileges || echo "/usr/bin/saltoqd,chmp" >> /usr/share/mapplauncherd/privileges
systemctl-user daemon-reload || :
systemctl-user restart saltoqd.service || :
fi
# << post
%postun
# >> postun
if [ "$1" -eq 0 ]; then
systemctl-user stop saltoqd.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/saltoqd.service
%{_libdir}/systemd/system/saltoq-bt-sniff-subrate.service
# >> files
# << files
|