File libhangul.spec of Package libhangul

#
# spec file for package libhangul
#
# Copyright (c) 2012 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
%define libname libhangul1
BuildRequires:  libtool pkg-config
#BuildRequires:  python python-devel
Version:        0.1.0
Release:        1
License:        LGPL-2.1+
Group:          System/I18n/Korean
AutoReqProv:    on
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 and ibus-hangul

%description
Hangul input library used by scim-hangul and ibus-hangul



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

Hangul input library used by scim-hangul and ibus-hangul


%package -n %{libname}
License:        LGPL-2.1+
Summary:        Hangul input library used by scim-hangul and ibus-hangul
Group:          System/I18n/Korean
Provides:       locale(scim-hangul:ko)

%description -n %{libname}
Hangul input library used by scim-hangul and ibus-hangul



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

Hangul input library used by scim-hangul and ibus-hangul


%package devel
License:        GPL-2.0+
Summary:        Include Files and Libraries mandatory for Development
Group:          System/I18n/Korean
Requires:       %{libname} = %{version} glibc-devel

%description 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 -n %{libname}
/sbin/ldconfig

%postun -n %{libname}
/sbin/ldconfig

%files -n %{libname} 
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README ChangeLog 
%{_libdir}/lib*.so.*
%dir %{_datadir}/libhangul/
%dir %{_datadir}/libhangul/hanja/
%{_datadir}/libhangul/hanja/hanja.txt
%{_bindir}/hangul
%{_datadir}/locale/ko/LC_MESSAGES/libhangul.mo

%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