|
@@ -1,28 +1,52 @@
|
|
|
%define ver 1.5.2
|
|
|
-%define rel 1
|
|
|
+%define rel 2
|
|
|
+
|
|
|
+%define from_git 1
|
|
|
+%if %{from_git}
|
|
|
+%define githash eb042df4
|
|
|
+%endif
|
|
|
|
|
|
Summary: IBus IME using libkkc as backend
|
|
|
Name: ibus-kkc
|
|
|
Version: %{ver}
|
|
|
+%if %{from_git}
|
|
|
+Release: %{rel}.git%{githash}%{_dist_release}
|
|
|
+%else
|
|
|
Release: %{rel}%{_dist_release}
|
|
|
+%endif
|
|
|
License: GPLv3
|
|
|
Group: System Environment/Libraries
|
|
|
URL: https://bitbucket.org/libkkc/
|
|
|
+%if %{from_git}
|
|
|
+Source0: %{name}-git.tar.gz
|
|
|
+%else
|
|
|
Source0: https://bitbucket.org/libkkc/ibus-kkc/downloads/%{name}-%{version}.tar.gz
|
|
|
+%endif
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
|
BuildRequires: gtk3-devel
|
|
|
BuildRequires: ibus-devel
|
|
|
BuildRequires: libkkc-devel
|
|
|
BuildRequires: desktop-file-utils
|
|
|
+%if %{from_git}
|
|
|
+BuildRequires: gnome-common
|
|
|
+%endif
|
|
|
Requires: libkkc-data
|
|
|
+Requires: skkdic
|
|
|
|
|
|
%description
|
|
|
IBus IME using libkkc as backend
|
|
|
|
|
|
%prep
|
|
|
+%if %{from_git}
|
|
|
+%setup -q -n %{name}-git
|
|
|
+%else
|
|
|
%setup -q
|
|
|
+%endif
|
|
|
|
|
|
%build
|
|
|
+%if %{from_git}
|
|
|
+./autogen.sh
|
|
|
+%endif
|
|
|
%configure --enable-shared
|
|
|
%__make
|
|
|
|
|
@@ -62,6 +86,11 @@ fi
|
|
|
%{_datadir}/ibus/component/kkc.xml
|
|
|
|
|
|
%changelog
|
|
|
+* Tue Jan 29 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.2-2.giteb042df4
|
|
|
+- update to git eb042df479cdad0d037e16016fda3d2cae99aaa1
|
|
|
+- add BuildRequires: gnome-common with git
|
|
|
+- add Requires: skkdic
|
|
|
+
|
|
|
* Mon Jan 28 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.2-1
|
|
|
- initial build for Vine Linux
|
|
|
|