[8567] | 1 | %define ver 0.1.1 |
---|
[9540] | 2 | %define rel 2 |
---|
[8058] | 3 | |
---|
| 4 | Summary: Japanese Kana Kanji Engine for Fcitx |
---|
| 5 | Name: fcitx-kkc |
---|
| 6 | Version: %{ver} |
---|
| 7 | Release: %{rel}%{_dist_release} |
---|
| 8 | License: GPLv3 |
---|
| 9 | Group: System Environment/Libraries |
---|
| 10 | URL: https://fcitx-im.org |
---|
| 11 | Source0: http://download.fcitx-im.org/fcitx-kkc/%{name}-%{version}.tar.xz |
---|
[9540] | 12 | Source1: https://raw.githubusercontent.com/fcitx/fcitx-kkc/5a98b507abdd6888e3124bca1448ad4e4d25b0ef/po/ja.po |
---|
| 13 | Patch0: https://github.com/m-shibata/fcitx-kkc/commit/49c0045cd5d0262d73d6006db9f6074707247717.patch |
---|
[8058] | 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
| 15 | BuildRequires: cmake |
---|
| 16 | BuildRequires: fcitx-devel >= 4.2.8 |
---|
| 17 | BuildRequires: libkkc-devel >= 0.2.3 |
---|
| 18 | Requires: fcitx |
---|
| 19 | |
---|
| 20 | Distribution: Vine Linux |
---|
| 21 | Vendor: Project Vine |
---|
| 22 | Packager: iwaim |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | Japanese Kana Kanji Engine for Fcitx. |
---|
| 26 | |
---|
| 27 | %prep |
---|
| 28 | %setup -q |
---|
[9540] | 29 | %patch0 -p1 |
---|
| 30 | %__cp %{SOURCE1} po/ja.po |
---|
[8058] | 31 | |
---|
| 32 | %build |
---|
| 33 | %__mkdir build |
---|
| 34 | pushd build |
---|
| 35 | %cmake ENABLE_QT=On .. |
---|
| 36 | make %{?_smp_mflags} |
---|
| 37 | popd |
---|
| 38 | |
---|
| 39 | %install |
---|
| 40 | rm -rf $RPM_BUILD_ROOT |
---|
| 41 | pushd build |
---|
| 42 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" |
---|
| 43 | popd |
---|
| 44 | |
---|
| 45 | %find_lang %{name} |
---|
| 46 | |
---|
| 47 | %clean |
---|
| 48 | rm -rf $RPM_BUILD_ROOT |
---|
| 49 | |
---|
| 50 | %post |
---|
| 51 | /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 52 | |
---|
| 53 | %postun |
---|
| 54 | if [ $1 -eq 0 ] ; then |
---|
| 55 | /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null |
---|
| 56 | /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 57 | fi |
---|
| 58 | |
---|
| 59 | %posttrans |
---|
| 60 | /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 61 | |
---|
| 62 | %files -f %{name}.lang |
---|
| 63 | %defattr(-,root,root,-) |
---|
| 64 | %doc COPYING |
---|
| 65 | %{_libdir}/fcitx/fcitx-kkc.so |
---|
| 66 | %{_libdir}/fcitx/qt/libfcitx-kkc-config.so |
---|
| 67 | %{_datadir}/fcitx/addon/fcitx-kkc.conf |
---|
| 68 | %{_datadir}/fcitx/configdesc/fcitx-kkc.desc |
---|
| 69 | %{_datadir}/fcitx/imicon/kkc.png |
---|
| 70 | %{_datadir}/fcitx/inputmethod/kkc.conf |
---|
| 71 | %dir %{_datadir}/fcitx/kkc |
---|
| 72 | %{_datadir}/fcitx/kkc/dictionary_list |
---|
| 73 | %{_datadir}/fcitx/kkc/rule |
---|
| 74 | %{_datadir}/icons/hicolor/64x64/apps/fcitx-kkc.png |
---|
| 75 | %dir %{_includedir}/fcitx/module/kkc |
---|
| 76 | %{_includedir}/fcitx/module/kkc/fcitx-kkc.h |
---|
| 77 | |
---|
| 78 | %changelog |
---|
[9540] | 79 | * Sat May 2 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 0.1.1-2 |
---|
| 80 | - update ja.po from upstream |
---|
| 81 | - add 'fix the check for the keymap conflict was inverted' patch (Patch0) |
---|
| 82 | - clean up spec file |
---|
| 83 | |
---|
[8567] | 84 | * Sun Jun 15 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 0.1.1-1 |
---|
| 85 | - update to 0.1.1 |
---|
| 86 | |
---|
[8058] | 87 | * Sun Dec 22 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 0.1.0-1.git51112956 |
---|
| 88 | - initial relase |
---|
| 89 | |
---|