d25d0b2
%global dataversion 0.2.7
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
Name:		libkkc
2341cb7
Version:	0.3.1
Daiki Ueno 7c89732
Release:	1%{?dist}
Daiki Ueno a7b2b08
Summary:	Japanese Kana Kanji conversion library
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
License:	GPLv3+
Daiki Ueno a7b2b08
Group:		System Environment/Libraries
Daiki Ueno a7b2b08
URL:		https://bitbucket.org/libkkc
Daiki Ueno a7b2b08
Source0:	https://bitbucket.org/libkkc/libkkc/downloads/%{name}-%{version}.tar.gz
Daiki Ueno a7b2b08
Source1:	https://bitbucket.org/libkkc/libkkc-data/downloads/%{name}-data-%{dataversion}.tar.xz
Daiki Ueno 7c89732
#Patch0:		libkkc-HEAD.patch
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
BuildRequires:	marisa-devel
Daiki Ueno a7b2b08
BuildRequires:	vala
Daiki Ueno b413e77
# Needed when any of *.vala files changed
Daiki Ueno b413e77
BuildRequires:	vala-tools, vala-devel
Daiki Ueno a7b2b08
# FIXME switch to libgee-0.8 once this package is ready for the new libgee API
Daiki Ueno a7b2b08
BuildRequires:	pkgconfig(gee-1.0)
Daiki Ueno a7b2b08
BuildRequires:	json-glib-devel
Daiki Ueno a7b2b08
BuildRequires:	gobject-introspection-devel
Daiki Ueno a7b2b08
BuildRequires:	intltool
Daiki Ueno a7b2b08
BuildRequires:	python2-devel
Daiki Ueno a7b2b08
Daiki Ueno ca7d721
Requires:	skkdic
Daiki Ueno a7b2b08
Requires:	%{name}-data = %{version}-%{release}
Daiki Ueno a7b2b08
Requires:	%{name}-common = %{version}-%{release}
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%description
Daiki Ueno a7b2b08
libkkc provides a converter from Kana-string to
Daiki Ueno a7b2b08
Kana-Kanji-mixed-string.  It was named after kkc.el in GNU Emacs, a
Daiki Ueno a7b2b08
simple Kana Kanji converter, while libkkc tries to convert sentences
Daiki Ueno a7b2b08
in a bit more complex way using N-gram language models.
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%package	devel
Daiki Ueno a7b2b08
Summary:	Development files for %{name}
Daiki Ueno a7b2b08
Requires:	%{name}%{?_isa} = %{version}-%{release}
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%description	devel
Daiki Ueno a7b2b08
The %{name}-devel package contains libraries and header files for
Daiki Ueno a7b2b08
developing applications that use %{name}.
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%package        tools
Daiki Ueno a7b2b08
Summary:	Tools for %{name}
Daiki Ueno a7b2b08
Group:		Development/Tools
Daiki Ueno a7b2b08
Requires:	%{name}%{?_isa} = %{version}-%{release}
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%description	tools
Daiki Ueno a7b2b08
The %{name}-tools package contains tools for developing applications
Daiki Ueno a7b2b08
that use %{name}.
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%package	common
Daiki Ueno a7b2b08
Summary:	Common data files for %{name}
Daiki Ueno a7b2b08
BuildArch:	noarch
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%description	common
Daiki Ueno a7b2b08
The %{name}-common package contains the arch-independent data that
Daiki Ueno a7b2b08
%{name} uses at run time.
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%package	data
Daiki Ueno a7b2b08
Summary:	Data files for %{name}
Daiki Ueno a7b2b08
BuildRequires:	marisa-python
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%description	data
Daiki Ueno a7b2b08
The %{name}-data package contains the language model data that %{name}
Daiki Ueno a7b2b08
uses at run time.
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%prep
Daiki Ueno a7b2b08
%setup -q
Daiki Ueno 7c89732
#patch0 -p1 -b .HEAD
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%build
Daiki Ueno a7b2b08
%configure --disable-static --disable-silent-rules
Daiki Ueno a7b2b08
make %{?_smp_mflags}
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
d25d0b2
%check
d25d0b2
make check
d25d0b2
d25d0b2
Daiki Ueno a7b2b08
%install
Daiki Ueno a7b2b08
%make_install INSTALL="install -p"
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
tar xf %{SOURCE1}
Daiki Ueno a7b2b08
pushd %{name}-data-%{dataversion}
Daiki Ueno a7b2b08
%configure
Daiki Ueno a7b2b08
%make_install INSTALL="install -p"
Daiki Ueno a7b2b08
popd
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%find_lang %{name}
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%post -p /sbin/ldconfig
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%postun -p /sbin/ldconfig
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%files -f %{name}.lang
Daiki Ueno a7b2b08
%doc README data/rules/README.rules COPYING
Daiki Ueno a7b2b08
%{_libdir}/*.so.*
Daiki Ueno a7b2b08
%{_libdir}/girepository-1.0/*.typelib
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%files common
Daiki Ueno a7b2b08
%{_datadir}/libkkc
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%files data
Daiki Ueno a7b2b08
%{_libdir}/libkkc
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%files devel
Daiki Ueno a7b2b08
%doc
Daiki Ueno a7b2b08
%{_includedir}/*
Daiki Ueno a7b2b08
%{_libdir}/*.so
Daiki Ueno a7b2b08
%{_libdir}/pkgconfig/*.pc
Daiki Ueno a7b2b08
%{_datadir}/gir-1.0/*.gir
Daiki Ueno a7b2b08
%{_datadir}/vala/vapi/*
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%files tools
Daiki Ueno a7b2b08
%{_bindir}/kkc*
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%changelog
2341cb7
* Sun Sep 15 2013 Daiki Ueno <dueno@redhat.com> - 0.3.1-1
2341cb7
- new upstreamm release
2341cb7
- fix numeric conversion
2341cb7
- add minimum cost of backward search
2341cb7
Daiki Ueno a9aee2f
* Wed Sep 11 2013 Daiki Ueno <dueno@redhat.com> - 0.3.0-1
Daiki Ueno a9aee2f
- new upstream release (Closes: #970863)
Daiki Ueno a9aee2f
d25d0b2
* Mon Jul 29 2013 Daiki Ueno <dueno@redhat.com> - 0.2.7-1
d25d0b2
- new upstream release
d25d0b2
- enable make check on %%check
d25d0b2
- drop buildroot cleanup
d25d0b2
Daiki Ueno 37bc07b
* Fri Jul  5 2013 Daiki Ueno <dueno@redhat.com> - 0.2.6-1
Daiki Ueno 37bc07b
- new upstream release
Daiki Ueno 37bc07b
Daiki Ueno 55881d9
* Thu Jul  4 2013 Daiki Ueno <dueno@redhat.com> - 0.2.5-1
Daiki Ueno 55881d9
- new upstream release
Daiki Ueno 55881d9
Daiki Ueno ace0683
* Fri Jun  7 2013 Daiki Ueno <dueno@redhat.com> - 0.2.4-1
Daiki Ueno ace0683
- new upstream release
Daiki Ueno ace0683
f2ef5b5
* Wed May 15 2013 Daiki Ueno <dueno@redhat.com> - 0.2.3-1
22f810c
- new upstream release
22f810c
Daiki Ueno edd678f
* Wed May  8 2013 Daiki Ueno <dueno@redhat.com> - 0.2.2-1
Daiki Ueno edd678f
- new upstream release
Daiki Ueno edd678f
Daiki Ueno 7c89732
* Wed May  1 2013 Daiki Ueno <dueno@redhat.com> - 0.2.1-1
Daiki Ueno 7c89732
- new upstream release
Daiki Ueno 7c89732
Daiki Ueno 7667e81
* Wed May  1 2013 Daiki Ueno <dueno@redhat.com> - 0.2.0-2
Daiki Ueno 7667e81
- synch with the latest upstream git master
Daiki Ueno 7667e81
Daiki Ueno 45b5e76
* Tue Apr 30 2013 Daiki Ueno <dueno@redhat.com> - 0.2.0-1
Daiki Ueno 45b5e76
- new upstream release
Daiki Ueno 45b5e76
3f8e472
* Tue Mar 19 2013 Daiki Ueno <dueno@redhat.com> - 0.1.10-1
3f8e472
- new upstream release
3f8e472
Daiki Ueno ea88a3c
* Tue Mar 12 2013 Daiki Ueno <dueno@redhat.com> - 0.1.9-1
Daiki Ueno ea88a3c
- new upstream release
Daiki Ueno ea88a3c
Daiki Ueno f560fa9
* Fri Feb 22 2013 Daiki Ueno <dueno@redhat.com> - 0.1.7-1
Daiki Ueno f560fa9
- new upstream release
Daiki Ueno f560fa9
Daiki Ueno a7b2b08
* Sun Feb 10 2013 Daiki Ueno <dueno@redhat.com> - 0.1.5-1
Daiki Ueno a7b2b08
- new upstream release
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
* Fri Feb  8 2013 Daiki Ueno <dueno@redhat.com> - 0.1.3-1
Daiki Ueno a7b2b08
- move arch-independent data files to -common subpackage
Daiki Ueno a7b2b08
- remove unnecessary R: from -common and -data subpackages
Daiki Ueno a7b2b08
- add BR: python2-devel
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
* Thu Feb  7 2013 Daiki Ueno <dueno@redhat.com> - 0.1.3-1
Daiki Ueno a7b2b08
- new upstream release
Daiki Ueno a7b2b08
- add BR: marisa-python to generate -data package
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
* Wed Feb  6 2013 Daiki Ueno <dueno@redhat.com> - 0.1.2-2
Daiki Ueno a7b2b08
- add ChangeLog to -data subpackages's %%doc
Daiki Ueno a7b2b08
- remove unnecessary BR: libfep-devel
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
* Tue Feb  5 2013 Daiki Ueno <dueno@redhat.com> - 0.1.2-1
Daiki Ueno a7b2b08
- new upstream release
Daiki Ueno a7b2b08
- fix description of -data subpackage
Daiki Ueno a7b2b08
- use popd instead of "cd -"
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
* Mon Feb  4 2013 Daiki Ueno <dueno@redhat.com> - 0.1.1-1
Daiki Ueno a7b2b08
- new upstream release
Daiki Ueno a7b2b08
- disable silent rules
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
* Thu Jan 31 2013 Daiki Ueno <dueno@redhat.com> - 0.1.0-1
Daiki Ueno a7b2b08
- new upstream release
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
* Thu Jan 24 2013 Daiki Ueno <dueno@redhat.com> - 0.0.1-1
Daiki Ueno a7b2b08
- initial packaging
Daiki Ueno a7b2b08