File libhangul.spec of Package libhangul

#
# spec file for package libhangul (Version 0.0.10)
#
# Copyright (c) 2010 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:           libhangul
BuildRequires:  pkg-config
#BuildRequires:  python python-devel
Version:        0.0.10
Release:        1
License:        LGPLv2.1+
Group:          System/I18n/Korean
AutoReqProv:    on
Provides:       locale(scim-hangul:ko)
Url:            http://kldp.net/projects/hangul/
Source0:        http://kldp.net/frs/download.php/3733/%{name}-%{version}.tar.gz
Source1:        baselibs.conf
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Hangul input library used by scim-hangul

%description
Hangul input library used by scim-hangul



Authors:
--------
    Choe Hwanjin <choe.hwanjin@gmail.com>
    Joon-cheol Park <jooncheol@gmail.com>

%package -n libhangul-devel
License:        GPLv2+
Summary:        Include Files and Libraries mandatory for Development
Group:          System/I18n/Korean
Requires:       %{name} = %{version} glibc-devel

%description -n libhangul-devel
This package contains all necessary include files and libraries needed
to develop applications that require these.



Authors:
--------
    Choe Hwanjin <choe.hwanjin@gmail.com>
    Joon-cheol Park <jooncheol@gmail.com>

%prep
%setup -q

%build
autoreconf --force --install --verbose
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs} 
#pushd bindings/python
#    make
#popd

%install
make DESTDIR=${RPM_BUILD_ROOT} install
#pushd bindings/python
#    make DESTDIR=${RPM_BUILD_ROOT} install
#popd
%{__rm} -f %{buildroot}%{_libdir}/*.la

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files 
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README ChangeLog INSTALL
%{_libdir}/lib*.so.*
%dir %{_datadir}/libhangul/
%dir %{_datadir}/libhangul/hanja/
%{_datadir}/libhangul/hanja/hanja.txt

%files devel
%defattr(-, root, root)
%dir /usr/include/hangul-1.0/
/usr/include/hangul-1.0/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/libhangul.pc

%changelog
openSUSE Build Service is sponsored by