--- /dev/null
+d /tmp/.dotnet 1777 root users
+t /tmp/.dotnet - - - - security.SMACK64="User::App::Shared"
+t /tmp/.dotnet - - - - security.SMACK64TRANSMUTE="TRUE"
+d /tmp/.dotnet/lockfiles 1777 root users
+t /tmp/.dotnet/lockfiles - - - - security.SMACK64="User::App::Shared"
+d /tmp/.dotnet/lockfiles/global 1777 root users
+t /tmp/.dotnet/lockfiles/global - - - - security.SMACK64="User::App::Shared"
+t /tmp/.dotnet/lockfiles/global - - - - security.SMACK64TRANSMUTE="TRUE"
+d /tmp/.dotnet/shm 1777 root users
+t /tmp/.dotnet/shm - - - - security.SMACK64="User::App::Shared"
+d /tmp/.dotnet/shm/global 1777 root users
+t /tmp/.dotnet/shm/global - - - - security.SMACK64="User::App::Shared"
+t /tmp/.dotnet/shm/global - - - - security.SMACK64TRANSMUTE="TRUE"
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
AutoReqProv: no
+Source1: %{name}.conf
BuildRequires: cmake
BuildRequires: pkgconfig(aul)
Requires(post): /sbin/ldconfig
Requires(post): /usr/bin/systemctl
+Requires(post): /usr/bin/chsmack
Requires(postun): /sbin/ldconfig
Requires(postun): /usr/bin/systemctl
Requires(preun): /usr/bin/systemctl
%prep
%setup -q
+cp %{SOURCE1} .
%build
mkdir -p %{buildroot}%{_native_lib_dir}
ln -sf %{_libdir}/libsqlite3.so.0 %{buildroot}%{_native_lib_dir}/libsqlite3.so
+mkdir -p %{buildroot}/etc/tmpfiles.d
+install -m 0644 %{name}.conf %{buildroot}/etc/tmpfiles.d/%{name}.conf
+
+%post
+mkdir -p /opt/etc/skel/.dotnet
+chsmack -t -a User::App::Shared /opt/etc/skel/.dotnet
+
%files
%manifest dotnet-launcher.manifest
%{_loaderdir}/dotnet.loader
%{_bindir}/dotnet-launcher
%{_libdir}/libdotnet_launcher_util.so
%{_libdir}/libni_common.so
+/etc/tmpfiles.d/%{name}.conf
%files devel
%manifest dotnet-launcher.manifest