Daiki Ueno 4f13823
%global dataversion 1:0.2.7
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
Name:		libkkc
e64b118
Version:	0.3.5
908d10f
Release:	20%{?dist}
Daiki Ueno a7b2b08
Summary:	Japanese Kana Kanji conversion library
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
License:	GPLv3+
e64b118
URL:		https://github.com/ueno/libkkc
e64b118
Source0:	https://github.com/ueno/libkkc/releases/download/v%{version}/%{name}-%{version}.tar.gz
7b21e5c
# remove for next release:
7b21e5c
Source1:        README.md
7b21e5c
Patch0:		libkkc-HEAD.patch
7b21e5c
Patch1:         libkkc-POT.skip.patch
4bc1c6d
Patch2:         libkkc-vala-abstract-create.patch
Daiki Ueno a7b2b08
a8d7d5a
BuildRequires:  gcc-c++
Daiki Ueno a7b2b08
BuildRequires:	marisa-devel
Daiki Ueno a7b2b08
BuildRequires:	vala
4860975
BuildRequires:	pkgconfig(gee-0.8)
Daiki Ueno a7b2b08
BuildRequires:	json-glib-devel
Daiki Ueno a7b2b08
BuildRequires:	gobject-introspection-devel
Daiki Ueno a7b2b08
BuildRequires:	intltool
5151fb2
BuildRequires:	python3-devel
5151fb2
BuildRequires:	python3-marisa
e2e70f1
BuildRequires: make
Daiki Ueno a7b2b08
Daiki Ueno ca7d721
Requires:	skkdic
Daiki Ueno 4f13823
Requires:	%{name}-data >= %{dataversion}
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
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
%prep
4bc1c6d
%autosetup -p1
7b21e5c
7b21e5c
[ -f README.md ] || cp -p %SOURCE1 .
7b21e5c
autoreconf -f
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%build
5151fb2
%configure --disable-static --disable-silent-rules PYTHON=python3
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
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
%find_lang %{name}
Daiki Ueno a7b2b08
Daiki Ueno a7b2b08
6fdb662
%ldconfig_scriptlets
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 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
908d10f
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-20
908d10f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
908d10f
939c0fd
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-19
939c0fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
939c0fd
7096ccb
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-18
7096ccb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7096ccb
04ebc31
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-17
04ebc31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
04ebc31
4bc1c6d
* Fri Aug  9 2019 Daiki Ueno <dueno@redhat.com> - 0.3.5-16
4bc1c6d
- fix FTBFS with vala 0.45.1
4bc1c6d
d8f2606
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-15
d8f2606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d8f2606
4bfbeb9
* Mon Feb 04 2019 Kalev Lember <klember@redhat.com> - 0.3.5-14
4bfbeb9
- Update BRs for vala packaging changes
4bfbeb9
d671489
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-13
d671489
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d671489
5151fb2
* Wed Aug 01 2018 Takao Fujiwara <fujiwara@redhat.com> - 0.3.5-12
5151fb2
- enable python3
5151fb2
48a0284
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-11
48a0284
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
48a0284
a8374b7
* Thu Mar 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.3.5-10
a8374b7
- Update Python 2 dependency declarations to new packaging standards
a8374b7
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
a8374b7
5150ae1
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-9
5150ae1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5150ae1
c4cfbe2
* Wed Dec 13 2017 Jens Petersen <petersen@redhat.com> - 0.3.5-8
c4cfbe2
- update to latest github (253fb06)
c4cfbe2
- fixes FTBFS
c4cfbe2
137ee11
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-7
137ee11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
137ee11
f91abe4
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-6
f91abe4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f91abe4
874db96
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-5
874db96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
874db96
2c96692
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-4
2c96692
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2c96692
d333407
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-3
d333407
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d333407
8639fac
* Tue Feb 17 2015 Daiki Ueno <dueno@redhat.com> - 0.3.5-2
8639fac
- apply libkkc-try-all.patch for better candidate list
8639fac
e64b118
* Fri Dec 19 2014 Daiki Ueno <dueno@redhat.com> - 0.3.5-1
e64b118
- new upstream release
e64b118
- switch upstream source location to Github
e64b118
2a33ae0
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-3
2a33ae0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2a33ae0
143424b
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.3.4-2
143424b
- Rebuilt for gobject-introspection 1.41.4
143424b
4860975
* Mon Jul  7 2014 Daiki Ueno <dueno@redhat.com> - 0.3.4-1
4860975
- new upstream release
4860975
- switch to libgee 0.8
4860975
e8d9513
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-2
e8d9513
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e8d9513
6a15f73
* Tue Apr  1 2014 Daiki Ueno <dueno@redhat.com> - 0.3.3-1
6a15f73
- new upstream release
6a15f73
65a6255
* Tue Dec 17 2013 Daiki Ueno <dueno@redhat.com> - 0.3.2-1
3d6ef0a
- new upstream release
3d6ef0a
Daiki Ueno 4f13823
* Fri Sep 20 2013 Daiki Ueno <dueno@redhat.com> - 0.3.1-2
Daiki Ueno 4f13823
- drop -data subpackage, which is now split into a separate source package
Daiki Ueno 4f13823
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