File libskk.spec of Package libskk

#
# spec file for package libskk
#
# Copyright (c) 2013 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/
#


Name:           libskk
Version:        1.0.1
Release:        0
License:        GPL-3.0+
Summary:        A statistical language model based Japanese input method engine
Url:            http://github.com/ueno/libskk
Group:          System/I18n/Japanese
Source0:        https://bitbucket.org/libskk/libskk/downloads/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gnome-common
BuildRequires:  gobject-introspection-devel
BuildRequires:  intltool
BuildRequires:  pkg-config
BuildRequires:  python-devel
BuildRequires:  sqlite3-devel
BuildRequires:  vala-devel >= 0.14
BuildRequires:  pkgconfig(gee-1.0)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(json-glib-1.0)

%description
SKK is a statistical language model based Japanese input method engine.
to model the Japanese language, it use a backoff bigram and trigram

%package -n libskk0
Summary:        Libskk libraries
Group:          System/I18n/Japanese
Requires:		skkdic
Requires:		skkdic-extra
Provides:	%{name} = %{version}
Obsoletes:	%{name} < %{version}

%description -n libskk0
SKK is a statistical language model based Japanese input method engine.
to model the Japanese language, it use a backoff bigram and trigram

This packge provides GObject-based library to deal with Japanese 
kana-to-kanji conversion method.

#%package -n typelib-1_0-Skk-1_0
#Summary:        Libskk libraries -- Introspection bindings
#Group:          System/I18n/Japanese
#Requires:       girepository-1_0
#Requires:       %{name} = %{version}

#%description -n typelib-1_0-Skk-1_0
#SKK is a statistical language model based Japanese input method engine.
#to model the Japanese language, it use a backoff bigram and trigram

#This package provides the introspection bindings for the libskk library.

%package -n libskk-devel
Summary:        Development Files for libskk
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}

%description -n libskk-devel
SKK is a statistical language model based Japanese input method engine.
to model the Japanese language, it use a backoff bigram and trigram

This package provides C/Vala headers for the libskk library.

%prep
%setup -q

%build
%configure --disable-static \
           --enable-introspection=no
make %{?_smp_mflags}

%install
%make_install
rm %{buildroot}/%{_libdir}/libskk.la

%find_lang %{name}

%fdupes %{buildroot}

%post -n libskk0 -p /sbin/ldconfig

%postun -n libskk0 -p /sbin/ldconfig

%files -n libskk0 -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README NEWS
%{_mandir}/man1/skk.1.gz
%{_bindir}/skk
%{_libdir}/%{name}.so.*
%{_datadir}/%{name}

#%files -n typelib-1_0-Skk-1_0
#%defattr(-,root,root,-)
#%{_libdir}/girepository-1.0/Skk-1.0.typelib

%files -n libskk-devel
%defattr(-,root,root)
%{_includedir}/%{name}
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/libskk.pc
#%{_datadir}/gir-1.0/Skk-1.0.gir
%{_datadir}/vala/vapi/skk-1.0.deps
%{_datadir}/vala/vapi/skk-1.0.vapi

%changelog
openSUSE Build Service is sponsored by