Add systemd dbs for distro, site, and machine local dconf databases

Resolves: #1546644
This commit is contained in:
Ray Strode 2018-02-19 10:56:00 -05:00
parent da9090ff34
commit 55ab91be8b

View File

@ -3,7 +3,7 @@
Name: dconf Name: dconf
Version: 0.26.1 Version: 0.26.1
Release: 2%{?dist} Release: 3%{?dist}
Summary: A configuration system Summary: A configuration system
Group: System Environment/Base Group: System Environment/Base
@ -43,9 +43,19 @@ make V=1 %{?_smp_mflags}
%install %install
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
#we need this beacuse ibus and gdm installs file there
install -d $RPM_BUILD_ROOT%{_sysconfdir}/dconf/db mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dconf/profile
install -d $RPM_BUILD_ROOT%{_sysconfdir}/dconf/profile
cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/dconf/profile/user
user-db:user
system-db:local
system-db:site
system-db:distro
EOF
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dconf/db/local.d/locks
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dconf/db/site.d/locks
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dconf/db/distro.d/locks
%post %post
/sbin/ldconfig /sbin/ldconfig
@ -59,6 +69,7 @@ if [ $1 -eq 0 ] ; then
fi fi
%posttrans %posttrans
dconf update
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
@ -66,6 +77,12 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%license COPYING %license COPYING
%dir %{_sysconfdir}/dconf %dir %{_sysconfdir}/dconf
%dir %{_sysconfdir}/dconf/db %dir %{_sysconfdir}/dconf/db
%dir %{_sysconfdir}/dconf/db/local.d
%dir %{_sysconfdir}/dconf/db/local.d/locks
%dir %{_sysconfdir}/dconf/db/site.d
%dir %{_sysconfdir}/dconf/db/site.d/locks
%dir %{_sysconfdir}/dconf/db/distro.d
%dir %{_sysconfdir}/dconf/db/distro.d/locks
%dir %{_sysconfdir}/dconf/profile %dir %{_sysconfdir}/dconf/profile
%{_libdir}/gio/modules/libdconfsettings.so %{_libdir}/gio/modules/libdconfsettings.so
%{_libexecdir}/dconf-service %{_libexecdir}/dconf-service
@ -76,6 +93,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%{_mandir}/man1/dconf-service.1.gz %{_mandir}/man1/dconf-service.1.gz
%{_mandir}/man1/dconf.1.gz %{_mandir}/man1/dconf.1.gz
%{_mandir}/man7/dconf.7.gz %{_mandir}/man7/dconf.7.gz
%config(noreplace) %{_sysconfdir}/dconf/profile/user
%files devel %files devel
%{_includedir}/dconf %{_includedir}/dconf
@ -85,6 +103,10 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%{_datadir}/vala %{_datadir}/vala
%changelog %changelog
* Mon Feb 19 2018 Ray Strode <rstrode@redhat.com> - 0.26.1-3
- Add systemd dbs for distro, site, and machine local dconf databases
Resolves: #1546644
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.26.1-2 * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.26.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild