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
42 mkdir -p %{buildroot}%{_unitdir}/user-basic@.target.wants
43 mkdir -p %{buildroot}%{_unitdir}/user-default@.target.wants
44 mkdir -p %{buildroot}%{_unitdir}/user-sockets@.target.wants
46 install -m 0644 %{_builddir}/%{name}-%{version}/packaging/%{alias}.service %{buildroot}%{_unitdir_user}/%{alias}.service
47 install -m 0644 %{_builddir}/%{name}-%{version}/packaging/%{alias}-post.service %{buildroot}%{_unitdir_user}/%{alias}-post.service
48 install -m 0644 %{_builddir}/%{name}-%{version}/packaging/%{alias}-ondemand.service %{buildroot}%{_unitdir_user}/%{alias}-ondemand.service
49 install -m 0644 %{_builddir}/%{name}-%{version}/packaging/%{alias}.socket %{buildroot}%{_unitdir_user}/%{alias}.socket
51 install -m 0644 %{_builddir}/%{name}-%{version}/packaging/%{alias}@.service %{buildroot}%{_unitdir}/%{alias}@.service
52 install -m 0644 %{_builddir}/%{name}-%{version}/packaging/%{alias}-post@.service %{buildroot}%{_unitdir}/%{alias}-post@.service
53 install -m 0644 %{_builddir}/%{name}-%{version}/packaging/%{alias}-ondemand@.service %{buildroot}%{_unitdir}/%{alias}-ondemand@.service
54 install -m 0644 %{_builddir}/%{name}-%{version}/packaging/%{alias}@.socket %{buildroot}%{_unitdir}/%{alias}@.socket
56 ln -s ../%{alias}.service %{buildroot}%{_unitdir_user}/basic.target.wants/%{alias}.service
57 ln -s ../%{alias}-post.service %{buildroot}%{_unitdir_user}/delayed.target.wants/%{alias}-post.service
58 ln -s ../%{alias}.socket %{buildroot}%{_unitdir_user}/sockets.target.wants/%{alias}.socket
60 ln -s ../%{alias}@.service %{buildroot}%{_unitdir}/user-basic@.target.wants/%{alias}@.service
61 ln -s ../%{alias}-post@.service %{buildroot}%{_unitdir}/user-default@.target.wants/%{alias}-post@.service
62 ln -s ../%{alias}@.socket %{buildroot}%{_unitdir}/user-sockets@.target.wants/%{alias}@.socket
66 mkdir -p /opt/share/.elementary
67 chmod -R 775 /opt/share/.elementary
68 chown -R :users /opt/share/.elementary
69 chsmack -a 'User::App::Shared' /opt/share/.elementary
70 chsmack -t /opt/share/.elementary
74 rm -f %{buildroot}%{_unitdir_user}/basic.target.wants/%{alias}.service
75 rm -f %{buildroot}%{_unitdir_user}/delayed.target.wants/%{alias}-post.service
76 rm -f %{buildroot}%{_unitdir}/user-basic@.target.wants/%{alias}@.service
77 rm -f %{buildroot}%{_unitdir}/user-default@.target.wants/%{alias}-post@.service
80 %defattr(-,root,root,-)
81 %{TZ_SYS_BIN}/efl_config
82 %{_unitdir_user}/%{alias}.service
83 %{_unitdir_user}/%{alias}-post.service
84 %{_unitdir_user}/%{alias}-ondemand.service
85 %{_unitdir_user}/basic.target.wants/%{alias}.service
86 %{_unitdir_user}/delayed.target.wants/%{alias}-post.service
87 %{_unitdir_user}/sockets.target.wants/%{alias}.socket
88 %{_unitdir_user}/%{alias}.socket
89 %{_unitdir}/%{alias}@.service
90 %{_unitdir}/%{alias}-post@.service
91 %{_unitdir}/%{alias}-ondemand@.service
92 %{_unitdir}/user-basic@.target.wants/%{alias}@.service
93 %{_unitdir}/user-default@.target.wants/%{alias}-post@.service
94 %{_unitdir}/user-sockets@.target.wants/%{alias}@.socket
95 %{_unitdir}/%{alias}@.socket
96 %manifest %{alias}.manifest