@ -3,19 +3,16 @@
%define dbus_version 1.0.1
%define dbus_version 1.0.1
%define dbus_glib_version 0.74
%define dbus_glib_version 0.74
%if !0%{?flatpak}
%define defaults_service 1
%endif
Name: GConf2
Version: 3.2.6
Release: 34%{?dist}
Summary: A process-transparent configuration system
Summary: A process-transparent configuration system
Name: GConf2
Version: 3.2.6
Release: 22%{?dist}
License: LGPLv2+ and GPLv2+
License: LGPLv2+ and GPLv2+
URL: https://gitlab.gnome.org/Archive/gconf/
Group: System Environment/Base
Source0: https://download.gnome.org/sources/GConf/3.2/GConf-%{version}.tar.xz
#VCS: git:git://git.gnome.org/gconf
Source0: http://download.gnome.org/sources/GConf/3.2/GConf-%{version}.tar.xz
Source1: macros.gconf2
Source1: macros.gconf2
URL: http://projects.gnome.org/gconf/
# http://bugzilla.gnome.org/show_bug.cgi?id=568845
# http://bugzilla.gnome.org/show_bug.cgi?id=568845
Patch0: GConf-gettext.patch
Patch0: GConf-gettext.patch
@ -23,33 +20,28 @@ Patch0: GConf-gettext.patch
# https://bugzilla.gnome.org/show_bug.cgi?id=671490
# https://bugzilla.gnome.org/show_bug.cgi?id=671490
Patch1: drop-spew.patch
Patch1: drop-spew.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=1197773
# https://bugzilla.redhat.com/show_bug.cgi?id=1580646
Patch2: gconf-3.2.6-gconf-engine_key_is_writable.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=1567087
Patch2: gconf-3.2.6-python3.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=755992
# https://bugzilla.redhat.com/show_bug.cgi?id=755992
Patch99: workaround-crash.patch
Patch99: workaround-crash.patch
Patch100: pkill-hack.patch
Patch100: pkill-hack.patch
BuildRequires: gettext
BuildRequires: libxml2-devel >= %{libxml2_version}
BuildRequires: libxslt-devel
BuildRequires: glib2-devel >= %{glib2_version}
BuildRequires: gtk-doc >= 0.9
BuildRequires: gtk-doc >= 0.9
BuildRequires: pkgconfig >= 0.14
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: intltool
BuildRequires: make
BuildRequires: polkit-devel >= 0.92
BuildRequires: pkgconfig(dbus-glib-1) >= 0.8
BuildRequires: dbus-glib-devel >= 0.8
BuildRequires: pkgconfig(gio-2.0) >= %{glib2_version}
BuildRequires: gobject-introspection-devel >= 0.6.7
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.6.7
BuildRequires: pkgconfig(libxml-2.0) >= %{libxml2_version}
%if 0%{?defaults_service}
BuildRequires: pkgconfig(polkit-gobject-1) >= 0.92
%endif
BuildRequires: autoconf automake libtool
BuildRequires: autoconf automake libtool
# we need to do python shebang mangling using pathfix.py
BuildRequires: python3-devel
%if 0%{?defaults_service}
Requires: dbus
Requires: dbus
%endif
# for patch0
# for patch100
Requires: /usr/bin/killall
Requires: /usr/bin/pkill
Conflicts: GConf2-dbus
Conflicts: GConf2-dbus
Provides: GConf2-gtk = 3.2.6-6
Provides: GConf2-gtk = 3.2.6-6
@ -62,7 +54,14 @@ support workgroup administration.
%package devel
%package devel
Summary: Headers and libraries for GConf development
Summary: Headers and libraries for GConf development
Requires: %{name}%{?_isa} = %{version}-%{release}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: libxml2-devel >= %{libxml2_version}
Requires: glib2-devel >= %{glib2_version}
# we install a pc file
Requires: pkgconfig
# we install an automake macro
Requires: automake
Conflicts: GConf2-dbus-devel
Conflicts: GConf2-dbus-devel
%description devel
%description devel
@ -70,44 +69,46 @@ GConf development package. Contains files needed for doing
development using GConf.
development using GConf.
%prep
%prep
%autosetup -p1 -n GConf-%{version}
%setup -q -n GConf-%{version}
%patch0 -p1 -b .gettext
%patch1 -p1 -b .drop-spew
%patch2 -p1 -b .python3
autoreconf --force --install
%patch99 -p1 -b .workaround-crash
%patch100 -p1 -b .pkill-hack
2to3 --write --nobackup gsettings/gsettings-schema-convert
autoreconf -i -f
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" . gsettings/gsettings-schema-convert
%build
%build
%configure --disable-static \
%configure --disable-static --enable-defaults-service --disable-orbit --with-gtk=3.0
%{?defaults_service:--enable-defaults-service} \
%{!?defaults_service:--disable-defaults-service} \
--disable-orbit --without-openldap
# drop unneeded direct library deps with --as-needed
# drop unneeded direct library deps with --as-needed
# libtool doesn't make this easy, so we do it the hard way
# libtool doesn't make this easy, so we do it the hard way
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
% make_build
make
%install
%install
%make_install
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p %{buildroot} %{_sysconfdir}/gconf/schemas
mkdir -p $RPM_BUILD_ROOT %{_sysconfdir}/gconf/schemas
mkdir -p %{buildroot} %{_sysconfdir}/gconf/gconf.xml.system
mkdir -p $RPM_BUILD_ROOT %{_sysconfdir}/gconf/gconf.xml.system
mkdir -p %{buildroot} %{_rpmconfigdir}/macros.d/
mkdir -p $RPM_BUILD_ROOT %{_rpmconfigdir}/macros.d/
mkdir -p %{buildroot} %{_localstatedir}/lib/rpm-state/gconf
mkdir -p $RPM_BUILD_ROOT %{_localstatedir}/lib/rpm-state/gconf
mkdir -p %{buildroot} %{_datadir}/GConf/gsettings
mkdir -p $RPM_BUILD_ROOT %{_datadir}/GConf/gsettings
install -p -m 644 %{SOURCE1} %{buildroot} %{_rpmconfigdir}/macros.d/
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT %{_rpmconfigdir}/macros.d/
find %{buildroot} -name "*.la" -type f -delete
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/GConf/2/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/gio/modules/*.la
mkdir -p %{buildroot}%{_datadir}/GConf/gsettings
mkdir -p $RPM_BUILD_ROOT %{_datadir}/GConf/gsettings
%find_lang %name
%find_lang %name
%post
%post
%{?ldconfig}
/sbin/ldconfig
if [ $1 -gt 1 ]; then
if [ $1 -gt 1 ]; then
if ! fgrep -q gconf.xml.system %{_sysconfdir}/gconf/2/path; then
if ! fgrep -q gconf.xml.system %{_sysconfdir}/gconf/2/path; then
@ -115,9 +116,10 @@ if [ $1 -gt 1 ]; then
fi
fi
fi
fi
%ldconfig_postun
%postun -p /sbin/ ldconfig
%files -f %{name}.lang
%files -f %{name}.lang
%{!?_licensedir:%global license %%doc}
%license COPYING
%license COPYING
%doc NEWS README
%doc NEWS README
%config(noreplace) %{_sysconfdir}/gconf/2/path
%config(noreplace) %{_sysconfdir}/gconf/2/path
@ -129,7 +131,9 @@ fi
%dir %{_sysconfdir}/gconf/schemas
%dir %{_sysconfdir}/gconf/schemas
%{_bindir}/gconf-merge-tree
%{_bindir}/gconf-merge-tree
%{_bindir}/gconftool-2
%{_bindir}/gconftool-2
%doc %{_mandir}/man1/gconftool-2.1*
%{_bindir}/gsettings-data-convert
%{_bindir}/gsettings-data-convert
%doc %{_mandir}/man1/gsettings-data-convert.1*
%{_sysconfdir}/xdg/autostart/gsettings-data-convert.desktop
%{_sysconfdir}/xdg/autostart/gsettings-data-convert.desktop
%{_libexecdir}/gconfd-2
%{_libexecdir}/gconfd-2
%{_libdir}/*.so.*
%{_libdir}/*.so.*
@ -137,17 +141,13 @@ fi
%dir %{_datadir}/sgml
%dir %{_datadir}/sgml
%{_datadir}/sgml/gconf
%{_datadir}/sgml/gconf
%{_datadir}/GConf
%{_datadir}/GConf
%{_mandir}/man1/*
%exclude %{_mandir}/man1/gsettings-schema-convert.1*
%dir %{_libdir}/GConf
%dir %{_libdir}/GConf
%dir %{_libdir}/GConf/2
%dir %{_libdir}/GConf/2
%{_rpmconfigdir}/macros.d/macros.gconf2
%{_rpmconfigdir}/macros.d/macros.gconf2
%if 0%{?defaults_service}
%{_sysconfdir}/dbus-1/system.d/org.gnome.GConf.Defaults.conf
%{_sysconfdir}/dbus-1/system.d/org.gnome.GConf.Defaults.conf
%{_libexecdir}/gconf-defaults-mechanism
%{_libexecdir}/gconf-defaults-mechanism
%{_datadir}/polkit-1/actions/org.gnome.gconf.defaults.policy
%{_datadir}/polkit-1/actions/org.gnome.gconf.defaults.policy
%{_datadir}/dbus-1/system-services/org.gnome.GConf.Defaults.service
%{_datadir}/dbus-1/system-services/org.gnome.GConf.Defaults.service
%endif
%{_datadir}/dbus-1/services/org.gnome.GConf.service
%{_datadir}/dbus-1/services/org.gnome.GConf.service
%{_localstatedir}/lib/rpm-state/gconf/
%{_localstatedir}/lib/rpm-state/gconf/
%{_libdir}/gio/modules/libgsettingsgconfbackend.so
%{_libdir}/gio/modules/libgsettingsgconfbackend.so
@ -161,57 +161,16 @@ fi
%{_libdir}/pkgconfig/*
%{_libdir}/pkgconfig/*
%{_datadir}/gir-1.0
%{_datadir}/gir-1.0
%{_bindir}/gsettings-schema-convert
%{_bindir}/gsettings-schema-convert
%{_mandir}/man1/gsettings-schema-convert.1*
%doc %{_mandir}/man1/gsettings-schema-convert.1*
%changelog
%changelog
* Thu Nov 09 2023 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 3.2.6-34
* Wed Jul 25 2018 Marek Kasik <mkasik@redhat.com> - 3.2.6-22
- Rebuilt for MSVSphere 9.2
- Improve python3 support by Takao Fujiwara's patch
- Resolves: #1567087
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.6-34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jan 07 2022 Miro Hrončok <mhroncok@redhat.com> - 3.2.6-33
- Fix broken requirement on GConf2{?_isa}
* Fri Jan 07 2022 David King <amigadave@amigadave.com> - 3.2.6-32
- Update URL (#2036776)
- Use pkgconfig for BuildRequires
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.6-31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.6-30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.6-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.6-28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.6-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri May 03 2019 David King <amigadave@amigadave.com> - 3.2.6-26
- Fix accidental ABI break (#1197773)
* Mon Feb 18 2019 Parag Nemade <pnemade@redhat.com> - 3.2.6-25
- Fix python shebang to python3 environment
- used 2to3 to convert gsettings-schema-convert to run under python3
- also fix "File listed twice: /usr/share/man/man1/gsettings-data-convert.1.gz"
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.6-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jan 11 2019 fedora-toolbox <otaylor@redhat.com> - 3.2.6-23
- Update old dependency on /usr/bin/killall
* Thu Oct 4 2018 Owen Taylor <otaylor@redhat.com> - 3.2.6-22
- Disable the defaults service when building for Flatpak inclusion
- Explicitly disable openldap support
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.6-21
* Tue May 22 2018 Marek Kasik <mkasik@redhat.com> - 3.2.6-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
- Convert gsettings-schema-convert to python3
- Resolves: #1580646
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.6-20
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.6-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild