%define release liu_mdk
%define prefix  /usr
%define name	gcin
%define version __gcin_version__


Summary:	gcin :  Chinese input method server
Name:		%{name}
Version:	%{version}
Release:	%{release}
License: 	LGPL
Vendor:		Edward Liu
URL: 	        http://hyperrate.com/dir.php?eid=67
Group: 		Applications/System
Source0:	%{name}-%{version}.tar.xz
Packager:       Edward Liu <cp76@csie.nctu.edu.tw>
BuildRoot:	%{_builddir}/%{name}-%{version}-root

BuildRequires: libgtk+2.0_0-devel >= 2.2.4
Requires: gtk+2.0 >= 2.2.4 vorbis-tools

Docdir:         %{prefix}/share/doc

%description
gcin is a Chinese input method server for big5 traditional Chinese. It features
a better GTK user interface.

%prep
%setup

%build

%configure
make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,0755)
%doc README.html Changelog.html AUTHORS
%{_bindir}/*
%{_datadir}/gcin/*
%{_datadir}/icons/*
%{_datadir}/doc/gcin-__gcin_version__/*
%{_datadir}/applications/*
%{_libdir}/gtk-2.0/*
%{_libdir}/qt4/plugins/inputmethods/*
%{_libdir}/gcin/*

%post
/usr/share/gcin/script/modify-XIM
ldconfig
%update_menus

%postun

%clean_menus

%changelog
