a9c134
%define glib2_version 2.44.0
a9c134
a9c134
Name:           dconf
a9c134
Version:        0.28.0
a9c134
Release:        4%{?dist}
a9c134
Summary:        A configuration system
a9c134
a9c134
License:        LGPLv2+ and GPLv2+ and GPLv3+
a9c134
URL:            http://live.gnome.org/dconf
a9c134
Source0:        http://download.gnome.org/sources/dconf/0.28/dconf-%{version}.tar.xz
a9c134
a9c134
# https://bugzilla.redhat.com/show_bug.cgi?id=1567184
a9c134
Patch1:         dconf-0.28.0-dbus-1.patch
a9c134
a9c134
# https://bugzilla.redhat.com/show_bug.cgi?id=1281253
a9c134
Patch2:         dconf-0.26.0-permissions.patch
a9c134
a9c134
# https://bugzilla.redhat.com/show_bug.cgi?id=1570569
a9c134
Patch3:         dconf-0.28.0-db-mtime.patch
a9c134
a9c134
BuildRequires:  glib2-devel >= %{glib2_version}
a9c134
BuildRequires:  dbus-devel
a9c134
BuildRequires:  gtk-doc
a9c134
BuildRequires:  meson
a9c134
BuildRequires:  vala
a9c134
a9c134
Requires:       dbus
a9c134
Requires:       glib2%{?_isa} >= %{glib2_version}
a9c134
a9c134
%description
a9c134
dconf is a low-level configuration system. Its main purpose is to provide a
a9c134
backend to the GSettings API in GLib.
a9c134
a9c134
%package devel
a9c134
Summary: Header files and libraries for dconf development
a9c134
Requires: %{name}%{?_isa} = %{version}-%{release}
a9c134
a9c134
%description devel
a9c134
dconf development package. Contains files needed for doing software
a9c134
development using dconf.
a9c134
a9c134
%prep
a9c134
%autosetup -p1
a9c134
a9c134
%build
a9c134
%meson -Denable-gtk-doc=true
a9c134
%meson_build
a9c134
a9c134
%install
a9c134
%meson_install
a9c134
a9c134
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dconf/profile
a9c134
a9c134
cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/dconf/profile/user
a9c134
user-db:user
a9c134
system-db:local
a9c134
system-db:site
a9c134
system-db:distro
a9c134
EOF
a9c134
a9c134
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dconf/db/local.d/locks
a9c134
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dconf/db/site.d/locks
a9c134
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dconf/db/distro.d/locks
a9c134
a9c134
# dconf-dbus-1 was removed in dconf 0.24,
a9c134
# we keep just the library for compatibility
a9c134
rm -fv $RPM_BUILD_ROOT%{_libdir}/libdconf-dbus-1.so
a9c134
a9c134
%post
a9c134
/sbin/ldconfig
a9c134
gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules
a9c134
a9c134
%postun
a9c134
/sbin/ldconfig
a9c134
if [ $1 -eq 0 ] ; then
a9c134
  gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules
a9c134
  glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
