1 %define alias efl-config
3 Summary: EFL Config daemon
6 Provides: efl-config = %{version}-%{release}
7 Group: System/Libraries
9 Source: %{name}-%{version}.tar.gz
10 Source2: %{alias}.manifest
11 BuildRequires: automake
12 BuildRequires: libtool
13 BuildRequires: pkgconfig(elementary)
14 BuildRequires: pkgconfig(ecore-wl2)
15 BuildRequires: pkgconfig(libtzplatform-config)
16 BuildRequires: pkgconfig(libsystemd)
17 BuildRequires: pkgconfig(capi-system-info)
27 export CFLAGS+=" -DEFL_BETA_API_SUPPORT "
30 TZ_SYS_BIN=%{TZ_SYS_BIN} ./configure --prefix %{_prefix}/
32 export TZ_SYS_RO_SHARE="%{TZ_SYS_RO_SHARE}"
39 mkdir -p %{buildroot}%{_unitdir_user}/basic.target.wants
40 mkdir -p %{buildroot}%{_unitdir_user}/delayed.target.wants
41 mkdir -p %{buildroot}%{_unitdir_user}/sockets.target.wants
43 install -m 0644 %{_builddir}/%{name}-%{version}/packaging/%{alias}.service %{buildroot}%{_unitdir_user}/%{alias}.service
44 install -m 0644 %{_builddir}/%{name}-%{version}/packaging/%{alias}-post.service %{buildroot}%{_unitdir_user}/%{alias}-post.service
45 install -m 0644 %{_builddir}/%{name}-%{version}/packaging/%{alias}-ondemand.service %{buildroot}%{_unitdir_user}/%{alias}-ondemand.service
46 install -m 0644 %{_builddir}/%{name}-%{version}/packaging/%{alias}.socket %{buildroot}%{_unitdir_user}/%{alias}.socket
48 ln -s ../%{alias}.service %{buildroot}%{_unitdir_user}/basic.target.wants/%{alias}.service
49 ln -s ../%{alias}-post.service %{buildroot}%{_unitdir_user}/delayed.target.wants/%{alias}-post.service
50 ln -s ../%{alias}.socket %{buildroot}%{_unitdir_user}/sockets.target.wants/%{alias}.socket
54 mkdir -p /opt/share/.elementary
55 chmod -R 775 /opt/share/.elementary
56 chown -R :users /opt/share/.elementary
57 chsmack -a 'User::App::Shared' /opt/share/.elementary
58 chsmack -t /opt/share/.elementary
62 rm -f %{buildroot}%{_unitdir_user}/basic.target.wants/%{alias}.service
63 rm -f %{buildroot}%{_unitdir_user}/delayed.target.wants/%{alias}-post.service
66 %defattr(-,root,root,-)
67 %{TZ_SYS_BIN}/efl_config
68 %{_unitdir_user}/%{alias}.service
69 %{_unitdir_user}/%{alias}-post.service
70 %{_unitdir_user}/%{alias}-ondemand.service
71 %{_unitdir_user}/basic.target.wants/%{alias}.service
72 %{_unitdir_user}/delayed.target.wants/%{alias}-post.service
73 %{_unitdir_user}/sockets.target.wants/%{alias}.socket
74 %{_unitdir_user}/%{alias}.socket
75 %manifest %{alias}.manifest