1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
%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 <choe.hwanjin@gmail.com>
- added gettext mo file
* Mon Oct 20 2003 Choe Hwanjin <krisna@people.kldp.org>
- add gtk_binver
* Wed Jan 15 2003 Choe Hwanjin <krisna@kldp.org>
- remove gtk binary version
* Mon Oct 28 2002 Choe Hwanjin <krisna@kldp.org>
- add gtk_prefix, gtk_binver
* Mon Jul 22 2002 Lee, Kwan-hong <sorcerer@jerimo.org>
- Make RPM package
|