rpms/ibus/devel ibus.spec,1.26,1.27
Huang Peng
phuang at fedoraproject.org
Tue Oct 7 04:43:50 UTC 2008
- Previous message (by thread): rpms/xulrunner/devel xulrunner-mozconfig, 1.23, 1.24 xulrunner.spec, 1.134, 1.135
- Next message (by thread): rpms/gtkmozembedmm/devel dead.package, 1.1, 1.2 gtkmozembedmm-1.4.2.cvs20060817-m4.patch, 1.1, NONE gtkmozembedmm-1.4.2.cvs20060817-xulrunner.patch, 1.2, NONE gtkmozembedmm-cvs.sh, 1.1, NONE gtkmozembedmm.spec, 1.28, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: phuang
Update of /cvs/pkgs/rpms/ibus/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25915
Modified Files:
ibus.spec
Log Message:
Follow packaging guidline for .desktop files
Index: ibus.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ibus/devel/ibus.spec,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- ibus.spec 7 Oct 2008 03:06:09 -0000 1.26
+++ ibus.spec 7 Oct 2008 04:43:20 -0000 1.27
@@ -19,14 +19,18 @@
BuildRequires: gtk2-devel
BuildRequires: qt-devel
BuildRequires: dbus-glib-devel
+BuildRequires: desktop-file-utils
+
+Requires(post): desktop-file-utils
+Requires(post): %{_sbindir}/alternatives
+Requires(postun): desktop-file-utils
+Requires(postun): %{_sbindir}/alternatives
Requires: pygtk2
Requires: dbus-python >= 0.83.0
-Requires: gnome-python2-gconf
Requires: pyxdg
+Requires: gnome-python2-gconf
Requires: iso-codes
-Requires(post): %{_sbindir}/alternatives
-Requires(postun): %{_sbindir}/alternatives
%description
IBus means Intelligent Input Bus. It is a new input framework for Linux OS. It provides
@@ -34,7 +38,7 @@
developers to develop input method easily.
%package gtk
-Summary: iBus im module for gtk2
+Summary: IBus im module for gtk2
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
@@ -42,10 +46,10 @@
This package contains ibus im module for gtk2
%package qt
-Summary: iBus im module for qt4
+Summary: IBus im module for qt4
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: qt >= 4.4.1
+Requires: qt >= 4.4.2
%description qt
This package contains ibus im module for qt4
@@ -71,6 +75,11 @@
mkdir -pm 755 ${RPM_BUILD_ROOT}/%{_sysconfdir}/X11/xinit/xinput.d
install -pm 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_xinputconf}
+# install .desktop files
+desktop-file-install --delete-original \
+ --dir $RPM_BUILD_ROOT%{_datadir}/applications \
+ $RPM_BUILD_ROOT%{_datadir}/applications/*
+
%find_lang %{name}
%clean
@@ -78,22 +87,24 @@
%post
/sbin/ldconfig
+update-desktop-database -q
%{_sbindir}/alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_xinputconf} 83 || :
%post gtk
%{_bindir}/update-gtk-immodules %{_host} || :
-%postun gtk
-%{_bindir}/update-gtk-immodules %{_host} || :
-
%postun
/sbin/ldconfig
+update-desktop-database -q
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 || :
+ %{_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
+%postun gtk
+%{_bindir}/update-gtk-immodules %{_host} || :
+
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
- Previous message (by thread): rpms/xulrunner/devel xulrunner-mozconfig, 1.23, 1.24 xulrunner.spec, 1.134, 1.135
- Next message (by thread): rpms/gtkmozembedmm/devel dead.package, 1.1, 1.2 gtkmozembedmm-1.4.2.cvs20060817-m4.patch, 1.1, NONE gtkmozembedmm-1.4.2.cvs20060817-xulrunner.patch, 1.2, NONE gtkmozembedmm-cvs.sh, 1.1, NONE gtkmozembedmm.spec, 1.28, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list