]>
Commit | Line | Data |
---|---|---|
36976dab JB |
1 | # |
2 | # Conditional build: | |
3ce4918f JB |
3 | %bcond_without apidocs # valadoc/devhelp based API documentation |
4 | %bcond_without static_libs # static library | |
b1be6822 | 5 | %bcond_without fep # fep client |
a7566644 | 6 | |
36976dab JB |
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 | |
9 | Name: libskk | |
3ce4918f | 10 | Version: 1.0.5 |
61048111 | 11 | Release: 2 |
36976dab JB |
12 | License: GPL v3+ |
13 | Group: Libraries | |
d1eab45f | 14 | #Source0Download: https://github.com/ueno/libskk/releases |
3ce4918f JB |
15 | Source0: https://github.com/ueno/libskk/releases/download/%{version}/%{name}-%{version}.tar.xz |
16 | # Source0-md5: 683c5a2dd23171297132453afd62e3c4 | |
36976dab | 17 | URL: https://github.com/ueno/libskk/ |
3ce4918f JB |
18 | BuildRequires: gettext-tools >= 0.19.8 |
19 | BuildRequires: glib2-devel >= 1:2.36 | |
36976dab JB |
20 | BuildRequires: gobject-introspection-devel >= 0.9.0 |
21 | BuildRequires: json-glib-devel | |
3ce4918f | 22 | BuildRequires: libgee-devel >= 0.8 |
36976dab JB |
23 | BuildRequires: pkgconfig |
24 | # not needed for releases | |
25 | #BuildRequires: vala >= 2:0.14.0 | |
3ce4918f JB |
26 | %{?with_apidocs:BuildRequires: valadoc >= 0.40} |
27 | BuildRequires: tar >= 1:1.22 | |
28 | BuildRequires: xorg-lib-libxkbcommon-devel | |
29 | BuildRequires: xz | |
b1be6822 JB |
30 | %if %{with fep} |
31 | BuildRequires: libfep-devel >= 0.0.7 | |
32 | BuildRequires: vala-libfep >= 0.0.7 | |
33 | %endif | |
3ce4918f JB |
34 | BuildRequires: vala-libgee >= 0.8 |
35 | Requires: glib2 >= 1:2.36 | |
36976dab JB |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | libskk is a library to deal with Japanese kana-to-kanji conversion | |
40 | method. | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | libskk to biblioteka do obsługi metody konwersji tekstu japońśkiego | |
44 | kana do kanji. | |
45 | ||
b1be6822 JB |
46 | %package fep |
47 | Summary: skkfep - Japanese SKK input method on text terminal | |
48 | Summary(pl.UTF-8): skkfep - metoda wprowadzania znaków japońskich SKK z terminala tekstowego | |
49 | Group: Applications/Text | |
50 | Requires: %{name} = %{version}-%{release} | |
51 | Requires: libfep >= 0.0.7 | |
52 | ||
53 | %description fep | |
54 | skkfep is a tool that allows to use Japanese input method called SKK | |
55 | (Simple Kana to Kanji conversion program) on ANSI compliant text | |
56 | terminals. | |
57 | ||
58 | %description fep -l pl.UTF-8 | |
59 | skkfep to narzędzie pozwalające na używanie metody wprowadzania znaków | |
60 | japońskich SKK (Simple Kana to Kanji - konwersja uproszczonego kana do | |
61 | kanji) na terminalach tekstowych zgodnych z ANSI. | |
62 | ||
36976dab JB |
63 | %package devel |
64 | Summary: Header files for libskk library | |
65 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libskk | |
66 | Group: Development/Libraries | |
67 | Requires: %{name} = %{version}-%{release} | |
3ce4918f | 68 | Requires: glib2-devel >= 1:2.36 |
36976dab | 69 | Requires: json-glib-devel |
3ce4918f | 70 | Requires: libgee-devel >= 0.8 |
36976dab JB |
71 | |
72 | %description devel | |
73 | Header files for libskk library. | |
74 | ||
75 | %description devel -l pl.UTF-8 | |
76 | Pliki nagłówkowe biblioteki libskk. | |
77 | ||
78 | %package static | |
79 | Summary: Static libskk library | |
80 | Summary(pl.UTF-8): Statyczna biblioteka libskk | |
81 | Group: Development/Libraries | |
82 | Requires: %{name}-devel = %{version}-%{release} | |
83 | ||
84 | %description static | |
85 | Static libskk library. | |
86 | ||
87 | %description static -l pl.UTF-8 | |
88 | Statyczna biblioteka libskk. | |
89 | ||
90 | %package -n vala-libskk | |
91 | Summary: Vala API for libskk library | |
92 | Summary(pl.UTF-8): API języka Vala do biblioteki libskk | |
93 | Group: Development/Libraries | |
94 | Requires: %{name}-devel = %{version}-%{release} | |
95 | Requires: vala >= 2:0.14.0 | |
3ce4918f | 96 | Requires: vala-libgee >= 0.8 |
1831b569 | 97 | BuildArch: noarch |
36976dab JB |
98 | |
99 | %description -n vala-libskk | |
100 | Vala API for libskk library. | |
101 | ||
102 | %description -n vala-libskk -l pl.UTF-8 | |
103 | API języka Vala do biblioteki libskk. | |
104 | ||
105 | %package apidocs | |
106 | Summary: libskk API documentation | |
107 | Summary(pl.UTF-8): Dokumentacja API biblioteki libskk | |
108 | Group: Documentation | |
a7566644 | 109 | BuildArch: noarch |
36976dab JB |
110 | |
111 | %description apidocs | |
112 | API and internal documentation for libskk library. | |
113 | ||
114 | %description apidocs -l pl.UTF-8 | |
115 | Dokumentacja API biblioteki libskk. | |
116 | ||
117 | %prep | |
118 | %setup -q | |
119 | ||
120 | %build | |
b1be6822 JB |
121 | # pass fake VALADOC_* args to avoid requiring valadoc-devel |
122 | # (only utility is needed here, but configure checks for development package) | |
36976dab | 123 | %configure \ |
b1be6822 JB |
124 | VALADOC_CFLAGS=fake \ |
125 | VALADOC_LIBS=fake \ | |
36976dab | 126 | %{?with_apidocs:--enable-docs} \ |
b1be6822 | 127 | %{?with_fep:--enable-fep} \ |
36976dab JB |
128 | %{?with_static_libs:--enable-static} |
129 | %{__make} | |
130 | ||
131 | %install | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %{__make} install \ | |
135 | DESTDIR=$RPM_BUILD_ROOT \ | |
136 | libskkgtkdocdir=%{_gtkdocdir}/libskk | |
137 | ||
138 | # obsoleted by pkg-config | |
139 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libskk.la | |
140 | ||
141 | %find_lang %{name} | |
142 | ||
143 | %clean | |
144 | rm -rf $RPM_BUILD_ROOT | |
145 | ||
146 | %post -p /sbin/ldconfig | |
147 | %postun -p /sbin/ldconfig | |
148 | ||
149 | %files -f %{name}.lang | |
150 | %defattr(644,root,root,755) | |
151 | %doc ChangeLog NEWS README | |
152 | %attr(755,root,root) %{_bindir}/skk | |
153 | %attr(755,root,root) %{_libdir}/libskk.so.*.*.* | |
154 | %attr(755,root,root) %ghost %{_libdir}/libskk.so.0 | |
155 | %{_libdir}/girepository-1.0/Skk-1.0.typelib | |
156 | %{_datadir}/libskk | |
157 | %{_mandir}/man1/skk.1* | |
158 | ||
b1be6822 JB |
159 | %if %{with fep} |
160 | %files fep | |
161 | %defattr(644,root,root,755) | |
162 | %attr(755,root,root) %{_bindir}/skkfep | |
61048111 | 163 | %attr(755,root,root) %{_libexecdir}/skkfep-client |
b1be6822 JB |
164 | %{_mandir}/man1/skkfep.1* |
165 | %endif | |
166 | ||
36976dab JB |
167 | %files devel |
168 | %defattr(644,root,root,755) | |
169 | %attr(755,root,root) %{_libdir}/libskk.so | |
170 | %{_datadir}/gir-1.0/Skk-1.0.gir | |
171 | %{_includedir}/libskk | |
172 | %{_pkgconfigdir}/libskk.pc | |
173 | ||
174 | %if %{with static_libs} | |
175 | %files static | |
176 | %defattr(644,root,root,755) | |
177 | %{_libdir}/libskk.a | |
178 | %endif | |
179 | ||
180 | %files -n vala-libskk | |
181 | %defattr(644,root,root,755) | |
182 | %{_datadir}/vala/vapi/skk-1.0.deps | |
183 | %{_datadir}/vala/vapi/skk-1.0.vapi | |
184 | ||
185 | %if %{with apidocs} | |
186 | %files apidocs | |
187 | %defattr(644,root,root,755) | |
188 | %{_gtkdocdir}/libskk | |
b1be6822 JB |
189 | # should it be here? |
190 | %{_datadir}/devhelp/references/libskk | |
36976dab | 191 | %endif |