a9c134
fi
a9c134
a9c134
%posttrans
a9c134
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
a9c134
dconf update
a9c134
a9c134
%files
a9c134
%license COPYING
a9c134
%dir %{_sysconfdir}/dconf
a9c134
%dir %{_sysconfdir}/dconf/db
a9c134
%dir %{_sysconfdir}/dconf/db/local.d
a9c134
%dir %{_sysconfdir}/dconf/db/local.d/locks
a9c134
%dir %{_sysconfdir}/dconf/db/site.d
a9c134
%dir %{_sysconfdir}/dconf/db/site.d/locks
a9c134
%dir %{_sysconfdir}/dconf/db/distro.d
a9c134
%dir %{_sysconfdir}/dconf/db/distro.d/locks
a9c134
%dir %{_sysconfdir}/dconf/profile
a9c134
%{_libdir}/gio/modules/libdconfsettings.so
a9c134
%{_libexecdir}/dconf-service
a9c134
%{_datadir}/dbus-1/services/ca.desrt.dconf.service
a9c134
%{_bindir}/dconf
a9c134
%{_libdir}/libdconf.so.1*
a9c134
%{_libdir}/libdconf-dbus-1.so.0*
a9c134
%{_datadir}/bash-completion/completions/dconf
a9c134
%{_mandir}/man1/dconf-service.1.gz
a9c134
%{_mandir}/man1/dconf.1.gz
a9c134
%{_mandir}/man7/dconf.7.gz
a9c134
%config(noreplace) %{_sysconfdir}/dconf/profile/user
a9c134
a9c134
%files devel
a9c134
%{_includedir}/dconf
a9c134
%{_libdir}/libdconf.so
a9c134
%{_libdir}/pkgconfig/dconf.pc
a9c134
%dir %{_datadir}/gtk-doc
a9c134
%dir %{_datadir}/gtk-doc/html
a9c134
%{_datadir}/gtk-doc/html/dconf
a9c134
%{_datadir}/vala
a9c134
a9c134
%changelog
a9c134
* Wed Jul 25 2018 Marek Kasik <mkasik@redhat.com> - 0.28.0-3
a9c134
- Check mtimes of files in /etc/dconf/db/*.d/ directories
a9c134
- when running "dconf update"
a9c134
- Resolves: #1570569
a9c134
a9c134
* Wed May 23 2018 Marek Kasik <mkasik@redhat.com> - 0.28.0-2
a9c134
- Return dconf-dbus-1 library (without devel files)
a9c134
- Related: #1567184
a9c134
a9c134
* Tue Mar 13 2018 Kalev Lember <klember@redhat.com> - 0.28.0-1
a9c134
- Update to 0.28.0
a9c134
- Resolves: #1567184
a9c134
a9c134
* Mon Mar  6 2017 Marek Kasik <mkasik@redhat.com> - 0.26.0-2
a9c134
- Restore permissions on updated database
a9c134
- Resolves: #1281253
a9c134
a9c134
* Fri Feb 10 2017 Marek Kasik <mkasik@redhat.com> - 0.26.0-1
a9c134
- Update to 0.26.0
a9c134
- Remove editor subpackage
a9c134
- Return libdbus-1 library (not header or pkgconfig files)
a9c134
- Resolves: #1386841
a9c134
a9c134
* Tue Mar 24 2015 Marek Kasik <mkasik@redhat.com> - 0.22.0-2
a9c134
- Remove unused patches
a9c134
- Resolves: #1174448
a9c134
a9c134
* Fri Sep 19 2014 Kalev Lember <kalevlember@gmail.com> - 0.22.0-1
a9c134
- Update to 0.22.0
a9c134
- Resolves: #1174448
a9c134
a9c134
* Fri Apr  4 2014 Marek Kasik <mkasik@redhat.com> - 0.16.0-6
a9c134
- Don't hang shutdown
a9c134
- Resolves: #1082994
a9c134
a9c134
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.16.0-5
a9c134
- Mass rebuild 2014-01-24
a9c134
a9c134
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.16.0-4
a9c134
- Mass rebuild 2013-12-27
a9c134
a9c134
* Wed Jul 31 2013 Ray Strode <rstrode@redhat.com> 0.16.0-3
a9c134
- Add system dbs for distro, site, and machine local dconf databases
a9c134
  Resolves: #990630
a9c134
a9c134
* Tue Jun 25 2013 Matthias Clasen <mclasen@redhat.com> - 0.16.0-2
a9c134
- Fix a frequent crash (#975687)
a9c134
a9c134
* Mon Mar 25 2013 Kalev Lember <kalevlember@gmail.com> - 0.16.0-1
a9c134
- Update to 0.16.0
a9c134
a9c134
* Mon Feb 11 2013 Kalev Lember <kalevlember@gmail.com> - 0.15.3-1
a9c134
- Update to 0.15.3
a9c134
- Install the HighContrast icons and update the icon cache scriptlets to take
a9c134
  this into account
a9c134
a9c134
* Sat Dec 22 2012 Rex Dieter <rdieter@fedoraproject.org> - 0.15.2-2
a9c134
- -devel: drop Requires: glib2-devel, already gets pulled in via pkgconfig deps
a9c134
- -editor: add icon scriptlets
a9c134
- tighten subpkg deps via %%{_isa}
a9c134
a9c134
* Tue Nov 20 2012 Richard Hughes <hughsient@gmail.com> - 0.15.2-1
a9c134
- Update to 0.15.2
a9c134
a9c134
* Fri Nov 09 2012 Kalev Lember <kalevlember@gmail.com> - 0.15.0-3
a9c134
- Move some of the rpm scriptlets back to %%posttrans
a9c134
  (glib-compile-schemas, icon cache)
a9c134
a9c134
* Thu Nov  8 2012 Marek Kasik <mkasik@redhat.com> - 0.15.0-2
a9c134
- Move dconf-editor's man page to the dconf-editor sub-package
a9c134
a9c134
* Wed Nov  7 2012 Marek Kasik <mkasik@redhat.com> - 0.15.0-1
a9c134
- Update to 0.15.0
a9c134
- Remove upstreamed patch
a9c134
a9c134
* Wed Nov  7 2012 Marek Kasik <mkasik@redhat.com> - 0.14.0-4
a9c134
- Move %%posttrans commands to %%post (rpmlint related)
a9c134
a9c134
* Wed Nov  7 2012 Marek Kasik <mkasik@redhat.com> - 0.14.0-3
a9c134
- Update License field
a9c134
- Update Source URL
a9c134
- Add link of corresponding bug for the memory leak patch
a9c134
a9c134
* Wed Nov  7 2012 Marek Kasik <mkasik@redhat.com> - 0.14.0-2.1
a9c134
- Merge spec-file fixes from f18 branch
a9c134
a9c134
* Sun Oct 21 2012 Matthias Clasen <mclasen@redhat.com> - 0.14.0-2
a9c134
- Fix a memory leak
a9c134
- Update to 0.14.0
a9c134
a9c134
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.4-2
a9c134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a9c134
a9c134
* Tue Jul 17 2012 Richard Hughes <hughsient@gmail.com> - 0.13.4-1
a9c134
- Update to 0.13.4
a9c134
a9c134
* Thu Jun 07 2012 Richard Hughes <hughsient@gmail.com> - 0.13.0-2
a9c134
- Add missing file to file list.
a9c134
a9c134
* Thu Jun 07 2012 Richard Hughes <hughsient@gmail.com> - 0.13.0-1
a9c134
- Update to 0.13.0
a9c134
a9c134
* Sat May 05 2012 Kalev Lember <kalevlember@gmail.com> - 0.12.1-1
a9c134
- Update to 0.12.1
a9c134
a9c134
* Tue Mar 27 2012 Kalev Lember <kalevlember@gmail.com> - 0.12.0-1
a9c134
- Update to 0.12.0
a9c134
a9c134
* Tue Mar 20 2012 Kalev Lember <kalevlember@gmail.com> - 0.11.7-1
a9c134
- Update to 0.11.7
a9c134
a9c134
* Fri Mar  9 2012 Matthias Clasen <mclasen@redhat.com> - 0.11.6-1
a9c134
- Update to 0.11.6
a9c134
a9c134
* Mon Feb  6 2012 Matthias Clasen <mclasen@redhat.com> - 0.11.5-1
a9c134
- Update to 0.11.5
a9c134
a9c134
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.2-2
a9c134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a9c134
a9c134
* Mon Nov 21 2011 Matthias Clasen <mclasen@redhat.com> - 0.11.2-1
a9c134
- Update to 0.11.2
a9c134
a9c134
* Fri Nov  4 2011 Matthias Clasen <mclasen@redhat.com> - 0.11.0-2
a9c134
- Fix a typo (#710700)
a9c134
a9c134
* Wed Nov  2 2011 Matthias Clasen <mclasen@redhat.com> - 0.11.0-1
a9c134
- Update to 0.11.0
a9c134
a9c134
* Mon Sep 26 2011 Ray <rstrode@redhat.com> - 0.10.0-1
a9c134
- Update to 0.10.0
a9c134
a9c134
* Mon Sep 19 2011 Matthias Clasen <mclasen@redhat.com> - 0.9.1-1
a9c134
- Update to 0.9.1
a9c134
a9c134
* Tue Jul 26 2011 Matthias Clasen <mclasen@redhat.com> - 0.9.0-1
a9c134
- Update to 0.9.0
a9c134
a9c134
* Wed May 11 2011 Tomas Bzatek <tbzatek@redhat.com> - 0.7.5-1
a9c134
- Update to 0.7.5
a9c134
a9c134
* Fri May  6 2011 Matthias Clasen <mclasen@redhat.com> - 0.7.4-1
a9c134
- Update to 0.7.4
a9c134
a9c134
* Wed Apr  6 2011 Matthias Clasen <mclasen@redhat.com> - 0.7.3-2
a9c134
- Fix a crash in dconf-editor
a9c134
a9c134
* Tue Mar 22 2011 Tomas Bzatek <tbzatek@redhat.com> - 0.7.3-1
a9c134
- Update to 0.7.3
a9c134
a9c134
* Thu Feb 10 2011 Matthias Clasen <mclasen@redhat.com> - 0.7.2-3
a9c134
- Rebuild for newer gtk
a9c134
a9c134
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-2
a9c134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a9c134
a9c134
* Sat Feb  5 2011 Matthias Clasen <mclasen@redhat.com> - 0.7.2-1
a9c134
- Update to 0.7.2
a9c134
a9c134
* Wed Feb  2 2011 Matthias Clasen <mclasen@redhat.com> - 0.7.1-1
a9c134
- Update to 0.7.1
a9c134
a9c134
* Mon Jan 17 2011 Matthias Clasen <mclasen@redhat.com> - 0.7-1
a9c134
- Update to 0.7
a9c134
a9c134
* Wed Sep 29 2010 jkeating - 0.5.1-2
a9c134
- Rebuilt for gcc bug 634757
a9c134
a9c134
* Tue Sep 21 2010 Matthias Clasen <mclasen@redhat.com> - 0.5.1-1
a9c134
- Update to 0.5.1
a9c134
a9c134
* Thu Aug  5 2010 Matthias Clasen <mclasen@redhat.com> - 0.5-2
a9c134
- Fix up shared library symlinks (#621733)
a9c134
a9c134
* Tue Aug  3 2010 Matthias Clasen <mclasen@redhat.com> - 0.5-1
a9c134
- Update to 0.5
a9c134
a9c134
* Mon Jul 12 2010 Matthias Clasen <mclasen@redhat.com> - 0.4.2-1
a9c134
- Update to 0.4.2
a9c134
a9c134
* Wed Jun 30 2010 Colin Walters <walters@verbum.org> - 0.4.1-2
a9c134
- Changes to support snapshot builds
a9c134
a9c134
* Sat Jun 26 2010 Matthias Clasen <mclasen@redhat.com> 0.4.1-1
a9c134
- Update to 0.4.1
a9c134
- Include dconf-editor (in a subpackage)
a9c134
a9c134
* Wed Jun 23 2010 Matthias Clasen <mclasen@redhat.com> 0.4-2
a9c134
- Rebuild against glib 2.25.9
a9c134
a9c134
* Sat Jun 12 2010 Matthias Clasen <mclasen@redhat.com> 0.4-1
a9c134
- Update to 0.4
a9c134
a9c134
* Tue Jun 08 2010 Richard Hughes <rhughes@redhat.com> 0.3.2-0.1.20100608
a9c134
- Update to a git snapshot so that users do not get a segfault in every
a9c134
  application using GSettings.
a9c134
a9c134
* Wed Jun 02 2010 Bastien Nocera <bnocera@redhat.com> 0.3.1-2
a9c134
- Rebuild against latest glib2
a9c134
a9c134
* Mon May 24 2010 Matthias Clasen <mclasen@redhat.com> 0.3.1-1
a9c134
- Update to 0.3.1
a9c134
- Add a -devel subpackage
a9c134
a9c134
* Fri May 21 2010 Matthias Clasen <mclasen@redhat.com> 0.3-3
a9c134
- Make batched writes (e.g. with delayed settings) work
a9c134
a9c134
* Thu May 20 2010 Matthias Clasen <mclasen@redhat.com> 0.3-2
a9c134
- Make the registration of the backend work
a9c134
a9c134
* Wed May 19 2010 Matthias Clasen <mclasen@redhat.com> 0.3-1
a9c134
- Initial packaging