%define name iiimf-client-lib %define version 11.4 %define release 4 Name: %{name} License: LGPL Group: System/OPENI18N/IIIMF Version: %{version} Release: %{release} Summary: Internet/Intranet Input Method Client Library Packager: Ilgyoung Park Source: %{name}-%{version}.tar.bz2 URL: http://www.openi18n.org BuildRoot: %{_tmppath}/%{name}-%{version}-build Autoreqprov: on Requires: iiimf-protocol-lib >= 11.4-4 %description IIIMF client library of im-sdk %package devel Summary: Internet/Intranet Input Method Client Library header files Group: System/OPENI18N/IIIMF Autoreqprov: on %description devel Internet/Intranet Input Method client library header files. %prep %setup -q -n im-sdk/lib %build cd ../.. cd im-sdk/lib/iiimp CFLAGS="$RPM_OPT_FLAGS" \ ./configure --prefix=%{_prefix} make cd .. cd EIMIL ./configure --prefix=%{_prefix} make cd .. cd iiimcf CFLAGS="$RPM_OPT_FLAGS" \ ./autogen.sh --prefix=%{_prefix} make cd ../.. %install # installing iiimp to $RPM_BUILD_ROOT is necessary # because libtool will not allow iiimcf to be installed # to $RPM_BUILD_ROOT withouth iiimp installed both under this directory # and %{_prefix} cd iiimp make DESTDIR=$RPM_BUILD_ROOT install cd .. cd iiimcf make DESTDIR=$RPM_BUILD_ROOT install #rm -rf $RPM_BUILD_ROOT/usr/include/iiimcf.h rm -rf $RPM_BUILD_ROOT/usr/include/iiimp*.h rm -rf $RPM_BUILD_ROOT/usr/lib/libiiimp* cd ../.. # Ensures a clean build root before building a package a second time. %clean rm -rf $RPM_BUILD_ROOT %files %defattr (-, root, root) %{_libdir}/libiiimcf*.so.* %files devel %defattr (-, root, root) %{_libdir}/libiiimcf* %{_includedir}/iiimcf.h %changelog * Wed Feb 18 2004 - ILGYOUNG Park - Initial version for openi18n.org rpm build * Mon Nov 03 2003 - hidetoshi.tajima@sun.com - Initial release