File libskk.spec of Package libskk
#
# spec file for package libskk
#
# Copyright (c) 2015 SUSE LINUX 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/
#
%define soname 0
Name: libskk
Version: 1.2.0+git20150413.be6e20b
Release: 0
Summary: A statistical language model based Japanese input method engine
License: GPL-3.0+
Group: System/I18n/Japanese
Url: http://github.com/ueno/libskk
Source: %{name}-%{version}.tar.xz
Source99: baselibs.conf
Patch0: libskk-typlib-dependencies.patch
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: xz
BuildRequires: pkgconfig(gee-0.8)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 %{name}%{soname}
Summary: Libskk libraries
Group: System/Libraries
Requires: skkdic
Requires: skkdic-extra
%description -n %{name}%{soname}
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 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
%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}%{soname} = %{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
%patch0 -p1
%build
NOCONFIGURE=1 ./autogen.sh
%configure --disable-static \
--enable-introspection=yes
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot}/%{_libdir} -name "*.la" -delete
%find_lang %{name}
%fdupes %{buildroot}
%post -n %{name}%{soname} -p /sbin/ldconfig
%postun -n %{name}%{soname} -p /sbin/ldconfig
%files -n %{name}%{soname} -f %{name}.lang
%defattr(-,root,root)
%doc 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