3 %bcond_without apidocs # do not build and package API docs
4 %bcond_without static_libs # don't build static libraries
5 %bcond_without fep # fep client
7 Summary: Library to deal with Japanese kana-to-kanji conversion method
8 Summary(pl.UTF-8): Biblioteka obsługi metody konwersji tekstu japońskiego kana do kanji
14 #Source0Download: https://github.com/ueno/libskk/downloads
15 Source0: https://github.com/downloads/ueno/libskk/%{name}-%{version}.tar.gz
16 # Source0-md5: 4318fabf49041950cabb0ed1d5bf286a
17 URL: https://github.com/ueno/libskk/
18 BuildRequires: gettext-devel
19 BuildRequires: glib2-devel >= 2.0
20 BuildRequires: gobject-introspection-devel >= 0.9.0
21 BuildRequires: json-glib-devel
22 BuildRequires: libgee0.6-devel
23 BuildRequires: pkgconfig
24 # not needed for releases
25 #BuildRequires: vala >= 2:0.14.0
26 %{?with_apidocs:BuildRequires: valadoc >= 0.3.1}
28 BuildRequires: libfep-devel >= 0.0.7
29 BuildRequires: vala-libfep >= 0.0.7
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 libskk is a library to deal with Japanese kana-to-kanji conversion
37 %description -l pl.UTF-8
38 libskk to biblioteka do obsługi metody konwersji tekstu japońśkiego
42 Summary: skkfep - Japanese SKK input method on text terminal
43 Summary(pl.UTF-8): skkfep - metoda wprowadzania znaków japońskich SKK z terminala tekstowego
44 Group: Applications/Text
45 Requires: %{name} = %{version}-%{release}
46 Requires: libfep >= 0.0.7
49 skkfep is a tool that allows to use Japanese input method called SKK
50 (Simple Kana to Kanji conversion program) on ANSI compliant text
53 %description fep -l pl.UTF-8
54 skkfep to narzędzie pozwalające na używanie metody wprowadzania znaków
55 japońskich SKK (Simple Kana to Kanji - konwersja uproszczonego kana do
56 kanji) na terminalach tekstowych zgodnych z ANSI.
59 Summary: Header files for libskk library
60 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libskk
61 Group: Development/Libraries
62 Requires: %{name} = %{version}-%{release}
63 Requires: glib2-devel >= 2.0
64 Requires: json-glib-devel
65 Requires: libgee0.6-devel
68 Header files for libskk library.
70 %description devel -l pl.UTF-8
71 Pliki nagłówkowe biblioteki libskk.
74 Summary: Static libskk library
75 Summary(pl.UTF-8): Statyczna biblioteka libskk
76 Group: Development/Libraries
77 Requires: %{name}-devel = %{version}-%{release}
80 Static libskk library.
82 %description static -l pl.UTF-8
83 Statyczna biblioteka libskk.
85 %package -n vala-libskk
86 Summary: Vala API for libskk library
87 Summary(pl.UTF-8): API języka Vala do biblioteki libskk
88 Group: Development/Libraries
89 Requires: %{name}-devel = %{version}-%{release}
90 Requires: vala >= 2:0.14.0
91 Requires: vala-libgee0.6
93 %description -n vala-libskk
94 Vala API for libskk library.
96 %description -n vala-libskk -l pl.UTF-8
97 API języka Vala do biblioteki libskk.
100 Summary: libskk API documentation
101 Summary(pl.UTF-8): Dokumentacja API biblioteki libskk
105 API and internal documentation for libskk library.
107 %description apidocs -l pl.UTF-8
108 Dokumentacja API biblioteki libskk.
114 # pass fake VALADOC_* args to avoid requiring valadoc-devel
115 # (only utility is needed here, but configure checks for development package)
117 VALADOC_CFLAGS=fake \
119 %{?with_apidocs:--enable-docs} \
120 %{?with_fep:--enable-fep} \
121 %{?with_static_libs:--enable-static}
125 rm -rf $RPM_BUILD_ROOT
128 DESTDIR=$RPM_BUILD_ROOT \
129 libskkgtkdocdir=%{_gtkdocdir}/libskk
131 # obsoleted by pkg-config
132 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libskk.la
137 rm -rf $RPM_BUILD_ROOT
139 %post -p /sbin/ldconfig
140 %postun -p /sbin/ldconfig
142 %files -f %{name}.lang
143 %defattr(644,root,root,755)
144 %doc ChangeLog NEWS README
145 %attr(755,root,root) %{_bindir}/skk
146 %attr(755,root,root) %{_libdir}/libskk.so.*.*.*
147 %attr(755,root,root) %ghost %{_libdir}/libskk.so.0
148 %{_libdir}/girepository-1.0/Skk-1.0.typelib
150 %{_mandir}/man1/skk.1*
154 %defattr(644,root,root,755)
155 %attr(755,root,root) %{_bindir}/skkfep
156 %attr(755,root,root) %{_libdir}/skkfep-client
157 %{_mandir}/man1/skkfep.1*
161 %defattr(644,root,root,755)
162 %attr(755,root,root) %{_libdir}/libskk.so
163 %{_datadir}/gir-1.0/Skk-1.0.gir
164 %{_includedir}/libskk
165 %{_pkgconfigdir}/libskk.pc
167 %if %{with static_libs}
169 %defattr(644,root,root,755)
173 %files -n vala-libskk
174 %defattr(644,root,root,755)
175 %{_datadir}/vala/vapi/skk-1.0.deps
176 %{_datadir}/vala/vapi/skk-1.0.vapi
180 %defattr(644,root,root,755)
183 %{_datadir}/devhelp/references/libskk