public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Peng Huang <phuang@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/ibus] autotool: Install some icons in hicolor
Date: Sun, 31 May 2026 02:04:27 GMT [thread overview]
Message-ID: <178019306794.1.3357660939556874756.rpms-ibus-4f5c8901f9d0@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/ibus
Branch : autotool
Commit : 4f5c8901f9d08f8f2f0e77f25aa9bd689be6a3fd
Author : Peng Huang <phuang@fedoraproject.org>
Date : 2009-08-26T09:02:13+00:00
Stats : +37/-19 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/ibus/c/4f5c8901f9d08f8f2f0e77f25aa9bd689be6a3fd?branch=autotool
Log:
Install some icons in hicolor
---
diff --git a/.cvsignore b/.cvsignore
index ce5a0e5..fbdd1ed 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1 +1,2 @@
+icons.tar.gz
ibus-1.2.0.20090812.tar.gz
diff --git a/ibus.spec b/ibus.spec
index 6d49043..138a9c5 100644
--- a/ibus.spec
+++ b/ibus.spec
@@ -15,6 +15,7 @@ Group: System Environment/Libraries
URL: http://code.google.com/p/ibus/
Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
Source1: xinput-ibus
+Source2: icons.tar.gz
Patch0: ibus-HEAD.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -113,43 +114,55 @@ The ibus-devel-docs package contains developer documentation for ibus
%prep
-%setup -q
+%setup -q -a2
# %patch0 -p1
%build
%configure --disable-static \
- --disable-iso-codes-check \
- --enable-gtk-doc \
- --disable-qt4-immodule
+ --disable-iso-codes-check \
+ --enable-gtk-doc \
+ --disable-qt4-immodule
# make -C po update-gmo
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
-make DESTDIR=${RPM_BUILD_ROOT} install
+make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT%{_libdir}/libibus.la
rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-ibus.la
+# install icons
+install -pm 644 -D icons/IBus4-16.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/status/ibus-off.png
+install -pm 644 -D icons/IBus4-22.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/22x22/status/ibus-off.png
+install -pm 644 -D icons/IBus4-24.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/status/ibus-off.png
+install -pm 644 -D icons/IBus4-32.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/status/ibus-off.png
+install -pm 644 -D icons/IBus4-48.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/status/ibus-off.png
+install -pm 644 -D icons/IBus4-48.svg $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/status/ibus-off.svg
+
# install xinput config file
-mkdir -pm 755 ${RPM_BUILD_ROOT}/%{_sysconfdir}/X11/xinit/xinput.d
-install -pm 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_xinputconf}
+mkdir -pm 755 $RPM_BUILD_ROOT/%{_sysconfdir}/X11/xinit/xinput.d
+install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_xinputconf}
# install .desktop files
-echo "NoDisplay=true" >> $RPM_BUILD_ROOT%{_datadir}/applications/ibus.desktop
-echo "NoDisplay=true" >> $RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup.desktop
+echo "NoDisplay=true" >> ${RPM_BUILD_ROOT}%{_datadir}/applications/ibus.desktop
+echo "NoDisplay=true" >> ${RPM_BUILD_ROOT}%{_datadir}/applications/ibus-setup.desktop
echo "X-GNOME-Autostart-enabled=false" >> $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/ibus.desktop
-rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/ibus.desktop
+rm -rf ${RPM_BUILD_ROOT}%{_sysconfdir}/xdg/autostart/ibus.desktop
desktop-file-install --delete-original \
- --dir $RPM_BUILD_ROOT%{_datadir}/applications \
- $RPM_BUILD_ROOT%{_datadir}/applications/*
+ --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
+ ${RPM_BUILD_ROOT}%{_datadir}/applications/*
%find_lang %{name}
%clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf ${RPM_BUILD_ROOT}
%post
-update-desktop-database -q
+# recreate icon cache
+touch --no-create %{_datadir}/icons/hicolor || :
+[ -x %{_bindir}/gtk-update-icon-cache ] && \
+ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+
%{_sbindir}/alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_xinputconf} 83 || :
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
@@ -168,18 +181,20 @@ if [ "$1" -eq 0 ]; then
fi
%postun
-update-desktop-database -q
+# recreate icon cache
+touch --no-create %{_datadir}/icons/hicolor || :
+[ -x %{_bindir}/gtk-update-icon-cache ] && \
+ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+
if [ "$1" = "0" ]; then
%{_sbindir}/alternatives --remove xinputrc %{_xinputconf} || :
# if alternative was set to manual, reset to auto
[ -L %{_sysconfdir}/alternatives/xinputrc -a "`readlink %{_sysconfdir}/alternatives/xinputrc`" = "%{_xinputconf}" ] && %{_sbindir}/alternatives --auto xinputrc || :
fi
-%post libs
-/sbin/ldconfig
+%post libs -p /sbin/ldconfig
-%postun libs
-/sbin/ldconfig
+%postun libs -p /sbin/ldconfig
%post gtk
%{_bindir}/update-gtk-immodules %{_host} || :
@@ -198,6 +213,7 @@ fi
%{_datadir}/ibus/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
+%{_datadir}/icons/hicolor/*/status/*
%{_libexecdir}/ibus-gconf
%{_libexecdir}/ibus-ui-gtk
%{_libexecdir}/ibus-x11
diff --git a/sources b/sources
index 979c7ee..cc4df25 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
+cf57c152f07c90c72aa8c3281a65e80c icons.tar.gz
5b50f05b00355ae74a85f572339fb7c1 ibus-1.2.0.20090812.tar.gz
reply other threads:[~2026-05-31 2:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178019306794.1.3357660939556874756.rpms-ibus-4f5c8901f9d0@fedoraproject.org \
--to=phuang@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox