/
profiled.spec
107 lines (84 loc) · 2.73 KB
/
profiled.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
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
107
Name: profiled
Summary: Profile daemon, manages user settings
Version: 1.0.14
Release: 1
License: BSD
URL: https://github.com/sailfishos/profiled
Source0: %{name}-%{version}.tar.bz2
Requires: profiled-settings
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: doxygen
%description
Gets default set of settings from profile data packages
that are installed on the device .
Currently active profile and values within profile can
be changed using C language API implemented in libprofile.
Changes to values are broadcast as D-Bus signals so that
active clients can be avare of changes without polling.
%package doc
Summary: API documentation for libprofile
Requires: %{name} = %{version}-%{release}
%description doc
Doxygen generated files documenting the C language API used by
the client applications and the D-Bus API used by libprofile
for communication with profiled.
%package -n profileclient
Summary: Command line test tool for profiled
Requires: %{name} = %{version}-%{release}
%description -n profileclient
The profileclient tool can be used to query/change
profiles and profile values.
%package settings-default
Summary: Default settings for profiled
Requires: %{name} = %{version}-%{release}
Provides: profiled-settings
%description settings-default
Default settings for profiled.
%package devel
Summary: Development files for libprofile
Requires: %{name} = %{version}-%{release}
%description devel
C language headers for building client applications using
profiled library.
%prep
%setup -q -n %{name}-%{version}
%define build_variables ROOT=%{buildroot} LIBDIR=%{_libdir} DLLDIR=%{_libdir} PKGCFGDIR=%{_libdir}/pkgconfig
%build
make %{build_variables} %{_smp_mflags}
%install
rm -rf %{buildroot}
make %{build_variables} install-profiled
make %{build_variables} install-libprofile
make %{build_variables} install-libprofile-dev
make %{build_variables} install-libprofile-doc
make %{build_variables} install-profileclient
rm %{buildroot}/%{_libdir}/libprofile.a
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%license LICENSE
%dir %{_sysconfdir}/profiled
%{_bindir}/%{name}
%{_libdir}/libprofile.so.*
%{_datadir}/dbus-1/services/com.nokia.profiled.service
%{_userunitdir}/profiled.service
%files doc
%defattr(-,root,root,-)
%{_docdir}/libprofile-doc/html/*
%{_mandir}/man3/*
%files -n profileclient
%defattr(-,root,root,-)
%{_bindir}/profileclient
%files settings-default
%defattr(-,root,root,-)
%{_sysconfdir}/profiled/10.meego_default.ini
%files devel
%defattr(-,root,root,-)
%license LICENSE
%{_includedir}/%{name}/*
%{_libdir}/libprofile.so
%{_libdir}/pkgconfig/profile.pc