/
voicecall-qt5.spec
135 lines (113 loc) · 4.04 KB
1
2
Name: voicecall-qt5
Summary: Dialer engine for Nemo Mobile
3
Version: 0.6.20
4
5
Release: 1
Group: Communications/Telephony
6
License: ASL 2.0
7
8
URL: http://github.com/nemomobile/voicecall
Source0: %{name}-%{version}.tar.bz2
9
Source1: %{name}.privileges
10
11
Requires: systemd
Requires: systemd-user-session-targets
12
Requires: voicecall-qt5-plugin-telepathy = %{version}
13
14
15
16
17
18
19
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Multimedia)
BuildRequires: pkgconfig(libresourceqt5)
BuildRequires: pkgconfig(libpulse-mainloop-glib)
BuildRequires: pkgconfig(ngf-qt5)
20
BuildRequires: pkgconfig(qt5-boostable)
21
BuildRequires: pkgconfig(nemodevicelock)
22
23
24
Provides: voicecall-core >= 0.4.9
Provides: voicecall-libs >= 0.4.9
25
26
27
28
Provides: voicecall-plugin-pulseaudio >= 0.4.9
Provides: voicecall-qt5-plugin-pulseaudio >= 0.5.1
Provides: voicecall-plugin-resource-policy >= 0.4.9
Provides: voicecall-qt5-plugin-resource-policy >= 0.5.1
29
30
Obsoletes: voicecall-core < 0.4.9
Obsoletes: voicecall-libs < 0.4.9
31
32
33
34
Obsoletes: voicecall-plugin-pulseaudio < 0.4.9
Obsoletes: voicecall-qt5-plugin-pulseaudio < 0.5.1
Obsoletes: voicecall-plugin-resource-policy < 0.4.9
Obsoletes: voicecall-qt5-plugin-resource-policy < 0.5.1
35
36
37
38
39
40
41
42
43
44
45
46
47
48
%description
%{summary}.
%package devel
Summary: Voicecall development package
Group: Communications/Telephony
Requires: %{name} = %{version}-%{release}
Provides: voicecall-devel >= 0.4.9
Obsoletes: voicecall-devel < 0.4.9
%description devel
%{summary}.
49
50
51
52
53
54
55
56
57
58
59
%package plugin-telepathy
Summary: Voicecall plugin for calls using telepathy
Group: Communications/Telephony
Requires: %{name} = %{version}-%{release}
Conflicts: voicecall-qt5-plugin-ofono
BuildRequires: pkgconfig(TelepathyQt5)
BuildRequires: pkgconfig(TelepathyQt5Farstream)
%description plugin-telepathy
%{summary}.
60
61
62
63
64
%package plugin-ofono
Summary: Voicecall plugin for calls using ofono
Group: Communications/Telephony
Requires: %{name} = %{version}-%{release}
Provides: voicecall-plugin-ofono >= 0.4.9
65
Conflicts: voicecall-qt5-plugin-telepathy
66
Obsoletes: voicecall-plugin-ofono < 0.4.9
67
BuildRequires: pkgconfig(qofono-qt5)
68
69
70
71
72
73
74
75
76
77
78
%description plugin-ofono
%{summary}.
%prep
%setup -q -n %{name}-%{version}
%build
%qmake5
79
qmake -qt=5 CONFIG+=enable-ngf CONFIG+=enable-audiopolicy CONFIG+=enable-telepathy CONFIG+=enable-nemo-devicelock CONFIG+=install-servicefiles
80
make %{?_smp_mflags}
81
82
83
%install
rm -rf %{buildroot}
84
%qmake5_install
85
86
87
mkdir -p %{buildroot}%{_libdir}/systemd/user/user-session.target.wants
ln -s ../voicecall-manager.service %{buildroot}%{_libdir}/systemd/user/user-session.target.wants/
88
89
90
91
mkdir -p %{buildroot}%{_datadir}/mapplauncherd/privileges.d
install -m 644 -p %{SOURCE1} %{buildroot}%{_datadir}/mapplauncherd/privileges.d/
92
93
94
95
96
97
98
99
100
101
102
103
104
%post
/sbin/ldconfig
if [ "$1" -ge 1 ]; then
systemctl-user daemon-reload || :
systemctl-user restart voicecall-manager.service || :
fi
%postun
/sbin/ldconfig
if [ "$1" -eq 0 ]; then
systemctl-user stop voicecall-manager.service || :
systemctl-user daemon-reload || :
fi
105
106
107
108
109
110
%files
%defattr(-,root,root,-)
%{_libdir}/libvoicecall.so.1
%{_libdir}/libvoicecall.so.1.0
%{_libdir}/libvoicecall.so.1.0.0
111
%dir %{_libdir}/qt5/qml/org/nemomobile/voicecall
112
113
%{_libdir}/qt5/qml/org/nemomobile/voicecall/libvoicecall.so
%{_libdir}/qt5/qml/org/nemomobile/voicecall/qmldir
114
%{_bindir}/voicecall-manager
115
116
%dir %{_libdir}/voicecall
%dir %{_libdir}/voicecall/plugins
117
118
%{_libdir}/voicecall/plugins/libvoicecall-playback-manager-plugin.so
%{_libdir}/voicecall/plugins/libvoicecall-ngf-plugin.so
119
%{_libdir}/voicecall/plugins/libvoicecall-mce-plugin.so
120
%{_libdir}/systemd/user/voicecall-manager.service
121
%{_libdir}/systemd/user/user-session.target.wants/voicecall-manager.service
122
%{_datadir}/mapplauncherd/privileges.d/*
123
124
125
126
127
%files devel
%defattr(-,root,root,-)
%{_libdir}/libvoicecall.so
128
129
130
131
%files plugin-telepathy
%defattr(-,root,root,-)
%{_libdir}/voicecall/plugins/libvoicecall-telepathy-plugin.so
132
133
134
%files plugin-ofono
%defattr(-,root,root,-)
%{_libdir}/voicecall/plugins/libvoicecall-ofono-plugin.so