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