Updated for a misc issue.
This commit is contained in:
parent
93a88c6427
commit
7f7ac75b4d
@ -1,9 +1,9 @@
|
|||||||
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||||
|
|
||||||
%define sub_version 1.0
|
%global sub_version 1.0
|
||||||
%define require_ibus_version 1.4.99.20120203
|
%global require_ibus_version 1.4.99.20120203
|
||||||
%define have_default_layout 1
|
%global have_default_layout 1
|
||||||
%define have_bridge_hotkey 1
|
%global have_bridge_hotkey 1
|
||||||
|
|
||||||
Name: ibus-anthy
|
Name: ibus-anthy
|
||||||
Version: 1.4.99.20121006
|
Version: 1.4.99.20121006
|
||||||
@ -21,16 +21,16 @@ Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
|
|||||||
Patch91: ibus-anthy-xx-disable-prop-symbol.patch
|
Patch91: ibus-anthy-xx-disable-prop-symbol.patch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildRequires: anthy-devel
|
BuildRequires: anthy-devel
|
||||||
|
BuildRequires: desktop-file-utils
|
||||||
BuildRequires: gettext-devel
|
BuildRequires: gettext-devel
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
|
BuildRequires: gobject-introspection-devel
|
||||||
BuildRequires: ibus
|
BuildRequires: ibus
|
||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: gobject-introspection-devel
|
BuildRequires: python2-devel
|
||||||
|
|
||||||
Requires: ibus >= %{require_ibus_version}
|
Requires: ibus >= %{require_ibus_version}
|
||||||
Requires: anthy
|
Requires: anthy
|
||||||
@ -73,22 +73,24 @@ for developers.
|
|||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
|
||||||
make DESTDIR=${RPM_BUILD_ROOT} install
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libanthygobject-%{sub_version}.la
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libanthygobject-%{sub_version}.la
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
%clean
|
%check
|
||||||
rm -rf $RPM_BUILD_ROOT
|
desktop-file-validate \
|
||||||
|
$RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup-anthy.desktop
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
# recreate icon cache
|
# recreate icon cache
|
||||||
touch --no-create %{_datadir}/icons/hicolor || :
|
touch --no-create %{_datadir}/icons/hicolor || :
|
||||||
[ -x %{_bindir}/gtk-update-icon-cache ] && \
|
[ -x %{_bindir}/gtk-update-icon-cache ] && \
|
||||||
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
# recreate icon cache
|
# recreate icon cache
|
||||||
touch --no-create %{_datadir}/icons/hicolor || :
|
touch --no-create %{_datadir}/icons/hicolor || :
|
||||||
[ -x %{_bindir}/gtk-update-icon-cache ] && \
|
[ -x %{_bindir}/gtk-update-icon-cache ] && \
|
||||||
|
Loading…
Reference in New Issue
Block a user