]>
Commit | Line | Data |
---|---|---|
2134b070 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with gtk2 # build GTK+ 2.x based gtkutils and setup | |
4 | # | |
3f00fa8f | 5 | Summary: Smart Common Input Method |
b3609d11 | 6 | Summary(pl.UTF-8): Smart Common Input Method - ogólna metoda wprowadzania |
3f00fa8f | 7 | Name: scim |
2134b070 | 8 | Version: 1.4.13 |
1ce66fad | 9 | Release: 1 |
07e6bf0f JB |
10 | License: LGPL v2+ |
11 | Group: X11/Applications | |
1ce66fad | 12 | Source0: http://downloads.sourceforge.net/scim/%{name}-%{version}.tar.gz |
2134b070 | 13 | # Source0-md5: 7d13016022d633b2faedc11338097cf2 |
72578bc2 | 14 | Source1: %{name}.xinputd |
b680a40e JR |
15 | Patch0: %{name}-gtk2-immodule-dir.patch |
16 | Patch1: %{name}-config.patch | |
2134b070 | 17 | Patch2: %{name}-version-script.patch |
7048cf00 JB |
18 | URL: http://www.scim-im.org/ |
19 | BuildRequires: autoconf >= 2.59-9 | |
20 | BuildRequires: automake | |
2134b070 JB |
21 | BuildRequires: gettext-devel >= 0.14.1 |
22 | BuildRequires: gdk-pixbuf2-devel >= 2.4.0 | |
7048cf00 | 23 | BuildRequires: gtk+2-devel >= 2:2.4.0 |
2134b070 | 24 | BuildRequires: gtk+3-devel >= 3.0.0 |
7048cf00 | 25 | BuildRequires: intltool >= 0.33 |
27f7c937 | 26 | BuildRequires: libltdl-devel |
7048cf00 | 27 | BuildRequires: libstdc++-devel |
1ce66fad | 28 | BuildRequires: libtool >= 2:2.0 |
7048cf00 JB |
29 | BuildRequires: pango-devel >= 1.1.0 |
30 | BuildRequires: pkgconfig | |
31 | BuildRequires: xorg-lib-libX11-devel | |
b680a40e JR |
32 | Requires: %{name}-libs = %{version}-%{release} |
33 | Requires: im-chooser | |
34 | Requires: imsettings | |
3f00fa8f | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
2134b070 JB |
37 | %define abiver 1.4.0 |
38 | %if "%{_lib}" != "lib" | |
39 | %define libext %(lib="%{_lib}"; echo ${lib#lib}) | |
40 | %define gtk2confdir %{_sysconfdir}/gtk%{libext}-2.0 | |
41 | %define gtkpqext -%{libext} | |
42 | %else | |
43 | %define gtk2confbase %{_sysconfdir}/gtk-2.0 | |
44 | %define gtkpqext %{nil} | |
45 | %endif | |
46 | ||
3f00fa8f | 47 | %description |
7048cf00 | 48 | scim is the core package of the SCIM project, which provides the |
07e6bf0f | 49 | fundamental routines and data types. A GTK+ 2 based Panel (User |
7048cf00 JB |
50 | Interface) and setup dialog are also shipped within this package. |
51 | ||
bee9bfb0 JR |
52 | %description -l pl.UTF-8 |
53 | scim to główny pakiet projektu SCIM, udostępniający podstawowe funkcje | |
54 | i typy danych. W pakiecie załączony jest także oparty na GTK+ 2 panel | |
55 | (interfejs użytkownika) i konfiguracyjne okno dialogowe. | |
3f00fa8f | 56 | |
b680a40e JR |
57 | %package libs |
58 | Summary: Smart Common Input Method libraries | |
59 | Summary(pl.UTF-8): Biblioteki Smart Common Input Method | |
60 | Group: X11/Libraries | |
1ce66fad JB |
61 | Requires: gtk+2 >= 2:2.4.0 |
62 | Requires: pango >= 1.1.0 | |
b680a40e JR |
63 | |
64 | %description libs | |
65 | Smart Common Input Method libraries. | |
66 | ||
67 | %description libs -l pl.UTF-8 | |
68 | Biblioteki Smart Common Input Method. | |
69 | ||
07e6bf0f JB |
70 | %package devel |
71 | Summary: Header files for SCIM libraries | |
72 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek SCIM | |
73 | Group: X11/Development/Libraries | |
b680a40e | 74 | Requires: %{name}-libs = %{version}-%{release} |
07e6bf0f JB |
75 | |
76 | %description devel | |
77 | Header files for SCIM libraries. | |
78 | ||
79 | %description devel -l pl.UTF-8 | |
80 | Pliki nagłówkowe bibliotek SCIM. | |
81 | ||
82 | %package static | |
83 | Summary: Static SCIM libraries | |
84 | Summary(pl.UTF-8): Statyczne biblioteki SCIM | |
85 | Group: X11/Development/Libraries | |
86 | Requires: %{name}-devel = %{version}-%{release} | |
87 | ||
88 | %description static | |
89 | Static SCIM libraries. | |
90 | ||
91 | %description static -l pl.UTF-8 | |
92 | Statyczne biblioteki SCIM. | |
93 | ||
b680a40e | 94 | %package gtk2 |
1ce66fad | 95 | # or -n gtk+2-im-scim? |
2134b070 JB |
96 | Summary: Smart Common Input Method GTK+ 2.x IM module |
97 | Summary(pl.UTF-8): Moduł IM GTK+ 2.x oparty na SCIM | |
b680a40e JR |
98 | Group: X11/Libraries |
99 | Requires: %{name} = %{version}-%{release} | |
100 | Requires: gtk+2 | |
1ce66fad | 101 | Requires(post,postun): gtk+2 |
b680a40e JR |
102 | |
103 | %description gtk2 | |
2134b070 | 104 | This package provides a GTK+ 2.x input method module for SCIM. |
1ce66fad JB |
105 | |
106 | %description gtk2 -l pl.UTF-8 | |
2134b070 JB |
107 | Ten pakiet zawiera moduł methody wejściowej GTK+ 2.x oparty na SCIM. |
108 | ||
109 | %package gtk3 | |
110 | # or -n gtk+3-im-scim? | |
111 | Summary: Smart Common Input Method GTK+ 3.x IM module | |
112 | Summary(pl.UTF-8): Moduł IM GTK+ 3.x oparty na SCIM | |
113 | Group: X11/Libraries | |
114 | Requires: %{name} = %{version}-%{release} | |
115 | Requires: gtk+3 | |
116 | Requires(post,postun): gtk+3 | |
117 | ||
118 | %description gtk3 | |
119 | This package provides a GTK+ 3.x input method module for SCIM. | |
120 | ||
121 | %description gtk3 -l pl.UTF-8 | |
122 | Ten pakiet zawiera moduł methody wejściowej GTK+ 3.x oparty na SCIM. | |
b680a40e | 123 | |
3f00fa8f | 124 | %prep |
125 | %setup -q | |
b680a40e JR |
126 | %patch0 -p1 |
127 | %patch1 -p1 | |
2134b070 | 128 | %patch2 -p1 |
07e6bf0f | 129 | |
3f00fa8f | 130 | %build |
7048cf00 JB |
131 | %{__libtoolize} |
132 | %{__aclocal} -I m4 | |
b680a40e | 133 | %{__autoheader} |
7048cf00 | 134 | %{__autoconf} |
b680a40e | 135 | %{__automake} |
07e6bf0f | 136 | %configure \ |
2134b070 JB |
137 | --enable-ld-version-script \ |
138 | %{?with_gtk2:--with-gtk-version=2} | |
96eef15b | 139 | |
3f00fa8f | 140 | %{__make} |
141 | ||
142 | %install | |
143 | rm -rf $RPM_BUILD_ROOT | |
b680a40e | 144 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinput.d |
3f00fa8f | 145 | |
146 | %{__make} install \ | |
b680a40e | 147 | DESTDIR=$RPM_BUILD_ROOT |
07e6bf0f | 148 | |
b680a40e JR |
149 | %{__sed} -e 's|@@LIB@@|%{_lib}|g' %{SOURCE1} >$RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinput.d/scim.conf |
150 | ||
151 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
152 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/scim-1.0/*/*/*.{la,a} | |
153 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/immodules/im-scim.{la,a} | |
2134b070 JB |
154 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/*/immodules/im-scim.{la,a} |
155 | ||
156 | # obsolete GNOME2 file | |
157 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/control-center-2.0/capplets/scim-setup.desktop | |
07e6bf0f JB |
158 | |
159 | %find_lang %{name} | |
3f00fa8f | 160 | |
161 | %clean | |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
b680a40e JR |
164 | %post libs -p /sbin/ldconfig |
165 | %postun libs -p /sbin/ldconfig | |
166 | ||
167 | %post gtk2 | |
2134b070 | 168 | %{_bindir}/gtk-query-immodules-2.0%{gtkpqext} > %{gtk2confdir}/gtk.immodules |
b680a40e JR |
169 | |
170 | %postun gtk2 | |
2134b070 JB |
171 | %{_bindir}/gtk-query-immodules-2.0%{gtkpqext} > %{gtk2confdir}/gtk.immodules |
172 | ||
173 | %post gtk3 | |
174 | %{_bindir}/gtk-query-immodules-3.0%{gtkpqext} --update-cache | |
175 | ||
176 | %postun gtk3 | |
177 | %{_bindir}/gtk-query-immodules-3.0%{gtkpqext} --update-cache | |
3f00fa8f | 178 | |
07e6bf0f | 179 | %files -f %{name}.lang |
3f00fa8f | 180 | %defattr(644,root,root,755) |
7048cf00 | 181 | %doc AUTHORS ChangeLog README THANKS TODO |
b680a40e JR |
182 | %dir %{_sysconfdir}/scim |
183 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/scim/config | |
184 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/scim/global | |
185 | %{_sysconfdir}/X11/xinit/xinput.d/scim.conf | |
07e6bf0f JB |
186 | %attr(755,root,root) %{_bindir}/scim |
187 | %attr(755,root,root) %{_bindir}/scim-config-agent | |
188 | %attr(755,root,root) %{_bindir}/scim-setup | |
2134b070 JB |
189 | %dir %{_libdir}/scim-1.0/%{abiver}/Filter |
190 | %dir %{_libdir}/scim-1.0/%{abiver}/FrontEnd | |
191 | %dir %{_libdir}/scim-1.0/%{abiver}/Helper | |
192 | %dir %{_libdir}/scim-1.0/%{abiver}/SetupUI | |
193 | %attr(755,root,root) %{_libdir}/scim-1.0/%{abiver}/Filter/*.so | |
194 | %attr(755,root,root) %{_libdir}/scim-1.0/%{abiver}/FrontEnd/*.so | |
195 | %attr(755,root,root) %{_libdir}/scim-1.0/%{abiver}/Helper/*.so | |
196 | %attr(755,root,root) %{_libdir}/scim-1.0/%{abiver}/SetupUI/*.so | |
07e6bf0f JB |
197 | %attr(755,root,root) %{_libdir}/scim-1.0/scim-helper-launcher |
198 | %attr(755,root,root) %{_libdir}/scim-1.0/scim-helper-manager | |
199 | %attr(755,root,root) %{_libdir}/scim-1.0/scim-launcher | |
200 | %attr(755,root,root) %{_libdir}/scim-1.0/scim-panel-gtk | |
07e6bf0f | 201 | %{_datadir}/scim |
07e6bf0f JB |
202 | %{_desktopdir}/scim-setup.desktop |
203 | %{_pixmapsdir}/scim-setup.png | |
204 | ||
b680a40e JR |
205 | %files libs |
206 | %defattr(644,root,root,755) | |
207 | %attr(755,root,root) %{_libdir}/libscim-1.0.so.*.*.* | |
2579aaf4 | 208 | %attr(755,root,root) %ghost %{_libdir}/libscim-1.0.so.8 |
b680a40e | 209 | %attr(755,root,root) %{_libdir}/libscim-gtkutils-1.0.so.*.*.* |
2579aaf4 | 210 | %attr(755,root,root) %ghost %{_libdir}/libscim-gtkutils-1.0.so.8 |
b680a40e | 211 | %attr(755,root,root) %{_libdir}/libscim-x11utils-1.0.so.*.*.* |
2579aaf4 | 212 | %attr(755,root,root) %ghost %{_libdir}/libscim-x11utils-1.0.so.8 |
b680a40e | 213 | %dir %{_libdir}/scim-1.0 |
2134b070 JB |
214 | %dir %{_libdir}/scim-1.0/%{abiver} |
215 | %dir %{_libdir}/scim-1.0/%{abiver}/Config | |
216 | %dir %{_libdir}/scim-1.0/%{abiver}/IMEngine | |
217 | %attr(755,root,root) %{_libdir}/scim-1.0/%{abiver}/Config/*.so | |
218 | %attr(755,root,root) %{_libdir}/scim-1.0/%{abiver}/IMEngine/*.so | |
b680a40e | 219 | |
07e6bf0f JB |
220 | %files devel |
221 | %defattr(644,root,root,755) | |
222 | %attr(755,root,root) %{_libdir}/libscim-1.0.so | |
223 | %attr(755,root,root) %{_libdir}/libscim-gtkutils-1.0.so | |
224 | %attr(755,root,root) %{_libdir}/libscim-x11utils-1.0.so | |
07e6bf0f JB |
225 | %dir %{_includedir}/scim-1.0 |
226 | %{_includedir}/scim-1.0/scim*.h | |
227 | %{_includedir}/scim-1.0/gtk | |
228 | %{_includedir}/scim-1.0/x11 | |
229 | %{_pkgconfigdir}/scim.pc | |
230 | %{_pkgconfigdir}/scim-gtkutils.pc | |
231 | %{_pkgconfigdir}/scim-x11utils.pc | |
232 | ||
233 | %files static | |
234 | %defattr(644,root,root,755) | |
235 | %{_libdir}/libscim-1.0.a | |
236 | %{_libdir}/libscim-gtkutils-1.0.a | |
237 | %{_libdir}/libscim-x11utils-1.0.a | |
b680a40e JR |
238 | |
239 | %files gtk2 | |
240 | %defattr(644,root,root,755) | |
2134b070 JB |
241 | %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/immodules/im-scim.so |
242 | ||
243 | %files gtk3 | |
244 | %defattr(644,root,root,755) | |
245 | %attr(755,root,root) %{_libdir}/gtk-3.0/3.*/immodules/im-scim.so |