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"
epel9
Parag Nemade 6 years ago
parent 7ff3bc6490
commit b5761fb423
No known key found for this signature in database
GPG Key ID: 71932951EB71E972

@ -10,7 +10,7 @@
Summary: A process-transparent configuration system Summary: A process-transparent configuration system
Name: GConf2 Name: GConf2
Version: 3.2.6 Version: 3.2.6
Release: 24%{?dist} Release: 25%{?dist}
License: LGPLv2+ and GPLv2+ License: LGPLv2+ and GPLv2+
#VCS: git:git://git.gnome.org/gconf #VCS: git:git://git.gnome.org/gconf
Source0: http://download.gnome.org/sources/GConf/3.2/GConf-%{version}.tar.xz Source0: http://download.gnome.org/sources/GConf/3.2/GConf-%{version}.tar.xz
@ -40,6 +40,9 @@ BuildRequires: polkit-devel >= 0.92
BuildRequires: dbus-glib-devel >= 0.8 BuildRequires: dbus-glib-devel >= 0.8
BuildRequires: gobject-introspection-devel >= 0.6.7 BuildRequires: gobject-introspection-devel >= 0.6.7
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} %if 0%{?defaults_service}
Requires: dbus Requires: dbus
%endif %endif
@ -80,6 +83,9 @@ development using GConf.
autoreconf -i -f autoreconf -i -f
2to3 --write --nobackup gsettings/gsettings-schema-convert
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" . gsettings/gsettings-schema-convert
%build %build
%configure --disable-static \ %configure --disable-static \
%{?defaults_service:--enable-defaults-service} \ %{?defaults_service:--enable-defaults-service} \
@ -135,7 +141,6 @@ fi
%{_bindir}/gconf-merge-tree %{_bindir}/gconf-merge-tree
%{_bindir}/gconftool-2 %{_bindir}/gconftool-2
%{_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.*
@ -170,6 +175,11 @@ fi
%{_mandir}/man1/gsettings-schema-convert.1* %{_mandir}/man1/gsettings-schema-convert.1*
%changelog %changelog
* 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 * Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.6-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

Loading…
Cancel
Save