diff --git a/.gitignore b/.gitignore index e69de29..d4e4e14 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,49 @@ +/dconf-editor-3.15.91.tar.xz +/dconf-editor-3.15.92.tar.xz +/dconf-editor-3.16.0.tar.xz +/dconf-editor-3.16.1.tar.xz +/dconf-editor-3.17.1.tar.xz +/dconf-editor-3.17.90.tar.xz +/dconf-editor-3.17.91.tar.xz +/dconf-editor-3.17.92.tar.xz +/dconf-editor-3.18.0.tar.xz +/dconf-editor-3.18.1.tar.xz +/dconf-editor-3.18.2.tar.xz +/dconf-editor-3.19.2.tar.xz +/dconf-editor-3.19.3.tar.xz +/dconf-editor-3.19.90.tar.xz +/dconf-editor-3.19.91.tar.xz +/dconf-editor-3.19.92.tar.xz +/dconf-editor-3.20.0.tar.xz +/dconf-editor-3.20.1.tar.xz +/dconf-editor-3.21.1.tar.xz +/dconf-editor-3.21.4.tar.xz +/dconf-editor-3.21.90.tar.xz +/dconf-editor-3.21.92.tar.xz +/dconf-editor-3.22.1.tar.xz +/dconf-editor-3.23.4.tar.xz +/dconf-editor-3.26.1.tar.xz +/dconf-editor-3.26.2.tar.xz +/dconf-editor-3.27.91.tar.xz +/dconf-editor-3.27.92.tar.xz +/dconf-editor-3.28.0.tar.xz +/dconf-editor-3.29.90.tar.xz +/dconf-editor-3.30.0.tar.xz +/dconf-editor-3.30.2.tar.xz +/dconf-editor-3.31.4.tar.xz +/dconf-editor-3.31.90.tar.xz +/dconf-editor-3.31.91.tar.xz +/dconf-editor-3.32.0.tar.xz +/dconf-editor-3.33.4.tar.xz +/dconf-editor-3.33.90.tar.xz +/dconf-editor-3.33.91.tar.xz +/dconf-editor-3.34.1.tar.xz +/dconf-editor-3.34.2.tar.xz +/dconf-editor-3.34.3.tar.xz +/dconf-editor-3.35.90.tar.xz +/dconf-editor-3.35.91.tar.xz +/dconf-editor-3.36.0.tar.xz +/dconf-editor-3.36.2.tar.xz +/dconf-editor-3.36.4.tar.xz +/dconf-editor-3.37.91.tar.xz +/dconf-editor-3.38.0.tar.xz diff --git a/dconf-editor.spec b/dconf-editor.spec new file mode 100644 index 0000000..9cbe57e --- /dev/null +++ b/dconf-editor.spec @@ -0,0 +1,267 @@ +%global dconf_version 0.26.1 +%global glib2_version 2.56.0 +%global gtk3_version 3.22.27 + +Name: dconf-editor +Version: 3.38.0 +Release: 1%{?dist} +Summary: Configuration editor for dconf + +License: GPLv3+ and CC0 +URL: https://wiki.gnome.org/Projects/dconf +Source0: https://download.gnome.org/sources/dconf-editor/3.38/dconf-editor-%{version}.tar.xz +Source1: https://raw.githubusercontent.com/flathub/ca.desrt.dconf-editor/master/start-dconf-editor.sh + +BuildRequires: /usr/bin/appstream-util +BuildRequires: desktop-file-utils +BuildRequires: gettext +BuildRequires: meson +BuildRequires: pkgconfig(dconf) >= %{dconf_version} +BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version} +BuildRequires: pkgconfig(gmodule-2.0) +BuildRequires: pkgconfig(gtk+-3.0) >= %{gtk3_version} +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: vala + +Requires: dconf%{?_isa} >= %{dconf_version} +Requires: glib2%{?_isa} >= %{glib2_version} +Requires: gtk3%{?_isa} >= %{gtk3_version} + +# dconf-editor has been split off dconf in 0.23.1 +Conflicts: dconf <= 0.23.1 + +%description +Graphical tool for editing the dconf configuration database. + +%prep +%autosetup -p1 + +%build +%meson +%meson_build + +%install +%meson_install + +%if 0%{?flatpak} +install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/start-dconf-editor +%endif + +%find_lang dconf-editor + +%check +appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/metainfo/ca.desrt.dconf-editor.appdata.xml +desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/ca.desrt.dconf-editor.desktop + +%files -f dconf-editor.lang +%license COPYING +%{_bindir}/dconf-editor +%if 0%{?flatpak} +%{_bindir}/start-dconf-editor +%endif +%{_datadir}/applications/ca.desrt.dconf-editor.desktop +%{_datadir}/bash-completion/ +%{_datadir}/dbus-1/services/ca.desrt.dconf-editor.service +%{_datadir}/glib-2.0/schemas/ca.desrt.dconf-editor.gschema.xml +%{_datadir}/icons/hicolor/*/apps/ca.desrt.dconf-editor.png +%{_datadir}/icons/hicolor/scalable/actions/ca.desrt.dconf-editor.*-symbolic.svg +%{_datadir}/icons/hicolor/scalable/apps/ca.desrt.dconf-editor-symbolic.svg +%{_datadir}/metainfo/ca.desrt.dconf-editor.appdata.xml +%{_mandir}/man1/dconf-editor.1* + +%changelog +* Sat Sep 12 2020 Kalev Lember - 3.38.0-1 +- Update to 3.38.0 + +* Sat Aug 29 2020 Kalev Lember - 3.37.91-1 +- Update to 3.37.91 + +* Mon Jul 27 2020 Fedora Release Engineering - 3.36.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 20 2020 Kalev Lember - 3.36.4-1 +- Update to 3.36.4 + +* Sat Apr 25 2020 Kalev Lember - 3.36.2-1 +- Update to 3.36.2 + +* Tue Mar 10 2020 Kalev Lember - 3.36.0-1 +- Update to 3.36.0 + +* Mon Feb 17 2020 Kalev Lember - 3.35.91-1 +- Update to 3.35.91 + +* Sun Feb 02 2020 Kalev Lember - 3.35.90-1 +- Update to 3.35.90 + +* Tue Jan 28 2020 Fedora Release Engineering - 3.34.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Jan 07 2020 Kalev Lember - 3.34.3-1 +- Update to 3.34.3 + +* Mon Oct 07 2019 Kalev Lember - 3.34.2-1 +- Update to 3.34.2 + +* Tue Sep 10 2019 Kalev Lember - 3.34.1-1 +- Update to 3.34.1 + +* Mon Aug 19 2019 Kalev Lember - 3.33.91-1 +- Update to 3.33.91 + +* Mon Aug 12 2019 Kalev Lember - 3.33.90-1 +- Update to 3.33.90 + +* Wed Jul 24 2019 Fedora Release Engineering - 3.33.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue Jul 16 2019 Kalev Lember - 3.33.4-1 +- Update to 3.33.4 + +* Tue Mar 12 2019 Kalev Lember - 3.32.0-1 +- Update to 3.32.0 + +* Wed Feb 20 2019 Kalev Lember - 3.31.91-1 +- Update to 3.31.91 + +* Tue Feb 05 2019 Kalev Lember - 3.31.90-1 +- Update to 3.31.90 + +* Thu Jan 31 2019 Fedora Release Engineering - 3.31.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Jan 07 2019 Kalev Lember - 3.31.4-1 +- Update to 3.31.4 + +* Wed Sep 26 2018 Kalev Lember - 3.30.2-1 +- Update to 3.30.2 + +* Thu Sep 06 2018 Kalev Lember - 3.30.0-1 +- Update to 3.30.0 + +* Mon Aug 13 2018 Kalev Lember - 3.29.90-1 +- Update to 3.29.90 + +* Thu Jul 12 2018 Fedora Release Engineering - 3.28.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon May 21 2018 Kalev Lember - 3.28.0-2 +- Add versioned library deps +- Update license tag + +* Tue Mar 13 2018 Kalev Lember - 3.28.0-1 +- Update to 3.28.0 + +* Sun Mar 11 2018 Kalev Lember - 3.27.92-1 +- Update to 3.27.92 + +* Tue Mar 06 2018 Kalev Lember - 3.27.91-1 +- Update to 3.27.91 +- Switch to the meson build system + +* Wed Feb 07 2018 Fedora Release Engineering - 3.26.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Jan 05 2018 Igor Gnatenko - 3.26.2-2 +- Remove obsolete scriptlets + +* Wed Nov 01 2017 Kalev Lember - 3.26.2-1 +- Update to 3.26.2 + +* Sun Oct 08 2017 Kalev Lember - 3.26.1-1 +- Update to 3.26.1 + +* Wed Aug 02 2017 Fedora Release Engineering - 3.23.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 3.23.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 3.23.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sat Jan 14 2017 Kalev Lember - 3.23.4-1 +- Update to 3.23.4 + +* Wed Oct 12 2016 Kalev Lember - 3.22.1-1 +- Update to 3.22.1 + +* Fri Sep 16 2016 Kalev Lember - 3.21.92-1 +- Update to 3.21.92 + +* Thu Aug 18 2016 Kalev Lember - 3.21.90-1 +- Update to 3.21.90 + +* Wed Jul 20 2016 Richard Hughes - 3.21.4-1 +- Update to 3.21.4 + +* Tue May 03 2016 Kalev Lember - 3.21.1-1 +- Update to 3.21.1 + +* Thu Apr 14 2016 Kalev Lember - 3.20.1-1 +- Update to 3.20.1 + +* Tue Mar 22 2016 Kalev Lember - 3.20.0-1 +- Update to 3.20.0 + +* Tue Mar 15 2016 Richard Hughes - 3.19.92-1 +- Update to 3.19.92 + +* Tue Mar 01 2016 Richard Hughes - 3.19.91-1 +- Update to 3.19.91 + +* Tue Feb 16 2016 Richard Hughes - 3.19.90-1 +- Update to 3.19.90 + +* Wed Feb 03 2016 Fedora Release Engineering - 3.19.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Dec 15 2015 Kalev Lember - 3.19.3-1 +- Update to 3.19.3 + +* Tue Nov 24 2015 Kalev Lember - 3.19.2-1 +- Update to 3.19.2 + +* Fri Nov 13 2015 Kalev Lember - 3.18.2-1 +- Update to 3.18.2 + +* Mon Oct 12 2015 Kalev Lember - 3.18.1-1 +- Update to 3.18.1 + +* Mon Sep 21 2015 Kalev Lember - 3.18.0-1 +- Update to 3.18.0 + +* Tue Sep 15 2015 Kalev Lember - 3.17.92-1 +- Update to 3.17.92 + +* Tue Sep 01 2015 Kalev Lember - 3.17.91-1 +- Update to 3.17.91 + +* Wed Aug 19 2015 Kalev Lember - 3.17.90-1 +- Update to 3.17.90 + +* Wed Jun 17 2015 Fedora Release Engineering - 3.17.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri May 01 2015 Kalev Lember - 3.17.1-1 +- Update to 3.17.1 + +* Tue Apr 14 2015 Kalev Lember - 3.16.1-1 +- Update to 3.16.1 + +* Mon Mar 23 2015 Kalev Lember - 3.16.0-1 +- Update to 3.16.0 + +* Tue Mar 17 2015 Kalev Lember - 3.15.92-1 +- Update to 3.15.92 +- Ship the man page + +* Tue Mar 03 2015 Kalev Lember - 3.15.91-3 +- Fix unowned HighContrast icon theme directories (#1197898) + +* Tue Mar 03 2015 Kalev Lember - 3.15.91-2 +- Fix appdata screenshot URL +- Validate appdata during %%check + +* Mon Mar 02 2015 Kalev Lember - 3.15.91-1 +- Initial Fedora packaging diff --git a/sources b/sources new file mode 100644 index 0000000..49f14ca --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (dconf-editor-3.38.0.tar.xz) = 265f16612ca18ec0e7ff3231960653ab083bcca4f16a5601e2228726899bbc43d821759b5f5a2124d5c598776074d3066e6a9ca73a4127e8654ddc449e4d657f diff --git a/start-dconf-editor.sh b/start-dconf-editor.sh new file mode 100644 index 0000000..8b6d2f8 --- /dev/null +++ b/start-dconf-editor.sh @@ -0,0 +1,25 @@ +#!/usr/bin/bash + +IFS=: read -ra host_data_dirs < <(flatpak-spawn --host sh -c 'echo $XDG_DATA_DIRS') + +# To avoid potentially muddying up $XDG_DATA_DIRS too much, we link the schema paths +# into a temporary directory. +bridge_dir=$XDG_RUNTIME_DIR/dconf-bridge +mkdir -p "$bridge_dir" + +for dir in "${host_data_dirs[@]}"; do + if [[ "$dir" == /usr/* ]]; then + dir=/run/host/"$dir" + fi + + schemas="$dir/glib-2.0/schemas" + if [[ -d "$schemas" ]]; then + bridged=$(mktemp -d XXXXXXXXXX -p "$bridge_dir") + mkdir -p "$bridged"/glib-2.0 + ln -s "$schemas" "$bridged"/glib-2.0 + XDG_DATA_DIRS=$XDG_DATA_DIRS:"$bridged" + fi +done + +export XDG_DATA_DIRS +exec dconf-editor "$@"