[8502] | 1 | %define ver 4.2.8.4 |
---|
| 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 |
---|
| 19 | BuildRequires: libxkbfile-devel |
---|
| 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 |
---|
| 32 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 33 | Requires: %{name}-data = %{version}-%{release} |
---|
| 34 | |
---|
| 35 | Distribution: Vine Linux |
---|
| 36 | Vendor: Project Vine |
---|
| 37 | Packager: iwaim |
---|
| 38 | |
---|
| 39 | %description |
---|
| 40 | Fcitx [ˈfaɪtɪks] is an input method framework with extension support. |
---|
| 41 | Currently it supports Linux and Unix systems like freebsd. |
---|
| 42 | It has three built-in Input Method Engine, Pinyin, QuWei and Table-based |
---|
| 43 | input methods. |
---|
| 44 | |
---|
| 45 | %package data |
---|
| 46 | Summary: Data files for Fcitx |
---|
| 47 | Group: System Environment/Libraries |
---|
| 48 | Requires: hicolor-icon-theme |
---|
| 49 | Requires: dbus |
---|
| 50 | |
---|
| 51 | %description data |
---|
| 52 | This package provides shared datas for Fxitx. |
---|
| 53 | |
---|
| 54 | %package libs |
---|
| 55 | Summary: Shared libraries for Fcitx |
---|
| 56 | Group: System Environment/Libraries |
---|
| 57 | |
---|
| 58 | %description libs |
---|
| 59 | This package provides shared libraries for Fcitx. |
---|
| 60 | |
---|
| 61 | %package devel |
---|
| 62 | Summary: Development files for Fcitx |
---|
| 63 | Group: Development/Libraries |
---|
| 64 | Requires: %{name} = %{version}-%{release} |
---|
| 65 | |
---|
| 66 | %description devel |
---|
| 67 | This package contains libraries and header files necessary for |
---|
| 68 | developing programs using Fcitx libraries. |
---|
| 69 | |
---|
| 70 | %package gtk2 |
---|
| 71 | Summary: Fcitx IM module for GTK2 |
---|
| 72 | Group: System Environment/Libraries |
---|
| 73 | Requires: %{name} = %{version}-%{release} |
---|
| 74 | |
---|
| 75 | %description gtk2 |
---|
| 76 | This package contains Fcitx IM module for GTK2. |
---|
| 77 | |
---|
| 78 | %package gtk3 |
---|
| 79 | Summary: Fcitx IM module for GTK3 |
---|
| 80 | Group: System Environment/Libraries |
---|
| 81 | Requires: %{name} = %{version}-%{release} |
---|
| 82 | |
---|
| 83 | %description gtk3 |
---|
| 84 | This package contains Fcitx IM module for GTK3. |
---|
| 85 | |
---|
| 86 | %package qt4 |
---|
| 87 | Summary: Fcitx IM module for Qt4 |
---|
| 88 | Group: System Environment/Libraries |
---|
| 89 | Requires: %{name} = %{version}-%{release} |
---|
| 90 | |
---|
| 91 | %description qt4 |
---|
| 92 | This package contains Fcitx IM module for Qt4. |
---|
| 93 | |
---|
| 94 | %prep |
---|
| 95 | %setup -q |
---|
| 96 | |
---|
| 97 | %build |
---|
| 98 | %__mkdir build |
---|
| 99 | pushd build |
---|
| 100 | cmake .. \ |
---|
| 101 | -DCMAKE_VERBOSE_MAKEFILE=ON \ |
---|
| 102 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 103 | -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \ |
---|
| 104 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \ |
---|
| 105 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
| 106 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 107 | -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \ |
---|
| 108 | -DENABLE_GTK3_IM_MODULE=On \ |
---|
| 109 | -DENABLE_QT_IM_MODULE=On \ |
---|
| 110 | -DENABLE_OPENCC=Off \ |
---|
| 111 | -DENABLE_LUA=On \ |
---|
| 112 | -DENABLE_GIR=On \ |
---|
[8502] | 113 | -DENABLE_XDGAUTOSTART=Off \ |
---|
| 114 | -DENABLE_PRESAGE=Off |
---|
[7965] | 115 | |
---|
| 116 | make %{?_smp_mflags} |
---|
| 117 | popd |
---|
| 118 | |
---|
| 119 | %install |
---|
| 120 | %__rm -rf $RPM_BUILD_ROOT |
---|
| 121 | pushd build |
---|
| 122 | make install INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT |
---|
| 123 | rm -f %{buildroot}%{_libdir}/*.la |
---|
| 124 | popd |
---|
| 125 | %{find_lang} %{name} |
---|
| 126 | |
---|
| 127 | %clean |
---|
| 128 | %__rm -rf $RPM_BUILD_ROOT |
---|
| 129 | |
---|
| 130 | %post |
---|
| 131 | update-desktop-database %{_datadir}/applications &>/dev/null || : |
---|
| 132 | |
---|
| 133 | %postun |
---|
| 134 | update-desktop-database %{_datadir}/applications &>/dev/null || : |
---|
| 135 | |
---|
| 136 | %post libs -p /sbin/ldconfig |
---|
| 137 | |
---|
| 138 | %postun libs -p /sbin/ldconfig |
---|
| 139 | |
---|
| 140 | %post data |
---|
| 141 | /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 142 | |
---|
| 143 | %postun data |
---|
| 144 | if [ $1 -eq 0 ] ; then |
---|
| 145 | /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null |
---|
| 146 | /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 147 | fi |
---|
| 148 | |
---|
| 149 | %posttrans data |
---|
| 150 | /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 151 | |
---|
| 152 | %post gtk2 |
---|
| 153 | %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/%{_arch}/gtk.immodules || : |
---|
| 154 | |
---|
| 155 | %postun gtk2 |
---|
| 156 | %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/%{_arch}/gtk.immodules || : |
---|
| 157 | |
---|
| 158 | %post gtk3 |
---|
| 159 | %{_bindir}/gtk-query-immodules-3.0 --update-cache || : |
---|
| 160 | |
---|
| 161 | %postun gtk3 |
---|
| 162 | %{_bindir}/gtk-query-immodules-3.0 --update-cache || : |
---|
| 163 | |
---|
| 164 | %files -f %{name}.lang |
---|
| 165 | %defattr(-,root,root,-) |
---|
| 166 | %doc README |
---|
| 167 | %{_bindir}/fcitx* |
---|
| 168 | %exclude %{_bindir}/fcitx4-config |
---|
| 169 | %{_bindir}/createPYMB |
---|
| 170 | %{_bindir}/mb2org |
---|
| 171 | %{_bindir}/mb2txt |
---|
| 172 | %{_bindir}/readPYBase |
---|
| 173 | %{_bindir}/readPYMB |
---|
| 174 | %{_bindir}/scel2org |
---|
| 175 | %{_bindir}/txt2mb |
---|
| 176 | %{_datadir}/applications/fcitx-configtool.desktop |
---|
| 177 | %{_datadir}/applications/fcitx-skin-installer.desktop |
---|
| 178 | %{_datadir}/applications/fcitx.desktop |
---|
| 179 | %{_datadir}/doc/fcitx |
---|
| 180 | %{_mandir}/man1/*.1* |
---|
| 181 | %{_datadir}/mime/packages/x-fskin.xml |
---|
| 182 | |
---|
| 183 | %files devel |
---|
| 184 | %defattr(-,root,root,-) |
---|
| 185 | %{_bindir}/fcitx4-config |
---|
| 186 | %{_libdir}/libfcitx*.so |
---|
[8085] | 187 | %{_libdir}/pkgconfig/fcitx-config.pc |
---|
| 188 | %{_libdir}/pkgconfig/fcitx-gclient.pc |
---|
| 189 | %{_libdir}/pkgconfig/fcitx-qt.pc |
---|
| 190 | %{_libdir}/pkgconfig/fcitx-utils.pc |
---|
| 191 | %{_libdir}/pkgconfig/fcitx.pc |
---|
[7965] | 192 | %{_includedir}/fcitx* |
---|
| 193 | %{_datadir}/cmake/fcitx |
---|
| 194 | %{_datadir}/gir-1.0/Fcitx-1.0.gir |
---|
| 195 | |
---|
| 196 | %files libs |
---|
| 197 | %defattr(-,root,root,-) |
---|
| 198 | %{_libdir}/fcitx |
---|
| 199 | %{_libdir}/libfcitx*.so.* |
---|
| 200 | %{_libdir}/girepository-1.0/Fcitx-1.0.typelib |
---|
| 201 | |
---|
| 202 | %files data |
---|
| 203 | %defattr(-,root,root,-) |
---|
| 204 | %{_datadir}/icons/hicolor/*/*/*.png |
---|
| 205 | %{_datadir}/icons/hicolor/scalable/apps/fcitx.svg |
---|
| 206 | %{_datadir}/icons/hicolor/scalable/status/*.svg |
---|
| 207 | %{_datadir}/fcitx |
---|
| 208 | %{_datadir}/dbus-1/services/org.fcitx.Fcitx.service |
---|
| 209 | |
---|
| 210 | %files gtk2 |
---|
| 211 | %defattr(-,root,root,-) |
---|
| 212 | %{_libdir}/gtk-2.0/*/immodules/im-fcitx.so |
---|
| 213 | |
---|
| 214 | %files gtk3 |
---|
| 215 | %defattr(-,root,root,-) |
---|
| 216 | %{_libdir}/gtk-3.0/*/immodules/im-fcitx.so |
---|
| 217 | |
---|
| 218 | %files qt4 |
---|
| 219 | %defattr(-,root,root,-) |
---|
| 220 | %{_libdir}/qt4/plugins/inputmethods/qtim-fcitx.so |
---|
| 221 | |
---|
| 222 | %changelog |
---|
[8085] | 223 | * Tue Dec 31 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.2.8.3-2 |
---|
| 224 | - rebuild with icu-52.1 |
---|
| 225 | - move pkgconfig files to %%{name}-devel |
---|
| 226 | |
---|
[7965] | 227 | * Tue Nov 5 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 4.2.8.3-1 |
---|
| 228 | - initial release |
---|