forked from pool/fcitx
Accepting request 956717 from home:MargueriteSu:branches:M17N
- long gone Harlequin, don't change default theme (boo#1188416) - 32bit is long gone, drop baselibs.conf - split libfcitx-4_2_9 according to shlib-policy-name-error rpmlint report(boo#1191753) - other rpmlint fixes OBS-URL: https://build.opensuse.org/request/show/956717 OBS-URL: https://build.opensuse.org/package/show/M17N/fcitx?expand=0&rev=166
This commit is contained in:
parent
2659a04ace
commit
a37977e9e6
@ -1,32 +0,0 @@
|
|||||||
libfcitx-4_2_9
|
|
||||||
requires "fcitx = <version>"
|
|
||||||
obsoletes "libfcitx-<targettype> < <version>"
|
|
||||||
provides "libfcitx-<targettype> = <version>"
|
|
||||||
post "/sbin/ldconfig"
|
|
||||||
postun "/sbin/ldconfig"
|
|
||||||
fcitx-gtk2
|
|
||||||
requires "libfcitx-4_2_9-<targettype> = <version>"
|
|
||||||
post "%if "%_lib" == "lib64""
|
|
||||||
post "<prefix>%{_bindir}/gtk-query-immodules-2.0-64 --update-cache"
|
|
||||||
post "%else"
|
|
||||||
post "<prefix>%{_bindir}/gtk-query-immodules-2.0 --update-cache"
|
|
||||||
post "%endif"
|
|
||||||
postun "%if "%_lib" == "lib64""
|
|
||||||
postun "<prefix>%{_bindir}/gtk-query-immodules-2.0-64 --update-cache"
|
|
||||||
postun "%else"
|
|
||||||
postun "<prefix>%{_bindir}/gtk-query-immodules-2.0 --update-cache"
|
|
||||||
postun "%endif"
|
|
||||||
fcitx-gtk3
|
|
||||||
requires "libfcitx-4_2_9-<targettype> = <version>"
|
|
||||||
post "%if "%_lib" == "lib64""
|
|
||||||
post "<prefix>%{_bindir}/gtk-query-immodules-3.0-64 --update-cache"
|
|
||||||
post "%else"
|
|
||||||
post "<prefix>%{_bindir}/gtk-query-immodules-3.0 --update-cache"
|
|
||||||
post "%endif"
|
|
||||||
postun "%if "%_lib" == "lib64""
|
|
||||||
postun "<prefix>%{_bindir}/gtk-query-immodules-3.0-64 --update-cache"
|
|
||||||
postun "%else"
|
|
||||||
postun "<prefix>%{_bindir}/gtk-query-immodules-3.0 --update-cache"
|
|
||||||
postun "%endif"
|
|
||||||
fcitx-qt4
|
|
||||||
requires "libfcitx-4_2_9-<targettype> = <version>"
|
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Feb 20 10:55:08 UTC 2022 - Marguerite Su <i@marguerite.su>
|
||||||
|
|
||||||
|
- long gone Harlequin, don't change default theme (boo#1188416)
|
||||||
|
- 32bit is long gone, drop baselibs.conf
|
||||||
|
- split libfcitx-4_2_9 according to shlib-policy-name-error
|
||||||
|
rpmlint report(boo#1191753)
|
||||||
|
- other rpmlint fixes
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 20 08:06:20 CET 2022 - tiwai@suse.de
|
Thu Jan 20 08:06:20 CET 2022 - tiwai@suse.de
|
||||||
|
|
||||||
|
103
fcitx.spec
103
fcitx.spec
@ -20,7 +20,6 @@
|
|||||||
%define _distconfdir %{_sysconfdir}
|
%define _distconfdir %{_sysconfdir}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define libver -4_2_9
|
|
||||||
Name: fcitx
|
Name: fcitx
|
||||||
Version: 4.2.9.8
|
Version: 4.2.9.8
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -34,7 +33,6 @@ Source2: fcitx-README.suse
|
|||||||
Source3: xim.fcitx.suse.template
|
Source3: xim.fcitx.suse.template
|
||||||
Source8: openSUSE-themes.tar.gz
|
Source8: openSUSE-themes.tar.gz
|
||||||
Source9: macros.%{name}
|
Source9: macros.%{name}
|
||||||
Source99: baselibs.conf
|
|
||||||
Source100: https://download.fcitx-im.org/fcitx/%{name}-%{version}_dict.tar.xz.sig
|
Source100: https://download.fcitx-im.org/fcitx/%{name}-%{version}_dict.tar.xz.sig
|
||||||
# PATCH-FIX-OPENSUSE fcitx-autostart-check-INPUT_METHOD.patch boo#947576
|
# PATCH-FIX-OPENSUSE fcitx-autostart-check-INPUT_METHOD.patch boo#947576
|
||||||
Patch2: fcitx-autostart-check-INPUT_METHOD.patch
|
Patch2: fcitx-autostart-check-INPUT_METHOD.patch
|
||||||
@ -71,19 +69,13 @@ BuildRequires: pkgconfig(lua)
|
|||||||
BuildRequires: pkgconfig(xkbcommon) >= 0.5.0
|
BuildRequires: pkgconfig(xkbcommon) >= 0.5.0
|
||||||
BuildRequires: pkgconfig(xkbfile)
|
BuildRequires: pkgconfig(xkbfile)
|
||||||
Requires: %{name}-branding = %{version}
|
Requires: %{name}-branding = %{version}
|
||||||
Requires: %{name}-gtk3 = %{version}-%{release}
|
|
||||||
Requires: lib%{name}%{libver} = %{version}-%{release}
|
|
||||||
Recommends: %{name}-gtk2 = %{version}-%{release}
|
|
||||||
Recommends: %{name}-pinyin = %{version}-%{release}
|
Recommends: %{name}-pinyin = %{version}-%{release}
|
||||||
Recommends: %{name}-table = %{version}-%{release}
|
Recommends: %{name}-table = %{version}-%{release}
|
||||||
%if 0%{?suse_version} < 1550 && 0%{?sle_version} < 150200
|
|
||||||
Recommends: %{name}-qt4 = %{version}-%{release}
|
|
||||||
%endif
|
|
||||||
# These libraries are dlopen-ed in fcitx at runtime
|
# These libraries are dlopen-ed in fcitx at runtime
|
||||||
# for spell-checking for keyboard users. ld can't find
|
# for spell-checking for keyboard users. ld can't find
|
||||||
# them, so explicitly recommends.
|
# them, so explicitly recommends.
|
||||||
Recommends: libenchant1
|
Recommends: libenchant1
|
||||||
Recommends: libopencc2
|
Recommends: libopencc1_1
|
||||||
Recommends: libpresage1
|
Recommends: libpresage1
|
||||||
Provides: locale(ko;zh_CN;zh_SG)
|
Provides: locale(ko;zh_CN;zh_SG)
|
||||||
|
|
||||||
@ -91,19 +83,44 @@ Provides: locale(ko;zh_CN;zh_SG)
|
|||||||
Fcitx is a CJK input method framework. It supports Table,
|
Fcitx is a CJK input method framework. It supports Table,
|
||||||
Pinyin and QuWei input methods. It's flexible and fast.
|
Pinyin and QuWei input methods. It's flexible and fast.
|
||||||
|
|
||||||
%package -n lib%{name}%{libver}
|
%package -n libfcitx-core0
|
||||||
Summary: Shared libraries for %{name}
|
Summary: Core library of fcitx
|
||||||
Group: System/I18n/Chinese
|
Group: System/Libraries
|
||||||
Obsoletes: lib%{name} < %{version}
|
Provides: libfcitx-4_2_9 = %{version}
|
||||||
Provides: lib%{name} = %{version}
|
Obsoletes: libfcitx-4_2_9 < %{version}
|
||||||
|
|
||||||
%description -n lib%{name}%{libver}
|
%description -n libfcitx-core0
|
||||||
Shared libraries for Fcitx input method framework.
|
Core library of fcitx.
|
||||||
|
|
||||||
|
%package -n libfcitx-gclient1
|
||||||
|
Summary: GClient library of fcitx
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libfcitx-gclient1
|
||||||
|
GClient library of fcitx
|
||||||
|
|
||||||
|
%package -n libfcitx-utils0
|
||||||
|
Summary: Util library of fcitx
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libfcitx-utils0
|
||||||
|
Util library of fcitx
|
||||||
|
|
||||||
|
%package -n libfcitx-config4
|
||||||
|
Summary: Config library of fcitx4
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libfcitx-config4
|
||||||
|
Config library of fcitx
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: libfcitx-config4 = %{version}
|
||||||
|
Requires: libfcitx-core0 = %{version}
|
||||||
|
Requires: libfcitx-utils0 = %{version}
|
||||||
|
Requires: libfcitx-gclient1 = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Development header files for Fcitx input method framework.
|
Development header files for Fcitx input method framework.
|
||||||
@ -111,7 +128,7 @@ Development header files for Fcitx input method framework.
|
|||||||
%package gtk2
|
%package gtk2
|
||||||
Summary: Gtk2 IM module for %{name}
|
Summary: Gtk2 IM module for %{name}
|
||||||
Group: System/I18n/Chinese
|
Group: System/I18n/Chinese
|
||||||
Requires: %{name} = %{version}-%{release}
|
Supplements: (fcitx and libgtk-2_0-0)
|
||||||
%{gtk2_immodule_requires}
|
%{gtk2_immodule_requires}
|
||||||
|
|
||||||
%description gtk2
|
%description gtk2
|
||||||
@ -120,7 +137,7 @@ GTK+ version 2 input module for Fcitx input method rfamework.
|
|||||||
%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}
|
Supplements: (fcitx and libgtk-3-0)
|
||||||
%{gtk3_immodule_requires}
|
%{gtk3_immodule_requires}
|
||||||
|
|
||||||
%description gtk3
|
%description gtk3
|
||||||
@ -140,7 +157,7 @@ This package provides the GObject Introspection bindings for Fcitx.
|
|||||||
%package qt4
|
%package qt4
|
||||||
Summary: Qt4 IM module for %{name}
|
Summary: Qt4 IM module for %{name}
|
||||||
Group: System/I18n/Chinese
|
Group: System/I18n/Chinese
|
||||||
Requires: %{name} = %{version}-%{release}
|
Supplements: (fcitx and libqt4)
|
||||||
|
|
||||||
%description qt4
|
%description qt4
|
||||||
QT4 input module for Fcitx input method framework.
|
QT4 input module for Fcitx input method framework.
|
||||||
@ -253,7 +270,6 @@ Fcitx Nature (Zi Ran Ma) input tables for Simplified Chinese.
|
|||||||
%package table-tools
|
%package table-tools
|
||||||
Summary: Fcitx tools to make tables
|
Summary: Fcitx tools to make tables
|
||||||
Group: System/I18n/Chinese
|
Group: System/I18n/Chinese
|
||||||
Requires: lib%{name}%{libver} = %{version}-%{release}
|
|
||||||
|
|
||||||
%description table-tools
|
%description table-tools
|
||||||
Tools to convert txt word sheets to fcitx tables.
|
Tools to convert txt word sheets to fcitx tables.
|
||||||
@ -263,7 +279,6 @@ see manpage for details
|
|||||||
%package pinyin-tools
|
%package pinyin-tools
|
||||||
Summary: Fcitx tools to make pinyin match list
|
Summary: Fcitx tools to make pinyin match list
|
||||||
Group: System/I18n/Chinese
|
Group: System/I18n/Chinese
|
||||||
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.
|
||||||
@ -357,14 +372,9 @@ mv openSUSE-themes/Harlequin %{buildroot}%{_datadir}/%{name}/skin/
|
|||||||
mv openSUSE-themes/Dartmouth %{buildroot}%{_datadir}/%{name}/skin/
|
mv openSUSE-themes/Dartmouth %{buildroot}%{_datadir}/%{name}/skin/
|
||||||
mv openSUSE-themes/NewAir %{buildroot}%{_datadir}/%{name}/skin/
|
mv openSUSE-themes/NewAir %{buildroot}%{_datadir}/%{name}/skin/
|
||||||
|
|
||||||
# Change default skin
|
|
||||||
pushd %{buildroot}%{_datadir}/%{name}/configdesc
|
|
||||||
sed -i 's/DefaultValue=default/DefaultValue=Harlequin/' %{buildroot}%{_datadir}/%{name}/configdesc/fcitx-classic-ui.desc
|
|
||||||
popd
|
|
||||||
|
|
||||||
%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 fcitx-configtool Settings DesktopSettings
|
||||||
|
|
||||||
# fix doc
|
# fix doc
|
||||||
mkdir -p %{buildroot}%{_docdir}/
|
mkdir -p %{buildroot}%{_docdir}/
|
||||||
@ -396,6 +406,13 @@ install -D -m644 %{SOURCE9} %{buildroot}%{_rpmmacrodir}/macros.%{name}
|
|||||||
# remove *.la
|
# remove *.la
|
||||||
rm -rf %{buildroot}%{_libdir}/lib%{name}-config.la
|
rm -rf %{buildroot}%{_libdir}/lib%{name}-config.la
|
||||||
|
|
||||||
|
# fix scripts
|
||||||
|
for script in $(ls %{buildroot}%{_datadir}/cmake/fcitx/*.sh) ; do
|
||||||
|
sed -i "s/\/usr\/bin\/env bash/\/usr\/bin\/bash/" $script;
|
||||||
|
chmod +x $script;
|
||||||
|
done
|
||||||
|
sed -i "s/\/usr\/bin\/env bash/\/usr\/bin\/bash/" %{buildroot}%{_bindir}/fcitx-diagnose
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
%fdupes %{buildroot}
|
%fdupes %{buildroot}
|
||||||
@ -429,8 +446,14 @@ exit 0
|
|||||||
%icon_theme_cache_postun
|
%icon_theme_cache_postun
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%post -n lib%{name}%{libver} -p /sbin/ldconfig
|
%post -n libfcitx-core0 -p /sbin/ldconfig
|
||||||
%postun -n lib%{name}%{libver} -p /sbin/ldconfig
|
%post -n libfcitx-gclient1 -p /sbin/ldconfig
|
||||||
|
%post -n libfcitx-utils0 -p /sbin/ldconfig
|
||||||
|
%post -n libfcitx-config4 -p /sbin/ldconfig
|
||||||
|
%postun -n libfcitx-core0 -p /sbin/ldconfig
|
||||||
|
%postun -n libfcitx-gclient1 -p /sbin/ldconfig
|
||||||
|
%postun -n libfcitx-utils0 -p /sbin/ldconfig
|
||||||
|
%postun -n libfcitx-config4 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%license COPYING
|
%license COPYING
|
||||||
@ -475,9 +498,21 @@ exit 0
|
|||||||
%exclude %{_datadir}/%{name}/skin/classic
|
%exclude %{_datadir}/%{name}/skin/classic
|
||||||
%exclude %{_datadir}/%{name}/skin/dark
|
%exclude %{_datadir}/%{name}/skin/dark
|
||||||
|
|
||||||
%files -n lib%{name}%{libver}
|
%files -n libfcitx-core0
|
||||||
%{_libdir}/libfcitx*.so.*
|
%{_libdir}/libfcitx-core.so.0
|
||||||
%{_libdir}/libfcitx*.so
|
%{_libdir}/libfcitx-core.so.0.3
|
||||||
|
|
||||||
|
%files -n libfcitx-gclient1
|
||||||
|
%{_libdir}/libfcitx-gclient.so.1
|
||||||
|
%{_libdir}/libfcitx-gclient.so.0.2
|
||||||
|
|
||||||
|
%files -n libfcitx-utils0
|
||||||
|
%{_libdir}/libfcitx-utils.so.0
|
||||||
|
%{_libdir}/libfcitx-utils.so.0.1
|
||||||
|
|
||||||
|
%files -n libfcitx-config4
|
||||||
|
%{_libdir}/libfcitx-config.so.4
|
||||||
|
%{_libdir}/libfcitx-config.so.4.1
|
||||||
|
|
||||||
%files gtk2
|
%files gtk2
|
||||||
%{_libdir}/gtk-2.0/*
|
%{_libdir}/gtk-2.0/*
|
||||||
@ -578,6 +613,10 @@ exit 0
|
|||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
%{_datadir}/cmake/
|
%{_datadir}/cmake/
|
||||||
%{_datadir}/gir-1.0/Fcitx-1.0.gir
|
%{_datadir}/gir-1.0/Fcitx-1.0.gir
|
||||||
|
%{_libdir}/libfcitx-config.so
|
||||||
|
%{_libdir}/libfcitx-core.so
|
||||||
|
%{_libdir}/libfcitx-utils.so
|
||||||
|
%{_libdir}/libfcitx-gclient.so
|
||||||
|
|
||||||
%if 0%{?suse_version} < 1550 && 0%{?sle_version} < 150200
|
%if 0%{?suse_version} < 1550 && 0%{?sle_version} < 150200
|
||||||
%files qt4
|
%files qt4
|
||||||
|
Loading…
Reference in New Issue
Block a user