Skip to content

Latest commit

 

History

History
135 lines (108 loc) · 3.11 KB

connectionagent-qt5.spec

File metadata and controls

135 lines (108 loc) · 3.11 KB
 
1
2
3
4
5
6
Name: connectionagent-qt5
# >> macros
# << macros
Summary: User Agent daemon
May 5, 2014
May 5, 2014
7
Version: 0.11.6
8
9
10
11
12
Release: 0
Group: Communications/Connectivity Adaptation
License: LGPLv2
URL: http://github.com/lpotter/connectionagent
Source0: %{name}-%{version}.tar.bz2
Feb 5, 2014
Feb 5, 2014
13
Source1: connectionagent.tracing
14
Requires: connman-qt5-declarative
Jul 4, 2013
Jul 4, 2013
15
16
Requires: systemd
Requires: systemd-user-session-targets
Apr 13, 2014
Apr 13, 2014
17
Requires: connman >= 1.21
18
19
20
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(connman-qt5)
Oct 1, 2013
Oct 1, 2013
21
BuildRequires: pkgconfig(qofono-qt5)
May 28, 2013
May 28, 2013
22
23
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Test)
Jun 5, 2013
Jun 5, 2013
24
BuildRequires: pkgconfig(Qt5Qml)
Mar 19, 2014
Mar 19, 2014
25
Provides: connectionagent > 0.10.1
Jun 26, 2013
Jun 26, 2013
26
Obsoletes: connectionagent <= 0.7.6
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
%description
Connection Agent provides multi user access to connman's User Agent.
It also provides autoconnecting features.
%package declarative
Summary: Declarative plugin for connection agent.
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
Requires: %{name} = %{version}
%description declarative
This package contains the declarative plugin for connection agent.
%package test
May 28, 2013
May 28, 2013
43
Summary: auto test for connection agent.
44
45
46
47
48
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
Requires: %{name} = %{version}
%description test
May 28, 2013
May 28, 2013
49
This package contains the auto tests for connection agent.
Feb 5, 2014
Feb 5, 2014
51
52
53
54
55
56
57
58
59
%package tracing
Summary: Configuration for Connectionagent to enable tracing
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
%description tracing
Will enable tracing for Connectionagent
60
61
62
63
64
65
66
67
68
69
%prep
%setup -q -n %{name}-%{version}
# >> setup
# << setup
%build
# >> build pre
# << build pre
Jan 28, 2014
Jan 28, 2014
70
%qmake5
Oct 2, 2013
Oct 2, 2013
72
make %{?_smp_mflags}
73
74
75
76
77
78
79
80
# >> build post
# << build post
%install
rm -rf %{buildroot}
# >> install pre
# << install pre
Jul 25, 2013
Jul 25, 2013
81
%qmake5_install
Feb 5, 2014
Feb 5, 2014
83
84
85
86
%make_install
mkdir -p %{buildroot}%{_sysconfdir}/tracing/connectionagent/
cp -a %{SOURCE1} %{buildroot}%{_sysconfdir}/tracing/connectionagent/
87
# >> install post
Jul 4, 2013
Jul 4, 2013
88
89
mkdir -p %{buildroot}%{_libdir}/systemd/user/user-session.target.wants
ln -s ../connectionagent.service %{buildroot}%{_libdir}/systemd/user/user-session.target.wants/
90
91
# << install post
Jul 4, 2013
Jul 4, 2013
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
%post
# >> post
if [ "$1" -ge 1 ]; then
systemctl-user daemon-reload || :
systemctl-user restart connectionagent.service || :
fi
# << post
%postun
# >> postun
if [ "$1" -eq 0 ]; then
systemctl-user stop connectionagent.service || :
systemctl-user daemon-reload || :
fi
# << postun
108
109
110
111
112
%files
%defattr(-,root,root,-)
%{_bindir}/connectionagent
%{_datadir}/dbus-1/services/com.jolla.Connectiond.service
%{_libdir}/systemd/user/connectionagent.service
Jun 6, 2013
Jun 6, 2013
113
%{_sysconfdir}/dbus-1/session.d/connectionagent.conf
Jul 4, 2013
Jul 4, 2013
115
%{_libdir}/systemd/user/user-session.target.wants/connectionagent.service
116
117
118
119
# << files
%files declarative
%defattr(-,root,root,-)
Jun 5, 2013
Jun 5, 2013
120
%{_libdir}/qt5/qml/com/jolla/connection/*
121
122
123
# >> files declarative
# << files declarative
May 28, 2013
May 28, 2013
124
125
%files test
%defattr(-,root,root,-)
May 28, 2013
May 28, 2013
126
%{_prefix}/opt/tests/libqofono/*
May 28, 2013
May 28, 2013
127
128
# >> files test
# << files test
Feb 5, 2014
Feb 5, 2014
129
130
131
132
133
134
%files tracing
%defattr(-,root,root,-)
%config %{_sysconfdir}/tracing/connectionagent
# >> files tracing
# << files tracing