%define name imhangul %define ver @VERSION@ %define rel 1 %define gtk_prefix @GTK_PREFIX@ %define gtk_binver @GTK_BINARY_VERSION@ Summary: Hangul input module for GTK+ 2.0 Name: %{name} Version: %{ver} Release: %{rel} Group: User Interface/X URL: http://kldp.net/project/imhangul License: GPL Requires: gtk2 BuildRoot: /%{_tmppath}/%{name}-%{version}-root BuildRequires: gtk2-devel Source0: http://download.kldp.net/%{name}/%{name}-%{ver}.tar.gz %description Hangul input module for GTK+ 2.0 %prep %setup ./configure --prefix=%{gtk_prefix} --sysconfdir=%{_sysconfdir} %build make %install mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gtk-2.0 make DESTDIR=$RPM_BUILD_ROOT install %clean rm -rf $RPM_BUILD_ROOT %files %defattr( 0755, root, root ) %{gtk_prefix}/lib/gtk-2.0/immodules/*.so %{gtk_prefix}/lib/gtk-2.0/immodules/*.la %{gtk_prefix}/share/locale/*/LC_MESSAGES/*.mo %doc COPYING ChangeLog INSTALL TODO %post test -x /usr/bin/gtk-query-immodules-2.0 && \ /usr/bin/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules %postun test -x /usr/bin/gtk-query-immodules-2.0 && \ /usr/bin/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules %changelog * Tue Sep 6 2005 Choe Hwanjin - added gettext mo file * Mon Oct 20 2003 Choe Hwanjin - add gtk_binver * Wed Jan 15 2003 Choe Hwanjin - remove gtk binary version * Mon Oct 28 2002 Choe Hwanjin - add gtk_prefix, gtk_binver * Mon Jul 22 2002 Lee, Kwan-hong - Make RPM package