diff --git a/.gitignore b/.gitignore index e69de29..f295c2b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,57 @@ +dconf-0.4.2.tar.bz2 +dconf-0.5.tar.bz2 +/dconf-0.5.1.tar.bz2 +/dconf-0.7.tar.bz2 +/dconf-0.7.1.tar.bz2 +/dconf-0.7.2.tar.bz2 +/dconf-0.7.3.tar.bz2 +/dconf-0.7.4.tar.bz2 +/dconf-0.7.5.tar.bz2 +/dconf-0.9.0.tar.xz +/dconf-0.9.1.tar.xz +/dconf-0.10.0.tar.xz +/dconf-0.11.0.tar.xz +/dconf-0.11.2.tar.xz +/dconf-0.11.5.tar.xz +/dconf-0.11.6.tar.xz +/dconf-0.11.7.tar.xz +/dconf-0.12.0.tar.xz +/dconf-0.12.1.tar.xz +/dconf-0.13.0.tar.xz +/dconf-0.13.4.tar.xz +/dconf-0.14.0.tar.xz +/dconf-0.15.0.tar.xz +/dconf-0.15.2.tar.xz +/dconf-0.15.3.tar.xz +/dconf-0.16.0.tar.xz +/dconf-0.17.0.tar.xz +/dconf-0.17.1.tar.xz +/dconf-0.18.0.tar.xz +/dconf-0.19.2.tar.xz +/dconf-0.19.3.tar.xz +/dconf-0.19.90.tar.xz +/dconf-0.19.91.tar.xz +/dconf-0.19.92.tar.xz +/dconf-0.20.0.tar.xz +/dconf-0.21.0.tar.xz +/dconf-0.22.0.tar.xz +/dconf-0.23.1.tar.xz +/dconf-0.23.2.tar.xz +/dconf-0.24.0.tar.xz +/dconf-0.25.1.tar.xz +/dconf-0.26.0.tar.xz +/dconf-0.26.1.tar.xz +/dconf-0.27.1.tar.xz +/dconf-0.28.0.tar.xz +/dconf-0.30.0.tar.xz +/dconf-0.30.1.tar.xz +/dconf-0.31.1.tar.xz +/dconf-0.31.2.tar.xz +/dconf-0.31.92.tar.xz +/dconf-0.32.0.tar.xz +/dconf-0.33.1.tar.xz +/dconf-0.33.2.tar.xz +/dconf-0.34.0.tar.xz +/dconf-0.35.1.tar.xz +/dconf-0.36.0.tar.xz +/dconf-0.38.0.tar.xz diff --git a/dconf-override.patch b/dconf-override.patch new file mode 100644 index 0000000..0e95c22 --- /dev/null +++ b/dconf-override.patch @@ -0,0 +1,23 @@ +diff --git a/engine/dconf-engine-source-user.c b/engine/dconf-engine-source-user.c +index 1657875..e4f8786 100644 +--- a/engine/dconf-engine-source-user.c ++++ b/engine/dconf-engine-source-user.c +@@ -39,11 +39,17 @@ dconf_engine_source_user_open_gvdb (const gchar *name) + { + GvdbTable *table; + gchar *filename; ++ const gchar *override; ++ ++ override = g_getenv ("DCONF_USER_CONFIG_DIR"); ++ if (override == NULL) ++ filename = g_build_filename (g_get_user_config_dir (), "dconf", name, NULL); ++ else ++ filename = g_build_filename (g_get_home_dir (), override, name, NULL); + + /* This can fail in the normal case of the user not having any + * settings. That's OK and it shouldn't be considered as an error. + */ +- filename = g_build_filename (g_get_user_config_dir (), "dconf", name, NULL); + table = gvdb_table_new (filename, FALSE, NULL); + g_free (filename); + diff --git a/dconf.spec b/dconf.spec new file mode 100644 index 0000000..b34191b --- /dev/null +++ b/dconf.spec @@ -0,0 +1,433 @@ +%define glib2_version 2.44.0 + +Name: dconf +Version: 0.38.0 +Release: 1%{?dist} +Summary: A configuration system + +License: LGPLv2+ and GPLv2+ and GPLv3+ +URL: https://wiki.gnome.org/Projects/dconf +Source0: https://download.gnome.org/sources/dconf/0.38/dconf-%{version}.tar.xz + +Patch1: dconf-override.patch + +BuildRequires: bash-completion +BuildRequires: dbus-devel +BuildRequires: gcc +BuildRequires: glib2-devel >= %{glib2_version} +BuildRequires: gtk-doc +BuildRequires: meson +BuildRequires: vala + +Requires: dbus +Requires: glib2%{?_isa} >= %{glib2_version} + +%description +dconf is a low-level configuration system. Its main purpose is to provide a +backend to the GSettings API in GLib. + +%package devel +Summary: Header files and libraries for dconf development +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +dconf development package. Contains files needed for doing software +development using dconf. + +%prep +%autosetup -p1 + +%build +%meson -Dgtk_doc=true +%meson_build + +%install +%meson_install + +mkdir -p $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 + +%posttrans +dconf update + +%files +%license COPYING +%dir %{_sysconfdir}/dconf +%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 +%{_libdir}/gio/modules/libdconfsettings.so +%{_libexecdir}/dconf-service +%{_datadir}/dbus-1/services/ca.desrt.dconf.service +%{_bindir}/dconf +%{_libdir}/libdconf.so.1* +%{_datadir}/bash-completion/completions/dconf +%{_mandir}/man1/dconf-service.1.gz +%{_mandir}/man1/dconf.1.gz +%{_mandir}/man7/dconf.7.gz +%config(noreplace) %{_sysconfdir}/dconf/profile/user + +%files devel +%{_includedir}/dconf +%{_libdir}/libdconf.so +%{_libdir}/pkgconfig/dconf.pc +%dir %{_datadir}/gtk-doc +%dir %{_datadir}/gtk-doc/html +%{_datadir}/gtk-doc/html/dconf +%{_datadir}/vala + +%changelog +* Sun Sep 13 2020 Kalev Lember - 0.38.0-1 +- Update to 0.38.0 + +* Mon Jul 27 2020 Fedora Release Engineering - 0.36.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Mar 10 2020 Kalev Lember - 0.36.0-1 +- Update to 0.36.0 + +* Tue Jan 28 2020 Fedora Release Engineering - 0.35.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Jan 07 2020 Kalev Lember - 0.35.1-1 +- Update to 0.35.1 + +* Tue Sep 10 2019 Kalev Lember - 0.34.0-1 +- Update to 0.34.0 + +* Tue Aug 20 2019 Kalev Lember - 0.33.2-1 +- Update to 0.33.2 + +* Wed Jul 24 2019 Fedora Release Engineering - 0.33.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue Jul 16 2019 Kalev Lember - 0.33.1-1 +- Update to 0.33.1 + +* Mon Mar 11 2019 Kalev Lember - 0.32.0-1 +- Update to 0.32.0 + +* Fri Mar 08 2019 Kalev Lember - 0.31.92-1 +- Update to 0.31.92 + +* Mon Feb 04 2019 Kalev Lember - 0.31.2-1 +- Update to 0.31.2 + +* Thu Jan 31 2019 Fedora Release Engineering - 0.31.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Jan 07 2019 Kalev Lember - 0.31.1-1 +- Update to 0.31.1 +- Update project URLs + +* Fri Oct 26 2018 Kalev Lember - 0.30.1-1 +- Update to 0.30.1 + +* Wed Sep 05 2018 Kalev Lember - 0.30.0-1 +- Update to 0.30.0 + +* Tue Aug 21 2018 Owen Taylor - 0.28.0-3 +- Add a patch to enable DCONF_USER_CONFIG_DIR environment variable + +* Thu Jul 12 2018 Fedora Release Engineering - 0.28.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Mar 13 2018 Kalev Lember - 0.28.0-1 +- Update to 0.28.0 + +* Mon Mar 12 2018 Kalev Lember - 0.27.1-1 +- Update to 0.27.1 +- Switch to the meson build system +- Don't set group tags +- Remove obsolete rpm scriptlets +- Fix gtk-doc directory ownership +- Tighten soname glob + +* Mon Feb 19 2018 Ray Strode - 0.26.1-3 +- Add systemd dbs for distro, site, and machine local dconf databases + Resolves: #1546644 + +* Wed Feb 07 2018 Fedora Release Engineering - 0.26.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Oct 09 2017 Kalev Lember - 0.26.1-1 +- Update to 0.26.1 + +* Wed Aug 02 2017 Fedora Release Engineering - 0.26.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.26.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Tue Mar 21 2017 Colin Walters - 0.26.0-3 +- Backport patch to work around gtype threading + +* Fri Feb 10 2017 Fedora Release Engineering - 0.26.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Mar 23 2016 Kalev Lember - 0.26.0-1 +- Update to 0.26.0 + +* Wed Feb 03 2016 Fedora Release Engineering - 0.25.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Dec 16 2015 Kalev Lember - 0.25.1-1 +- Update to 0.25.1 + +* Wed Jun 17 2015 Fedora Release Engineering - 0.24.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Mar 23 2015 Kalev Lember - 0.24.0-1 +- Update to 0.24.0 + +* Tue Mar 17 2015 Kalev Lember - 0.23.2-1 +- Update to 0.23.2 + +* Mon Mar 02 2015 Kalev Lember - 0.23.1-1 +- Update to 0.23.1 +- This drops the -editor subpackage which now lives in a separate + dconf-editor SRPM. +- Use the %%license macro for the COPYING file + +* Sat Feb 21 2015 Till Maas - 0.22.0-2 +- Rebuilt for Fedora 23 Change + https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code + +* Fri Sep 19 2014 Kalev Lember - 0.22.0-1 +- Update to 0.22.0 + +* Sat Aug 16 2014 Fedora Release Engineering - 0.21.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Tue Jul 22 2014 Kalev Lember - 0.21.0-1 +- Update to 0.21.0 + +* Fri Jul 11 2014 Parag - 0.20.0-4 +- Fix the directory ownership (rh#1056020) + +* Sat Jun 07 2014 Fedora Release Engineering - 0.20.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Apr 05 2014 Kalev Lember - 0.20.0-2 +- Specify minimum glib version + +* Mon Mar 24 2014 Richard Hughes - 0.20.0-1 +- Update to 0.20.0 + +* Tue Mar 18 2014 Richard Hughes - 0.19.92-1 +- Update to 0.19.92 + +* Tue Mar 04 2014 Richard Hughes - 0.19.91-1 +- Update to 0.19.91 + +* Tue Feb 18 2014 Richard Hughes - 0.19.90-1 +- Update to 0.19.90 + +* Tue Jan 14 2014 Richard Hughes - 0.19.3-1 +- Update to 0.19.3 + +* Thu Nov 14 2013 Richard Hughes - 0.19.2-1 +- Update to 0.19.2 + +* Thu Sep 26 2013 Kalev Lember - 0.18.0-2 +- Add missing glib-compile-schemas scriptlets to the -editor subpackage + +* Tue Sep 24 2013 Kalev Lember - 0.18.0-1 +- Update to 0.18.0 + +* Wed Sep 18 2013 Kalev Lember - 0.17.1-1 +- Update to 0.17.1 + +* Mon Aug 05 2013 Parag Nemade - 0.17.0-3 +- Fix bogus date in %%changelog +- Compilation should be more verbose, add V=1 +- Upstream does not install dconf-editor ui files + +* Sat Aug 03 2013 Fedora Release Engineering - 0.17.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Tue Jul 16 2013 Richard Hughes - 0.17.0-1 +- Update to 0.17.0 + +* Sat Jun 8 2013 Matthias Clasen - 0.16.0-2 +- Move the editor schema to the right subpackage + +* Mon Mar 25 2013 Kalev Lember - 0.16.0-1 +- Update to 0.16.0 + +* Mon Feb 11 2013 Kalev Lember - 0.15.3-1 +- Update to 0.15.3 +- Install the HighContrast icons and update the icon cache scriptlets to take + this into account + +* Sat Dec 22 2012 Rex Dieter - 0.15.2-2 +- -devel: drop Requires: glib2-devel, already gets pulled in via pkgconfig deps +- -editor: add icon scriptlets +- tighten subpkg deps via %%{_isa} + +* Tue Nov 20 2012 Richard Hughes - 0.15.2-1 +- Update to 0.15.2 + +* Fri Nov 09 2012 Kalev Lember - 0.15.0-3 +- Move some of the rpm scriptlets back to %%posttrans + (glib-compile-schemas, icon cache) + +* Thu Nov 8 2012 Marek Kasik - 0.15.0-2 +- Move dconf-editor's man page to the dconf-editor sub-package + +* Wed Nov 7 2012 Marek Kasik - 0.15.0-1 +- Update to 0.15.0 +- Remove upstreamed patch + +* Wed Nov 7 2012 Marek Kasik - 0.14.0-4 +- Move %%posttrans commands to %%post (rpmlint related) + +* Wed Nov 7 2012 Marek Kasik - 0.14.0-3 +- Update License field +- Update Source URL +- Add link of corresponding bug for the memory leak patch + +* Wed Nov 7 2012 Marek Kasik - 0.14.0-2.1 +- Merge spec-file fixes from f18 branch + +* Sun Oct 21 2012 Matthias Clasen - 0.14.0-2 +- Fix a memory leak +- Update to 0.14.0 + +* Wed Jul 18 2012 Fedora Release Engineering - 0.13.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jul 17 2012 Richard Hughes - 0.13.4-1 +- Update to 0.13.4 + +* Thu Jun 07 2012 Richard Hughes - 0.13.0-2 +- Add missing file to file list. + +* Thu Jun 07 2012 Richard Hughes - 0.13.0-1 +- Update to 0.13.0 + +* Sat May 05 2012 Kalev Lember - 0.12.1-1 +- Update to 0.12.1 + +* Tue Mar 27 2012 Kalev Lember - 0.12.0-1 +- Update to 0.12.0 + +* Tue Mar 20 2012 Kalev Lember - 0.11.7-1 +- Update to 0.11.7 + +* Fri Mar 9 2012 Matthias Clasen - 0.11.6-1 +- Update to 0.11.6 + +* Mon Feb 6 2012 Matthias Clasen - 0.11.5-1 +- Update to 0.11.5 + +* Fri Jan 13 2012 Fedora Release Engineering - 0.11.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Nov 21 2011 Matthias Clasen - 0.11.2-1 +- Update to 0.11.2 + +* Fri Nov 4 2011 Matthias Clasen - 0.11.0-2 +- Fix a typo (#710700) + +* Wed Nov 2 2011 Matthias Clasen - 0.11.0-1 +- Update to 0.11.0 + +* Mon Sep 26 2011 Ray - 0.10.0-1 +- Update to 0.10.0 + +* Mon Sep 19 2011 Matthias Clasen - 0.9.1-1 +- Update to 0.9.1 + +* Tue Jul 26 2011 Matthias Clasen - 0.9.0-1 +- Update to 0.9.0 + +* Wed May 11 2011 Tomas Bzatek - 0.7.5-1 +- Update to 0.7.5 + +* Fri May 6 2011 Matthias Clasen - 0.7.4-1 +- Update to 0.7.4 + +* Wed Apr 6 2011 Matthias Clasen - 0.7.3-2 +- Fix a crash in dconf-editor + +* Tue Mar 22 2011 Tomas Bzatek - 0.7.3-1 +- Update to 0.7.3 + +* Thu Feb 10 2011 Matthias Clasen - 0.7.2-3 +- Rebuild for newer gtk + +* Tue Feb 08 2011 Fedora Release Engineering - 0.7.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sat Feb 5 2011 Matthias Clasen - 0.7.2-1 +- Update to 0.7.2 + +* Wed Feb 2 2011 Matthias Clasen - 0.7.1-1 +- Update to 0.7.1 + +* Mon Jan 17 2011 Matthias Clasen - 0.7-1 +- Update to 0.7 + +* Wed Sep 29 2010 jkeating - 0.5.1-2 +- Rebuilt for gcc bug 634757 + +* Tue Sep 21 2010 Matthias Clasen - 0.5.1-1 +- Update to 0.5.1 + +* Thu Aug 5 2010 Matthias Clasen - 0.5-2 +- Fix up shared library symlinks (#621733) + +* Tue Aug 3 2010 Matthias Clasen - 0.5-1 +- Update to 0.5 + +* Mon Jul 12 2010 Matthias Clasen - 0.4.2-1 +- Update to 0.4.2 + +* Wed Jun 30 2010 Colin Walters - 0.4.1-2 +- Changes to support snapshot builds + +* Sat Jun 26 2010 Matthias Clasen 0.4.1-1 +- Update to 0.4.1 +- Include dconf-editor (in a subpackage) + +* Wed Jun 23 2010 Matthias Clasen 0.4-2 +- Rebuild against glib 2.25.9 + +* Sat Jun 12 2010 Matthias Clasen 0.4-1 +- Update to 0.4 + +* Tue Jun 08 2010 Richard Hughes 0.3.2-0.1.20100608 +- Update to a git snapshot so that users do not get a segfault in every + application using GSettings. + +* Wed Jun 02 2010 Bastien Nocera 0.3.1-2 +- Rebuild against latest glib2 + +* Mon May 24 2010 Matthias Clasen 0.3.1-1 +- Update to 0.3.1 +- Add a -devel subpackage + +* Fri May 21 2010 Matthias Clasen 0.3-3 +- Make batched writes (e.g. with delayed settings) work + +* Thu May 20 2010 Matthias Clasen 0.3-2 +- Make the registration of the backend work + +* Wed May 19 2010 Matthias Clasen 0.3-1 +- Initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..16d79cd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (dconf-0.38.0.tar.xz) = 795f723f34a8406a06323870f8425ca579bbc751c1661db02e170532f6a2653aee749cbb84ad4d7e5a84a07c0caf2662a868b34b6f0d383361c0ff1ad9aed355