[11280] | 1 | %define ver 4.2.9.4 |
---|
[10521] | 2 | %define rel 1 |
---|
[7965] | 3 | |
---|
| 4 | Summary: an input method framework with extension support |
---|
| 5 | Name: fcitx |
---|
| 6 | Version: %{ver} |
---|
| 7 | Release: %{rel}%{?_dist_release} |
---|
| 8 | License: GPLv2+ |
---|
| 9 | Group: System Environment/Libraries |
---|
| 10 | URL: https://fcitx-im.org/ |
---|
| 11 | Source0: http://download.fcitx-im.org/fcitx/%{name}-%{version}.tar.xz |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
| 13 | BuildRequires: cmake |
---|
| 14 | BuildRequires: wget |
---|
| 15 | BuildRequires: libX11-devel |
---|
| 16 | BuildRequires: dbus-glib-devel |
---|
| 17 | BuildRequires: xorg-x11-proto-devel |
---|
| 18 | BuildRequires: xorg-x11-xtrans-devel |
---|
[10521] | 19 | BuildRequires: libxkbcommon-devel |
---|
[7965] | 20 | BuildRequires: pango-devel |
---|
| 21 | BuildRequires: cairo-devel |
---|
| 22 | BuildRequires: dbus-devel |
---|
| 23 | BuildRequires: libicu-devel |
---|
| 24 | BuildRequires: iso-codes |
---|
| 25 | BuildRequires: libxml2-devel |
---|
| 26 | BuildRequires: gtk2-devel |
---|
| 27 | BuildRequires: gtk3-devel |
---|
| 28 | BuildRequires: qt4-devel |
---|
| 29 | BuildRequires: enchant-devel |
---|
| 30 | BuildRequires: lua-devel |
---|
| 31 | BuildRequires: gobject-introspection-devel |
---|
[11280] | 32 | BuildRequires: extra-cmake-modules |
---|
| 33 | BuildRequires: libxkbfile-devel |
---|
| 34 | BuildRequires: xkeyboard-config |
---|
[7965] | 35 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 36 | Requires: %{name}-data = %{version}-%{release} |
---|
| 37 | |
---|
| 38 | Distribution: Vine Linux |
---|
| 39 | Vendor: Project Vine |
---|
| 40 | Packager: iwaim |
---|
| 41 | |
---|
| 42 | %description |
---|
| 43 | Fcitx [ˈfaɪtɪks] is an input method framework with extension support. |
---|
| 44 | Currently it supports Linux and Unix systems like freebsd. |
---|
| 45 | It has three built-in Input Method Engine, Pinyin, QuWei and Table-based |
---|
| 46 | input methods. |
---|
| 47 | |
---|
| 48 | %package data |
---|
| 49 | Summary: Data files for Fcitx |
---|
| 50 | Group: System Environment/Libraries |
---|
| 51 | Requires: hicolor-icon-theme |
---|
| 52 | Requires: dbus |
---|
| 53 | |
---|
| 54 | %description data |
---|
| 55 | This package provides shared datas for Fxitx. |
---|
| 56 | |
---|
| 57 | %package libs |
---|
| 58 | Summary: Shared libraries for Fcitx |
---|
| 59 | Group: System Environment/Libraries |
---|
| 60 | |
---|
| 61 | %description libs |
---|
| 62 | This package provides shared libraries for Fcitx. |
---|
| 63 | |
---|
| 64 | %package devel |
---|
| 65 | Summary: Development files for Fcitx |
---|
| 66 | Group: Development/Libraries |
---|
| 67 | Requires: %{name} = %{version}-%{release} |
---|
| 68 | |
---|
| 69 | %description devel |
---|
| 70 | This package contains libraries and header files necessary for |
---|
| 71 | developing programs using Fcitx libraries. |
---|
| 72 | |
---|
| 73 | %package gtk2 |
---|
| 74 | Summary: Fcitx IM module for GTK2 |
---|
| 75 | Group: System Environment/Libraries |
---|
| 76 | Requires: %{name} = %{version}-%{release} |
---|
| 77 | |
---|
| 78 | %description gtk2 |
---|
| 79 | This package contains Fcitx IM module for GTK2. |
---|
| 80 | |
---|
| 81 | %package gtk3 |
---|
| 82 | Summary: Fcitx IM module for GTK3 |
---|
| 83 | Group: System Environment/Libraries |
---|
| 84 | Requires: %{name} = %{version}-%{release} |
---|
| 85 | |
---|
| 86 | %description gtk3 |
---|
| 87 | This package contains Fcitx IM module for GTK3. |
---|
| 88 | |
---|
| 89 | %package qt4 |
---|
| 90 | Summary: Fcitx IM module for Qt4 |
---|
| 91 | Group: System Environment/Libraries |
---|
| 92 | Requires: %{name} = %{version}-%{release} |
---|
| 93 | |
---|
| 94 | %description qt4 |
---|
| 95 | This package contains Fcitx IM module for Qt4. |
---|
| 96 | |
---|
| 97 | %prep |
---|
| 98 | %setup -q |
---|
| 99 | |
---|
| 100 | %build |
---|
| 101 | %__mkdir build |
---|
| 102 | pushd build |
---|
| 103 | cmake .. \ |
---|
| 104 | -DCMAKE_VERBOSE_MAKEFILE=ON \ |
---|
| 105 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 106 | -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \ |
---|
| 107 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \ |
---|
| 108 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
| 109 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 110 | -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \ |
---|
| 111 | -DENABLE_GTK3_IM_MODULE=On \ |
---|
| 112 | -DENABLE_QT_IM_MODULE=On \ |
---|
| 113 | -DENABLE_OPENCC=Off \ |
---|
| 114 | -DENABLE_LUA=On \ |
---|
| 115 | -DENABLE_GIR=On \ |
---|
[8502] | 116 | -DENABLE_XDGAUTOSTART=Off \ |
---|
| 117 | -DENABLE_PRESAGE=Off |
---|
[7965] | 118 | |
---|
| 119 | make %{?_smp_mflags} |
---|
| 120 | popd |
---|
| 121 | |
---|
| 122 | %install |
---|
| 123 | %__rm -rf $RPM_BUILD_ROOT |
---|
| 124 | pushd build |
---|
| 125 | make install INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT |
---|
| 126 | rm -f %{buildroot}%{_libdir}/*.la |
---|
| 127 | popd |
---|
| 128 | %{find_lang} %{name} |
---|
| 129 | |
---|
| 130 | %clean |
---|
| 131 | %__rm -rf $RPM_BUILD_ROOT |
---|
| 132 | |
---|
| 133 | %post |
---|
| 134 | update-desktop-database %{_datadir}/applications &>/dev/null || : |
---|
| 135 | |
---|
| 136 | %postun |
---|
| 137 | update-desktop-database %{_datadir}/applications &>/dev/null || : |
---|
| 138 | |
---|
| 139 | %post libs -p /sbin/ldconfig |
---|
| 140 | |
---|
| 141 | %postun libs -p /sbin/ldconfig |
---|
| 142 | |
---|
| 143 | %post data |
---|
| 144 | /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 145 | |
---|
| 146 | %postun data |
---|
| 147 | if [ $1 -eq 0 ] ; then |
---|
| 148 | /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null |
---|
| 149 | /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 150 | fi |
---|
| 151 | |
---|
| 152 | %posttrans data |
---|
| 153 | /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 154 | |
---|
| 155 | %post gtk2 |
---|
| 156 | %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/%{_arch}/gtk.immodules || : |
---|
| 157 | |
---|
| 158 | %postun gtk2 |
---|
| 159 | %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/%{_arch}/gtk.immodules || : |
---|
| 160 | |
---|
| 161 | %post gtk3 |
---|
| 162 | %{_bindir}/gtk-query-immodules-3.0 --update-cache || : |
---|
| 163 | |
---|
| 164 | %postun gtk3 |
---|
| 165 | %{_bindir}/gtk-query-immodules-3.0 --update-cache || : |
---|
| 166 | |
---|
| 167 | %files -f %{name}.lang |
---|
| 168 | %defattr(-,root,root,-) |
---|
| 169 | %doc README |
---|
| 170 | %{_bindir}/fcitx* |
---|
| 171 | %exclude %{_bindir}/fcitx4-config |
---|
| 172 | %{_bindir}/createPYMB |
---|
| 173 | %{_bindir}/mb2org |
---|
| 174 | %{_bindir}/mb2txt |
---|
| 175 | %{_bindir}/readPYBase |
---|
| 176 | %{_bindir}/readPYMB |
---|
| 177 | %{_bindir}/scel2org |
---|
| 178 | %{_bindir}/txt2mb |
---|
| 179 | %{_datadir}/applications/fcitx-configtool.desktop |
---|
| 180 | %{_datadir}/applications/fcitx-skin-installer.desktop |
---|
| 181 | %{_datadir}/applications/fcitx.desktop |
---|
| 182 | %{_datadir}/doc/fcitx |
---|
| 183 | %{_mandir}/man1/*.1* |
---|
| 184 | %{_datadir}/mime/packages/x-fskin.xml |
---|
| 185 | |
---|
| 186 | %files devel |
---|
| 187 | %defattr(-,root,root,-) |
---|
| 188 | %{_bindir}/fcitx4-config |
---|
| 189 | %{_libdir}/libfcitx*.so |
---|
[8085] | 190 | %{_libdir}/pkgconfig/fcitx-config.pc |
---|
| 191 | %{_libdir}/pkgconfig/fcitx-gclient.pc |
---|
| 192 | %{_libdir}/pkgconfig/fcitx-qt.pc |
---|
| 193 | %{_libdir}/pkgconfig/fcitx-utils.pc |
---|
| 194 | %{_libdir}/pkgconfig/fcitx.pc |
---|
[7965] | 195 | %{_includedir}/fcitx* |
---|
| 196 | %{_datadir}/cmake/fcitx |
---|
| 197 | %{_datadir}/gir-1.0/Fcitx-1.0.gir |
---|
| 198 | |
---|
| 199 | %files libs |
---|
| 200 | %defattr(-,root,root,-) |
---|
| 201 | %{_libdir}/fcitx |
---|
| 202 | %{_libdir}/libfcitx*.so.* |
---|
| 203 | %{_libdir}/girepository-1.0/Fcitx-1.0.typelib |
---|
| 204 | |
---|
| 205 | %files data |
---|
| 206 | %defattr(-,root,root,-) |
---|
| 207 | %{_datadir}/icons/hicolor/*/*/*.png |
---|
| 208 | %{_datadir}/icons/hicolor/scalable/apps/fcitx.svg |
---|
[9188] | 209 | %{_datadir}/icons/hicolor/scalable/apps/fcitx-*.svg |
---|
[7965] | 210 | %{_datadir}/fcitx |
---|
| 211 | %{_datadir}/dbus-1/services/org.fcitx.Fcitx.service |
---|
| 212 | |
---|
| 213 | %files gtk2 |
---|
| 214 | %defattr(-,root,root,-) |
---|
| 215 | %{_libdir}/gtk-2.0/*/immodules/im-fcitx.so |
---|
| 216 | |
---|
| 217 | %files gtk3 |
---|
| 218 | %defattr(-,root,root,-) |
---|
| 219 | %{_libdir}/gtk-3.0/*/immodules/im-fcitx.so |
---|
| 220 | |
---|
| 221 | %files qt4 |
---|
| 222 | %defattr(-,root,root,-) |
---|
| 223 | %{_libdir}/qt4/plugins/inputmethods/qtim-fcitx.so |
---|
| 224 | |
---|
| 225 | %changelog |
---|
[11280] | 226 | * Wed Dec 20 2017 Toshiaki Ara <ara_t@384.jp> 4.2.9.4-1 |
---|
| 227 | - update to 4.2.9.4 |
---|
| 228 | - add BR: extra-cmake-modules |
---|
| 229 | - add BR: libxkbfile-devel |
---|
| 230 | - add BR: xkeyboard-config |
---|
| 231 | |
---|
[10521] | 232 | * Sun Jul 3 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.2.9.1-1 |
---|
| 233 | - new upstream release. |
---|
| 234 | |
---|
[10447] | 235 | * Thu Jun 30 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.2.8.6-3 |
---|
| 236 | - rebuilt with new toolchain. |
---|
| 237 | |
---|
[9791] | 238 | * Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.2.8.6-2 |
---|
| 239 | - rebuild with icu-56.1 |
---|
| 240 | |
---|
[9532] | 241 | * Tue Apr 28 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 4.2.8.6-1 |
---|
| 242 | - update to 4.2.8.6 |
---|
| 243 | |
---|
[9188] | 244 | * Mon Nov 24 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 4.2.8.5-1 |
---|
| 245 | - update to 4.2.8.5 |
---|
| 246 | |
---|
[9073] | 247 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.2.8.4-2 |
---|
| 248 | - rebuild with icu-54.1 |
---|
| 249 | |
---|
[8085] | 250 | * Tue Dec 31 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.2.8.3-2 |
---|
| 251 | - rebuild with icu-52.1 |
---|
| 252 | - move pkgconfig files to %%{name}-devel |
---|
| 253 | |
---|
[7965] | 254 | * Tue Nov 5 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 4.2.8.3-1 |
---|
| 255 | - initial release |
---|