Accepting request 309527 from M17N
1 OBS-URL: https://build.opensuse.org/request/show/309527 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fcitx?expand=0&rev=46
This commit is contained in:
commit
37b10b4ef1
@ -1,11 +1,11 @@
|
|||||||
libfcitx-4_2_8
|
libfcitx-4_2_9
|
||||||
requires "fcitx = <version>"
|
requires "fcitx = <version>"
|
||||||
obsoletes "libfcitx-<targettype> < <version>"
|
obsoletes "libfcitx-<targettype> < <version>"
|
||||||
provides "libfcitx-<targettype> = <version>"
|
provides "libfcitx-<targettype> = <version>"
|
||||||
post "/sbin/ldconfig"
|
post "/sbin/ldconfig"
|
||||||
postun "/sbin/ldconfig"
|
postun "/sbin/ldconfig"
|
||||||
fcitx-gtk2
|
fcitx-gtk2
|
||||||
requires "libfcitx-4_2_8-<targettype> = <version>"
|
requires "libfcitx-4_2_9-<targettype> = <version>"
|
||||||
post "%if "%_lib" == "lib64""
|
post "%if "%_lib" == "lib64""
|
||||||
post "<prefix>%{_bindir}/gtk-query-immodules-2.0-64 --update-cache"
|
post "<prefix>%{_bindir}/gtk-query-immodules-2.0-64 --update-cache"
|
||||||
post "%else"
|
post "%else"
|
||||||
@ -17,8 +17,8 @@ fcitx-gtk2
|
|||||||
postun "<prefix>%{_bindir}/gtk-query-immodules-2.0 --update-cache"
|
postun "<prefix>%{_bindir}/gtk-query-immodules-2.0 --update-cache"
|
||||||
postun "%endif"
|
postun "%endif"
|
||||||
fcitx-gtk3
|
fcitx-gtk3
|
||||||
requires "libfcitx-4_2_8-<targettype> = <version>"
|
requires "libfcitx-4_2_9-<targettype> = <version>"
|
||||||
post "%if "%_lib" == "lib64""
|
post "%if "%_lib" == "lib64""
|
||||||
post "<prefix>%{_bindir}/gtk-query-immodules-3.0-64 --update-cache"
|
post "<prefix>%{_bindir}/gtk-query-immodules-3.0-64 --update-cache"
|
||||||
post "%else"
|
post "%else"
|
||||||
post "<prefix>%{_bindir}/gtk-query-immodules-3.0 --update-cache"
|
post "<prefix>%{_bindir}/gtk-query-immodules-3.0 --update-cache"
|
||||||
@ -29,4 +29,4 @@ fcitx-gtk3
|
|||||||
postun "<prefix>%{_bindir}/gtk-query-immodules-3.0 --update-cache"
|
postun "<prefix>%{_bindir}/gtk-query-immodules-3.0 --update-cache"
|
||||||
postun "%endif"
|
postun "%endif"
|
||||||
fcitx-qt4
|
fcitx-qt4
|
||||||
requires "libfcitx-4_2_8-<targettype> = <version>"
|
requires "libfcitx-4_2_9-<targettype> = <version>"
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:91034e9ef976bbe2649a96b67adf0c133d64e2c0d53be440cc40a4370569d597
|
|
||||||
size 8694328
|
|
3
fcitx-4.2.9_dict.tar.xz
Normal file
3
fcitx-4.2.9_dict.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3a935b7098fe573b126f8e393d93bccc6d4e4e9988830430fa9b1c87876bfc6c
|
||||||
|
size 8675292
|
@ -1,3 +1,27 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat May 30 17:22:00 UTC 2015 - Led <ledest@gmail.com>
|
||||||
|
|
||||||
|
- fix BuildRequires
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat May 30 05:43:52 UTC 2015 - i@marguerite.su
|
||||||
|
|
||||||
|
- update version 4.2.9
|
||||||
|
* [qt,core]use xkbcommon for compose
|
||||||
|
* [qt,keyboard]use xkbcommon better by checking return value
|
||||||
|
* [qt, core] adjust xkb context log level
|
||||||
|
* [qt,core] adjust init order to ensure set log level works
|
||||||
|
* [unicode] fix decimal unicode search
|
||||||
|
* [qt] fix compose when fcitx is not running
|
||||||
|
* [gtk] use xkbcommon also for gtk im context
|
||||||
|
* [gtk] reset xkb compose state when context reset
|
||||||
|
* [gtk, gclient] make connection and xkb context/table of
|
||||||
|
fcitxclient shared
|
||||||
|
* [gclient] fix some gtk-doc comment
|
||||||
|
* [qt] disable qt lib by option
|
||||||
|
* [core] fix invalid global imname
|
||||||
|
- clean specfile, drop fedora support
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 2 14:20:58 UTC 2015 - i@marguerite.su
|
Thu Apr 2 14:20:58 UTC 2015 - i@marguerite.su
|
||||||
|
|
||||||
|
156
fcitx.spec
156
fcitx.spec
@ -16,10 +16,10 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define libver -4_2_8
|
%define libver -4_2_9
|
||||||
|
|
||||||
Name: fcitx
|
Name: fcitx
|
||||||
Version: 4.2.8.6
|
Version: 4.2.9
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Flexible Context-aware Input Tool with eXtension
|
Summary: Flexible Context-aware Input Tool with eXtension
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
@ -36,19 +36,11 @@ Source9: macros.%{name}
|
|||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
Patch: fcitx-4.2.8.5-fix-bashisms.patch
|
Patch: fcitx-4.2.8.5-fix-bashisms.patch
|
||||||
BuildRequires: cairo-devel
|
BuildRequires: cairo-devel
|
||||||
%if 0%{?suse_version}
|
|
||||||
BuildRequires: dbus-1-devel
|
BuildRequires: dbus-1-devel
|
||||||
BuildRequires: dbus-1-glib-devel
|
BuildRequires: dbus-1-glib-devel
|
||||||
BuildRequires: update-desktop-files
|
|
||||||
%endif
|
|
||||||
%if 0%{?fedora_version}
|
|
||||||
BuildRequires: dbus-devel
|
|
||||||
BuildRequires: dbus-glib-devel
|
|
||||||
BuildRequires: desktop-file-utils
|
|
||||||
BuildRequires: libxkbfile-devel
|
|
||||||
%endif
|
|
||||||
BuildRequires: enchant-devel
|
BuildRequires: enchant-devel
|
||||||
BuildRequires: iso-codes-devel
|
BuildRequires: iso-codes-devel
|
||||||
|
BuildRequires: update-desktop-files
|
||||||
# Dictionary ownership
|
# Dictionary ownership
|
||||||
BuildRequires: kde4-filesystem
|
BuildRequires: kde4-filesystem
|
||||||
%if 0%{?suse_version} >= 1140
|
%if 0%{?suse_version} >= 1140
|
||||||
@ -56,37 +48,39 @@ BuildRequires: kdebase4-runtime-branding-openSUSE
|
|||||||
%endif
|
%endif
|
||||||
BuildRequires: libpresage-devel
|
BuildRequires: libpresage-devel
|
||||||
BuildRequires: pango-devel
|
BuildRequires: pango-devel
|
||||||
%if 0%{?suse_version} >= 1110 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1110
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} > 1110 || 0%{?fedora_version}
|
%if 0%{?suse_version} > 1110
|
||||||
BuildRequires: libqt4-devel
|
BuildRequires: libqt4-devel
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} <= 1210 || 0%{?fedora_version}
|
%if 0%{?suse_version} <= 1210
|
||||||
BuildRequires: lua-devel
|
BuildRequires: lua-devel
|
||||||
%else
|
%else
|
||||||
BuildRequires: lua51-devel
|
BuildRequires: lua51-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
|
BuildRequires: extra-cmake-modules
|
||||||
BuildRequires: gtk2-devel
|
BuildRequires: gtk2-devel
|
||||||
BuildRequires: opencc-devel
|
BuildRequires: opencc-devel
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140
|
||||||
BuildRequires: gobject-introspection-devel
|
BuildRequires: gobject-introspection-devel
|
||||||
BuildRequires: gtk3-devel
|
BuildRequires: gtk3-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libicu-devel
|
BuildRequires: libicu-devel
|
||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
|
BuildRequires: pkg-config
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
|
BuildRequires: pkgconfig(xkbcommon) >= 0.5.0
|
||||||
Requires: %{name}-gtk2 = %{version}-%{release}
|
Requires: %{name}-gtk2 = %{version}-%{release}
|
||||||
Requires: lib%{name}%{libver} = %{version}-%{release}
|
Requires: lib%{name}%{libver} = %{version}-%{release}
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140
|
||||||
Requires: %{name}-gtk3 = %{version}-%{release}
|
Requires: %{name}-gtk3 = %{version}-%{release}
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} > 1110 || 0%{?fedora_version}
|
%if 0%{?suse_version} > 1110
|
||||||
Requires: %{name}-qt4 = %{version}-%{release}
|
Requires: %{name}-qt4 = %{version}-%{release}
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version}
|
|
||||||
Recommends: %{name}-pinyin = %{version}-%{release}
|
Recommends: %{name}-pinyin = %{version}-%{release}
|
||||||
Recommends: %{name}-table = %{version}-%{release}
|
Recommends: %{name}-table = %{version}-%{release}
|
||||||
# These libraries are dlopen-ed in fcitx at runtime
|
# These libraries are dlopen-ed in fcitx at runtime
|
||||||
@ -96,16 +90,6 @@ Recommends: libopencc2
|
|||||||
Recommends: libpresage1
|
Recommends: libpresage1
|
||||||
Recommends: libenchant1
|
Recommends: libenchant1
|
||||||
Requires: %{name}-branding = %{version}
|
Requires: %{name}-branding = %{version}
|
||||||
%endif
|
|
||||||
%if 0%{?fedora_version}
|
|
||||||
Requires: %{name}-pinyin = %{version}-%{release}
|
|
||||||
Requires: %{name}-table = %{version}-%{release}
|
|
||||||
Requires: enchant
|
|
||||||
Requires: libpresage1
|
|
||||||
Requires: opencc
|
|
||||||
Requires(post): %{_sbindir}/alternatives
|
|
||||||
Requires(postun): %{_sbindir}/alternatives
|
|
||||||
%endif
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Provides: locale(ko;zh_CN;zh_SG)
|
Provides: locale(ko;zh_CN;zh_SG)
|
||||||
|
|
||||||
@ -144,18 +128,13 @@ Requires(postun): gtk2
|
|||||||
%description gtk2
|
%description gtk2
|
||||||
GTK+ version 2 input module for Fcitx input method rfamework.
|
GTK+ version 2 input module for Fcitx input method rfamework.
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140
|
||||||
|
|
||||||
%package gtk3
|
%package gtk3
|
||||||
Summary: Gtk3 IM module for %{name}
|
Summary: Gtk3 IM module for %{name}
|
||||||
Group: System/I18n/Chinese
|
Group: System/I18n/Chinese
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
%if 0%{?suse_version}
|
|
||||||
%gtk3_immodule_requires
|
%gtk3_immodule_requires
|
||||||
%else
|
|
||||||
Requires(post): gtk3
|
|
||||||
Requires(postun): gtk3
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description gtk3
|
%description gtk3
|
||||||
GTK+ version 3 input module for Fcitx input method framework.
|
GTK+ version 3 input module for Fcitx input method framework.
|
||||||
@ -171,7 +150,8 @@ Pinyin and QuWei input methods. It's flexible and fast.
|
|||||||
This package provides the GObject Introspection bindings for Fcitx.
|
This package provides the GObject Introspection bindings for Fcitx.
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} > 1110 || 0%{?fedora_version}
|
|
||||||
|
%if 0%{?suse_version} > 1110
|
||||||
|
|
||||||
%package qt4
|
%package qt4
|
||||||
Summary: Qt4 IM module for %{name}
|
Summary: Qt4 IM module for %{name}
|
||||||
@ -213,7 +193,7 @@ It's the basic component for other users except some Chinese.
|
|||||||
Summary: Simplified Chinese Tsang-Jei(Cangjie) table for %{name}
|
Summary: Simplified Chinese Tsang-Jei(Cangjie) table for %{name}
|
||||||
Group: System/I18n/Chinese
|
Group: System/I18n/Chinese
|
||||||
Requires: %{name}-table = %{version}-%{release}
|
Requires: %{name}-table = %{version}-%{release}
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -224,7 +204,7 @@ Fcitx Tsang Jei (Cang Jie) input tables for Simplified Chinese.
|
|||||||
Summary: Telegram(Dianbao) table for %{name}
|
Summary: Telegram(Dianbao) table for %{name}
|
||||||
Group: System/I18n/Chinese
|
Group: System/I18n/Chinese
|
||||||
Requires: %{name}-table = %{version}-%{release}
|
Requires: %{name}-table = %{version}-%{release}
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -235,7 +215,7 @@ Fcitx Telegram (Dian Bao) input tables for Simplified Chinese.
|
|||||||
Summary: Two stroke(Erbi) table for %{name}
|
Summary: Two stroke(Erbi) table for %{name}
|
||||||
Group: System/I18n/Chinese
|
Group: System/I18n/Chinese
|
||||||
Requires: %{name}-table = %{version}-%{release}
|
Requires: %{name}-table = %{version}-%{release}
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -246,7 +226,7 @@ Fcitx Two Stroke (Er Bi) input tables for Simplified Chinese.
|
|||||||
Summary: Icefrog Holography(QXM) table for %{name}
|
Summary: Icefrog Holography(QXM) table for %{name}
|
||||||
Group: System/I18n/Chinese
|
Group: System/I18n/Chinese
|
||||||
Requires: %{name}-table = %{version}-%{release}
|
Requires: %{name}-table = %{version}-%{release}
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -257,7 +237,7 @@ Fcitx Icefrog Holography (Bing Chan Quan Xi, or QXM) input tables for Simplified
|
|||||||
Summary: Evening Breeze(Wanfeng) table for %{name}
|
Summary: Evening Breeze(Wanfeng) table for %{name}
|
||||||
Group: System/I18n/Chinese
|
Group: System/I18n/Chinese
|
||||||
Requires: %{name}-table = %{version}-%{release}
|
Requires: %{name}-table = %{version}-%{release}
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -269,7 +249,7 @@ Summary: Wubi and pinyin(wubi-pinyin) table for %{name}
|
|||||||
Group: System/I18n/Chinese
|
Group: System/I18n/Chinese
|
||||||
Provides: locale(fcitx-table:zh-cn;)
|
Provides: locale(fcitx-table:zh-cn;)
|
||||||
Requires: %{name}-table = %{version}-%{release}
|
Requires: %{name}-table = %{version}-%{release}
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -283,7 +263,7 @@ Summary: Wubi table for %{name}
|
|||||||
Group: System/I18n/Chinese
|
Group: System/I18n/Chinese
|
||||||
Provides: locale(fcitx-table:zh-cn;)
|
Provides: locale(fcitx-table:zh-cn;)
|
||||||
Requires: %{name}-table = %{version}-%{release}
|
Requires: %{name}-table = %{version}-%{release}
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -296,7 +276,7 @@ Wubi in Fcitx is based on wubi x86.
|
|||||||
Summary: Nature(Ziran) table for %{name}
|
Summary: Nature(Ziran) table for %{name}
|
||||||
Group: System/I18n/Chinese
|
Group: System/I18n/Chinese
|
||||||
Requires: %{name}-table = %{version}-%{release}
|
Requires: %{name}-table = %{version}-%{release}
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -321,8 +301,6 @@ Requires: lib%{name}%{libver} = %{version}-%{release}
|
|||||||
%description pinyin-tools
|
%description pinyin-tools
|
||||||
Tools to convert txt or scel(sougou pinyin data format) pinyin sheets to fcitx match lists.
|
Tools to convert txt or scel(sougou pinyin data format) pinyin sheets to fcitx match lists.
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
|
|
||||||
%package branding-openSUSE
|
%package branding-openSUSE
|
||||||
Summary: openSUSE default Skins for Fcitx
|
Summary: openSUSE default Skins for Fcitx
|
||||||
Group: System/I18n/Chinese
|
Group: System/I18n/Chinese
|
||||||
@ -353,13 +331,11 @@ New Air skin for Fcitx, inspired by KDE Air theme.
|
|||||||
You can either use this package or download from kde-look.org using knewstaff in
|
You can either use this package or download from kde-look.org using knewstaff in
|
||||||
fcitx-config-kde4.
|
fcitx-config-kde4.
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%package skin-classic
|
%package skin-classic
|
||||||
Summary: Fcitx Classic Skin
|
Summary: Fcitx Classic Skin
|
||||||
Group: System/I18n/Chinese
|
Group: System/I18n/Chinese
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -372,7 +348,7 @@ You can either use this package or download from kde-look.org using knewstaff in
|
|||||||
Summary: Fcitx Dark Skin
|
Summary: Fcitx Dark Skin
|
||||||
Group: System/I18n/Chinese
|
Group: System/I18n/Chinese
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -406,7 +382,7 @@ cmake .. \
|
|||||||
-DOPENCC_LIBRARY_FILENAME=libopencc.so.2 \
|
-DOPENCC_LIBRARY_FILENAME=libopencc.so.2 \
|
||||||
-DENCHANT_LIBRARY_FILENAME=libenchant.so.1 \
|
-DENCHANT_LIBRARY_FILENAME=libenchant.so.1 \
|
||||||
-DPRESAGE_LIBRARY_FILENAME=libpresage.so.1 \
|
-DPRESAGE_LIBRARY_FILENAME=libpresage.so.1 \
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140
|
||||||
-DENABLE_GTK3_IM_MODULE=On \
|
-DENABLE_GTK3_IM_MODULE=On \
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} <= 1210
|
%if 0%{?suse_version} <= 1210
|
||||||
@ -427,12 +403,9 @@ make
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
cd build
|
cd build
|
||||||
# support fedora 17
|
%makeinstall
|
||||||
make DESTDIR=%{buildroot} install
|
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
# install openSUSE skins
|
# install openSUSE skins
|
||||||
tar -xzf %{SOURCE8}
|
tar -xzf %{SOURCE8}
|
||||||
mv openSUSE-themes/Harlequin %{buildroot}%{_datadir}/%{name}/skin/
|
mv openSUSE-themes/Harlequin %{buildroot}%{_datadir}/%{name}/skin/
|
||||||
@ -449,28 +422,15 @@ cp -r openSUSE-themes/input-Harlequin.svgz %{buildroot}%{_kde4_appsdir}/desktopt
|
|||||||
pushd %{buildroot}%{_datadir}/%{name}/configdesc
|
pushd %{buildroot}%{_datadir}/%{name}/configdesc
|
||||||
sed -i 's/DefaultValue=default/DefaultValue=Harlequin/' %{buildroot}%{_datadir}/%{name}/configdesc/fcitx-classic-ui.desc
|
sed -i 's/DefaultValue=default/DefaultValue=Harlequin/' %{buildroot}%{_datadir}/%{name}/configdesc/fcitx-classic-ui.desc
|
||||||
popd
|
popd
|
||||||
%endif
|
|
||||||
|
|
||||||
# fix desktop file
|
# fix desktop file
|
||||||
sed -i "s/x-fskin/x-fskin;/" %{buildroot}%{_datadir}/applications/fcitx-skin-installer.desktop
|
sed -i "s/x-fskin/x-fskin;/" %{buildroot}%{_datadir}/applications/fcitx-skin-installer.desktop
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
%suse_update_desktop_file fcitx Utility DesktopUtility
|
%suse_update_desktop_file fcitx Utility DesktopUtility
|
||||||
%suse_update_desktop_file fcitx-skin-installer Utility DesktopUtility
|
%suse_update_desktop_file fcitx-skin-installer Utility DesktopUtility
|
||||||
%suse_update_desktop_file -r fcitx-configtool System X-SuSE-SystemSetup
|
%suse_update_desktop_file -r fcitx-configtool System X-SuSE-SystemSetup
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?fedora_version}
|
|
||||||
desktop-file-install --add-category="Utility" --delete-original --dir=%{buildroot}%{_datadir}/applications \
|
|
||||||
%{buildroot}/%{_datadir}/applications/fcitx.desktop
|
|
||||||
desktop-file-install --add-category="Utility" --delete-original --dir=%{buildroot}%{_datadir}/applications \
|
|
||||||
%{buildroot}/%{_datadir}/applications/fcitx-skin-installer.desktop
|
|
||||||
desktop-file-install --add-category="System" --delete-original --dir=%{buildroot}%{_datadir}/applications \
|
|
||||||
%{buildroot}/%{_datadir}/applications/fcitx-configtool.desktop
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# fix doc
|
# fix doc
|
||||||
%if 0%{?suse_version}
|
|
||||||
mkdir -p %{buildroot}%{_docdir}/
|
mkdir -p %{buildroot}%{_docdir}/
|
||||||
mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_docdir}/
|
mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_docdir}/
|
||||||
cp -r %{SOURCE2} %{buildroot}%{_docdir}/%{name}/
|
cp -r %{SOURCE2} %{buildroot}%{_docdir}/%{name}/
|
||||||
@ -478,19 +438,8 @@ cp -r %{SOURCE3} %{buildroot}%{_docdir}/%{name}/
|
|||||||
cp -r AUTHORS %{buildroot}%{_docdir}/%{name}/
|
cp -r AUTHORS %{buildroot}%{_docdir}/%{name}/
|
||||||
cp -r ChangeLog %{buildroot}%{_docdir}/%{name}/
|
cp -r ChangeLog %{buildroot}%{_docdir}/%{name}/
|
||||||
cp -r COPYING %{buildroot}%{_docdir}/%{name}/
|
cp -r COPYING %{buildroot}%{_docdir}/%{name}/
|
||||||
%endif
|
|
||||||
%if 0%{?fedora_version}
|
|
||||||
mkdir %{buildroot}%{_docdir}/packages/
|
|
||||||
mv %{buildroot}%{_docdir}/%{name}/ %{buildroot}%{_docdir}/packages/
|
|
||||||
cp -r %{SOURCE2} %{buildroot}%{_docdir}/packages/%{name}/
|
|
||||||
cp -r %{SOURCE3} %{buildroot}%{_docdir}/packages/%{name}/
|
|
||||||
cp -r AUTHORS %{buildroot}%{_docdir}/packages/%{name}/
|
|
||||||
cp -r ChangeLog %{buildroot}%{_docdir}/packages/%{name}/
|
|
||||||
cp -r COPYING %{buildroot}%{_docdir}/packages/%{name}/
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# create autostart
|
# create autostart
|
||||||
%if 0%{?suse_version}
|
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/X11/xim.d/
|
mkdir -p %{buildroot}%{_sysconfdir}/X11/xim.d/
|
||||||
install -m 644 %{S:1} %{buildroot}%{_sysconfdir}/X11/xim.d/fcitx
|
install -m 644 %{S:1} %{buildroot}%{_sysconfdir}/X11/xim.d/fcitx
|
||||||
|
|
||||||
@ -508,12 +457,6 @@ popd
|
|||||||
|
|
||||||
# bnc#801319 remove the unneeded fcitx-autostart.desktop which blocks ibus from starting.
|
# bnc#801319 remove the unneeded fcitx-autostart.desktop which blocks ibus from starting.
|
||||||
rm -rf %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop
|
rm -rf %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?fedora_version}
|
|
||||||
mkdir -pv %{buildroot}%{_sysconfdir}/X11/xinit/xinput.d/
|
|
||||||
install -pm 644 -D %{SOURCE7} %{buildroot}%{_sysconfdir}/X11/xinit/xinput.d/fcitx.conf
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# install rpm macros
|
# install rpm macros
|
||||||
install -D -m644 %{SOURCE9} %{buildroot}%{_sysconfdir}/rpm/macros.%{name}
|
install -D -m644 %{SOURCE9} %{buildroot}%{_sysconfdir}/rpm/macros.%{name}
|
||||||
@ -525,10 +468,6 @@ install -D -m644 %{SOURCE9} %{buildroot}%{_sysconfdir}/rpm/macros.%{name}
|
|||||||
|
|
||||||
%if 0%{?suse_version} >= 1110
|
%if 0%{?suse_version} >= 1110
|
||||||
%fdupes %{buildroot}
|
%fdupes %{buildroot}
|
||||||
%else
|
|
||||||
%if 0%{?fedora_version}
|
|
||||||
fdupes -n -q -r %{buildroot}
|
|
||||||
%endif
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post gtk2
|
%post gtk2
|
||||||
@ -537,7 +476,7 @@ fdupes -n -q -r %{buildroot}
|
|||||||
%postun gtk2
|
%postun gtk2
|
||||||
%gtk2_immodule_postun
|
%gtk2_immodule_postun
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140
|
||||||
|
|
||||||
%post gtk3
|
%post gtk3
|
||||||
%gtk3_immodule_post
|
%gtk3_immodule_post
|
||||||
@ -554,29 +493,9 @@ fi
|
|||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# fedora autostart
|
|
||||||
%if 0%{?fedora_version}
|
|
||||||
%post
|
|
||||||
/sbin/ldconfig
|
|
||||||
%{_sbindir}/alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_sysconfdir}/X11/xinit/xinput.d/fcitx.conf 55 || :
|
|
||||||
update-desktop-database %{_datadir}/applications &>/dev/null || :
|
|
||||||
|
|
||||||
%postun
|
|
||||||
/sbin/ldconfig
|
|
||||||
if [ "$1" = "0" ]; then
|
|
||||||
%{_sbindir}/alternatives --remove xinputrc %{_sysconfdir}/X11/xinit/xinput.d/fcitx.conf || :
|
|
||||||
# if alternative was set to manual, reset to auto
|
|
||||||
[ -L %{_sysconfdir}/alternatives/xinputrc -a "`readlink %{_sysconfdir}/alternatives/xinputrc`" = "%{_sysconfdir}/X11/xinit/xinput.d/fcitx.conf" ] && %{_sbindir}/alternatives --auto xinputrc || :
|
|
||||||
fi
|
|
||||||
update-desktop-database %{_datadir}/applications &>/dev/null ||
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
%endif
|
|
||||||
|
|
||||||
%post -n lib%{name}%{libver} -p /sbin/ldconfig
|
%post -n lib%{name}%{libver} -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -599,15 +518,8 @@ update-desktop-database %{_datadir}/applications &>/dev/null ||
|
|||||||
%{_mandir}/man1/fcitx.1.gz
|
%{_mandir}/man1/fcitx.1.gz
|
||||||
%{_mandir}/man1/fcitx-remote.1.gz
|
%{_mandir}/man1/fcitx-remote.1.gz
|
||||||
%{_libdir}/%{name}/
|
%{_libdir}/%{name}/
|
||||||
%if 0%{?suse_version}
|
|
||||||
%config %{_sysconfdir}/X11/xim.d/
|
%config %{_sysconfdir}/X11/xim.d/
|
||||||
%doc %{_docdir}/%{name}/
|
%doc %{_docdir}/%{name}/
|
||||||
%endif
|
|
||||||
%if 0%{?fedora_version}
|
|
||||||
%config %{_sysconfdir}/X11/xinit/xinput.d/
|
|
||||||
%doc %{_docdir}/packages/%{name}/
|
|
||||||
%config %{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# excludes
|
# excludes
|
||||||
%exclude %{_datadir}/%{name}/pinyin
|
%exclude %{_datadir}/%{name}/pinyin
|
||||||
@ -625,11 +537,9 @@ update-desktop-database %{_datadir}/applications &>/dev/null ||
|
|||||||
%exclude %{_libdir}/%{name}/libexec/comp-spell-dict
|
%exclude %{_libdir}/%{name}/libexec/comp-spell-dict
|
||||||
%exclude %{_libdir}/%{name}/libexec/fcitx-po-parser
|
%exclude %{_libdir}/%{name}/libexec/fcitx-po-parser
|
||||||
%exclude %{_libdir}/%{name}/libexec/fcitx-scanner
|
%exclude %{_libdir}/%{name}/libexec/fcitx-scanner
|
||||||
%if 0%{?suse_version}
|
|
||||||
%exclude %{_datadir}/%{name}/skin/Harlequin
|
%exclude %{_datadir}/%{name}/skin/Harlequin
|
||||||
%exclude %{_datadir}/%{name}/skin/Dartmouth
|
%exclude %{_datadir}/%{name}/skin/Dartmouth
|
||||||
%exclude %{_datadir}/%{name}/skin/NewAir
|
%exclude %{_datadir}/%{name}/skin/NewAir
|
||||||
%endif
|
|
||||||
%exclude %{_datadir}/%{name}/skin/classic
|
%exclude %{_datadir}/%{name}/skin/classic
|
||||||
%exclude %{_datadir}/%{name}/skin/dark
|
%exclude %{_datadir}/%{name}/skin/dark
|
||||||
|
|
||||||
@ -642,7 +552,7 @@ update-desktop-database %{_datadir}/applications &>/dev/null ||
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/gtk-2.0/*
|
%{_libdir}/gtk-2.0/*
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140
|
||||||
|
|
||||||
%files gtk3
|
%files gtk3
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -734,8 +644,6 @@ update-desktop-database %{_datadir}/applications &>/dev/null ||
|
|||||||
%{_mandir}/man1/mb2org.1.gz
|
%{_mandir}/man1/mb2org.1.gz
|
||||||
%{_mandir}/man1/scel2org.1.gz
|
%{_mandir}/man1/scel2org.1.gz
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
|
|
||||||
%files branding-openSUSE
|
%files branding-openSUSE
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_datadir}/%{name}/skin/Harlequin
|
%{_datadir}/%{name}/skin/Harlequin
|
||||||
@ -756,8 +664,6 @@ update-desktop-database %{_datadir}/applications &>/dev/null ||
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_datadir}/%{name}/skin/NewAir
|
%{_datadir}/%{name}/skin/NewAir
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files skin-classic
|
%files skin-classic
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_datadir}/%{name}/skin/classic
|
%{_datadir}/%{name}/skin/classic
|
||||||
@ -776,11 +682,11 @@ update-desktop-database %{_datadir}/applications &>/dev/null ||
|
|||||||
%{_libdir}/%{name}/libexec/fcitx-scanner
|
%{_libdir}/%{name}/libexec/fcitx-scanner
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
%{_datadir}/cmake/
|
%{_datadir}/cmake/
|
||||||
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
%if 0%{?suse_version} >= 1140
|
||||||
%{_datadir}/gir-1.0/Fcitx-1.0.gir
|
%{_datadir}/gir-1.0/Fcitx-1.0.gir
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1110 || 0%{?fedora_version}
|
%if 0%{?suse_version} > 1110
|
||||||
|
|
||||||
%files qt4
|
%files qt4
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user