File scim-hangul.spec of Package scim-hangul

#
# spec file for package scim-hangul (Version 0.3.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           scim-hangul
BuildRequires:  gtk2-devel kdelibs3-devel libhangul-devel scim-devel skim
%if %suse_version < 1010
BuildRequires:  unsermake
%endif
Version:        0.3.2
Release:        1
License:        GPL v2 or later
Group:          System/I18n/Korean
AutoReqProv:    on
Provides:       locale(scim:ko)
Url:            http://www.scim-im.org/
# CVS repository:
# cvs -d:pserver:anonymous@scim.cvs.sourceforge.net:/cvsroot/scim login 
# cvs -z3 -d:pserver:anonymous@scim.cvs.sourceforge.net:/cvsroot/scim co scim-hangul
Source0:        http://mesh.dl.sourceforge.net/sourceforge/scim/scim-hangul-%{version}.tar.bz2
Patch0:         build-fix.patch
Patch1:         mkinstalldirs.patch
Patch2:         missing-includes.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Hangul Input Method Engine for SCIM

%description
Hangul Input Method Engine for SCIM



Authors:
--------
    James Su <suzhe@tsinghua.org.cn>
    Choe Hwanjin <choe.hwanjin@gmail.com>
    liucougar (liuspider) <liuspider@users.sourceforge.net>

%package -n scim-hangul-skim
Summary:        skim setup module for scim-hangul
Group:          System/I18n/Korean
Requires:       %{name} = %{version}
Provides:       locale(skim:ko)

%description -n scim-hangul-skim
skim setup module for scim-hangul



Authors:
--------
    James Su <suzhe@tsinghua.org.cn>

%prep
%define scim_binary_version 1.4.0
%define build_setup     1
%setup -q -n %{name}-%{version}
%patch0 -p0
%patch1 -p1
%patch2 -p1
cp skim/admin/mkinstalldirs .

%build
./bootstrap
#libtoolize --force
#autoreconf -I /opt/gnome/share/aclocal --force --install --verbose
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
export QTDIR=/usr/lib/qt3
export KDEDIR=/opt/kde3
%configure  --disable-static \
            --enable-debug
pushd skim
    ./configure --prefix=$KDEDIR -disable-static \
	       --enable-debug
    popd
make 
unsermake -C skim

%install
export QTDIR=/usr/lib/qt3
export KDEDIR=/opt/kde3
make DESTDIR=${RPM_BUILD_ROOT} install
unsermake -C skim DESTDIR=${RPM_BUILD_ROOT} install
rm -f $RPM_BUILD_ROOT/%{_libdir}/scim-1.0/%{scim_binary_version}/IMEngine/hangul.{a,la}
rm -f $RPM_BUILD_ROOT/%{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/hangul-imengine-setup.{a,la}
%find_lang scim-hangul
%find_lang skim-scim-hangul

%clean

%files -f scim-hangul.lang
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README ChangeLog
%dir %{_libdir}/scim-1.0/
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/IMEngine/
%{_libdir}/scim-1.0/%{scim_binary_version}/IMEngine/hangul.so
%if %{build_setup}
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/
%{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/hangul-imengine-setup.so
%endif
%dir %{_datadir}/scim/icons/
%{_datadir}/scim/icons/scim-hangul.png
%dir %{_datadir}/scim/hangul/
%{_datadir}/scim/hangul/symbol.txt

%files -n scim-hangul-skim -f skim-scim-hangul.lang
%defattr(-, root, root)
%dir /opt/kde3/share/apps/skim/
/opt/kde3/share/apps/skim/*
/opt/kde3/share/config.kcfg/*
/opt/kde3/share/services/*
/opt/kde3/%{_lib}/kde3/*

%changelog
* Thu Jan 03 2008 - mfabian@suse.de
- update to 0.3.2.
  • add symbol input feature
  • add dutch translation from Ronald Stroethoff
  <stroet43 (at) zonnet.nl>
* Thu Nov 08 2007 - mfabian@suse.de
- add missing includes to fix build with gcc 4.3.0.
* Tue Apr 24 2007 - mfabian@suse.de
- add "BuildRequires: unsermake" for SUSE Linux 10.0.
* Tue Apr 17 2007 - mfabian@suse.de
- Fix typo in .spec file.
* Mon Apr 16 2007 - mfabian@suse.de
- update to 0.3.1.
  • use libhangul 0.0.4
  • Fixed some small bugs
* Sat Oct 28 2006 - meissner@suse.de
- use optflags
* Thu Oct 12 2006 - mfabian@suse.de
- fix to build with scim 1.4.5.
* Mon Aug 14 2006 - mfabian@suse.de
- use "install -d" for mkinstalldirs to fix the build with
  gettext 0.15.
* Wed Jul 05 2006 - mfabian@suse.de
- update to 0.2.2.
  + Fixed 3 beolsik keypad problem
  + Fixed capslock problem
  + Fixed installation problem on KDE
  + Changed dvorak behavior
  (see http://sourceforge.net/tracker/index.php?func=detail&aid=1425895&group_id=108454&atid=650539)
- fix build for autoconf 2.60.
* Wed Mar 15 2006 - mfabian@suse.de
- Bugzilla #158170: add "Provides: locale(skim:ko)" to
  scim-hangul-skim sub-package.
* Thu Feb 23 2006 - mfabian@suse.de
- add "Provides:     locale(scim:ko)".
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 13 2006 - zsu@suse.de
- update to 0.2.1
- create subpackage scim-hangul-skim
* Thu Aug 04 2005 - mfabian@suse.de
- Bugzilla #97962: add configure option "--enable-debug" to
  the .spec file.
* Tue Aug 02 2005 - aj@suse.de
-  Adjust neededforbuild.
* Mon Feb 28 2005 - mfabian@suse.de
- update to 0.2.0.
* Mon Sep 20 2004 - mfabian@suse.de
- add patch received from author (Zhe Su) which adds a reset()
  to HangulInstance::focus_out ().
* Fri Sep 03 2004 - mfabian@suse.de
- update to 0.1.2.
* Mon Aug 16 2004 - mfabian@suse.de
- update to 0.1.0.
* Fri Aug 13 2004 - mfabian@suse.de
- new package: scim-hangul, version 0.0.3.
openSUSE Build Service is sponsored by