From 672c9e85d4a589b8c450d650f44c0053057102e7 Mon Sep 17 00:00:00 2001 From: rpm-build Date: Dec 09 2020 17:12:07 +0000 Subject: ibus-xx-setup-env.patch patch_name: ibus-xx-setup-env.patch present_in_specfile: true location_in_specfile: 5 --- diff --git a/configure.ac b/configure.ac index 091e20f..670493c 100644 --- a/configure.ac +++ b/configure.ac @@ -757,7 +757,6 @@ ibus/interface/Makefile ui/Makefile ui/gtk3/Makefile setup/Makefile -setup/ibus-setup bindings/Makefile bindings/pygobject/Makefile bindings/vala/Makefile diff --git a/setup/Makefile.am b/setup/Makefile.am index b7dd755..f8a3238 100644 --- a/setup/Makefile.am +++ b/setup/Makefile.am @@ -3,8 +3,8 @@ # ibus - The Input Bus # # Copyright (c) 2007-2014 Peng Huang -# Copyright (c) 2015-2017 Takao Fujiwara -# Copyright (c) 2007-2017 Red Hat, Inc. +# Copyright (c) 2015-2019 Takao Fujiwara +# Copyright (c) 2007-2019 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -40,6 +40,15 @@ ibussetup_DATA = \ bin_SCRIPTS = ibus-setup ibussetupdir = $(pkgdatadir)/setup +ibus-setup: ibus-setup.in + $(AM_V_GEN) sed -e "s|\@datarootdir\@|$(datarootdir)|g" \ + -e "s|\@localedir\@|$(localedir)|g" \ + -e "s|\@libexecdir\@|$(libexecdir)|g" \ + -e "s|\@prefix\@|$(prefix)|g" \ + -e "s|\@PYTHON\@|$(PYTHON)|g" \ + $< > $@.tmp && \ + mv $@.tmp $@ + desktop_in_files = ibus-setup.desktop.in desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) desktopdir = $(datadir)/applications