File imhangul.spec of Package imhangul
#
# spec file for package imhangul
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: imhangul
BuildRequires: gtk2-devel libhangul-devel update-desktop-files
%define prefix /usr
%define sysconfdir /etc
License: GPL-2.0+
Group: System/I18n/Korean
AutoReqProv: on
Provides: locale(gtk2:ko)
PreReq: /usr/bin/touch
Requires: gtk2
Version: 0.9.14
Release: 15
Url: http://imhangul.kldp.net/
Source0: http://kldp.net/download.php/1443/imhangul-%{version}.tar.bz2
Source1: baselibs.conf
# PATCH-FIX-UPSTREAM imhangul-0.9.14-gtk-deprecated.patch idoenmez@suse.de -- Replace deprecated functions
Patch1: imhangul-0.9.14-gtk-deprecated.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: GTK+-2.0 Hangul Input Modules
%gtk2_immodule_requires
%description
GTK+-2.0 Hangul input modules.
Authors:
--------
Choe Hwanjin <krisna@kldp.org>
%prep
%setup -q
%patch1
%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
./configure \
--prefix=%{prefix} \
--libdir=%{prefix}/%_lib \
--with-gtk-im-module-dir=%{_libdir}/gtk-2.0/immodules \
%{_target_platform}
make
%install
make -e DESTDIR=$RPM_BUILD_ROOT install
%find_lang im-hangul
%post
%gtk2_immodule_post
/sbin/ldconfig
%postun
%gtk2_immodule_postun
/sbin/ldconfig
%clean
#rm -rf $RPM_BUILD_ROOT
%files -f im-hangul.lang
%defattr(-,root,root)
%doc AUTHORS README COPYING ChangeLog INSTALL TODO
%{prefix}/%{_lib}/gtk-2.0/immodules/
%changelog