]>
Commit | Line | Data |
---|---|---|
3f00fa8f | 1 | Summary: Smart Common Input Method |
b3609d11 | 2 | Summary(pl.UTF-8): Smart Common Input Method - ogólna metoda wprowadzania |
3f00fa8f | 3 | Name: scim |
48afcd98 | 4 | Version: 1.4.9 |
eb084f84 | 5 | Release: 2 |
07e6bf0f JB |
6 | License: LGPL v2+ |
7 | Group: X11/Applications | |
27f7c937 | 8 | Source0: http://downloads.sourceforge.net/scim/%{name}-%{version}.tar.gz |
48afcd98 | 9 | # Source0-md5: 975ba34b01304ea8166ac8ea27aa9e88 |
27f7c937 | 10 | Patch0: %{name}-1.4.7-syslibltdl.patch |
11 | Patch1: %{name}-1.4.8-fix-dlopen.patch | |
7048cf00 JB |
12 | URL: http://www.scim-im.org/ |
13 | BuildRequires: autoconf >= 2.59-9 | |
14 | BuildRequires: automake | |
15 | BuildRequires: gettext-devel | |
16 | BuildRequires: gtk+2-devel >= 2:2.4.0 | |
17 | BuildRequires: intltool >= 0.33 | |
27f7c937 | 18 | BuildRequires: libltdl-devel |
7048cf00 JB |
19 | BuildRequires: libstdc++-devel |
20 | BuildRequires: libtool | |
21 | BuildRequires: pango-devel >= 1.1.0 | |
22 | BuildRequires: pkgconfig | |
23 | BuildRequires: xorg-lib-libX11-devel | |
3f00fa8f | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
07e6bf0f JB |
26 | %define immodulesdir %{_libdir}/gtk-2.0/%(pkg-config --variable=gtk_binary_version gtk+-2.0)/immodules |
27 | ||
3f00fa8f | 28 | %description |
7048cf00 | 29 | scim is the core package of the SCIM project, which provides the |
07e6bf0f | 30 | fundamental routines and data types. A GTK+ 2 based Panel (User |
7048cf00 JB |
31 | Interface) and setup dialog are also shipped within this package. |
32 | ||
bee9bfb0 JR |
33 | %description -l pl.UTF-8 |
34 | scim to główny pakiet projektu SCIM, udostępniający podstawowe funkcje | |
35 | i typy danych. W pakiecie załączony jest także oparty na GTK+ 2 panel | |
36 | (interfejs użytkownika) i konfiguracyjne okno dialogowe. | |
3f00fa8f | 37 | |
07e6bf0f JB |
38 | %package devel |
39 | Summary: Header files for SCIM libraries | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek SCIM | |
41 | Group: X11/Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | ||
44 | %description devel | |
45 | Header files for SCIM libraries. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe bibliotek SCIM. | |
49 | ||
50 | %package static | |
51 | Summary: Static SCIM libraries | |
52 | Summary(pl.UTF-8): Statyczne biblioteki SCIM | |
53 | Group: X11/Development/Libraries | |
54 | Requires: %{name}-devel = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static SCIM libraries. | |
58 | ||
59 | %description static -l pl.UTF-8 | |
60 | Statyczne biblioteki SCIM. | |
61 | ||
3f00fa8f | 62 | %prep |
63 | %setup -q | |
48afcd98 AM |
64 | %patch0 -p1 |
65 | %patch1 -p1 | |
3f00fa8f | 66 | |
27f7c937 | 67 | # evil empty file, source fails to find real ltdl.h because of this |
68 | ! test -s src/ltdl.h | |
69 | %{__rm} src/ltdl.h | |
70 | ||
48afcd98 AM |
71 | for f in m4/intltool.m4 $(grep -l gettext- m4/*.m4 | xargs); do |
72 | :> $f | |
73 | done | |
07e6bf0f | 74 | |
3f00fa8f | 75 | %build |
7048cf00 | 76 | %{__gettextize} |
48afcd98 | 77 | %{__intltoolize} |
7048cf00 JB |
78 | %{__libtoolize} |
79 | %{__aclocal} -I m4 | |
80 | %{__autoconf} | |
07e6bf0f | 81 | %configure \ |
48afcd98 AM |
82 | --enable-ld-version-script \ |
83 | --with-gtk-im-module-dir=%{immodulesdir} \ | |
84 | --disable-ltdl-install | |
3f00fa8f | 85 | %{__make} |
86 | ||
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
3f00fa8f | 89 | |
90 | %{__make} install \ | |
07e6bf0f JB |
91 | DESTDIR=$RPM_BUILD_ROOT \ |
92 | gnomeccdir=%{_datadir}/gnome/capplets | |
93 | ||
94 | rm -f $RPM_BUILD_ROOT%{_libdir}/scim-1.0/*/*/*.{la,a} | |
95 | rm -f $RPM_BUILD_ROOT%{immodulesdir}/im-scim.{la,a} | |
96 | ||
97 | %find_lang %{name} | |
3f00fa8f | 98 | |
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
3f00fa8f | 102 | %post -p /sbin/ldconfig |
103 | %postun -p /sbin/ldconfig | |
3f00fa8f | 104 | |
07e6bf0f | 105 | %files -f %{name}.lang |
3f00fa8f | 106 | %defattr(644,root,root,755) |
7048cf00 | 107 | %doc AUTHORS ChangeLog README THANKS TODO |
07e6bf0f JB |
108 | %attr(755,root,root) %{_bindir}/scim |
109 | %attr(755,root,root) %{_bindir}/scim-config-agent | |
110 | %attr(755,root,root) %{_bindir}/scim-setup | |
111 | %attr(755,root,root) %{_libdir}/libscim-1.0.so.*.*.* | |
112 | %attr(755,root,root) %{_libdir}/libscim-gtkutils-1.0.so.*.*.* | |
113 | %attr(755,root,root) %{_libdir}/libscim-x11utils-1.0.so.*.*.* | |
114 | %dir %{_libdir}/scim-1.0 | |
115 | %dir %{_libdir}/scim-1.0/* | |
116 | %dir %{_libdir}/scim-1.0/*/Config | |
117 | %dir %{_libdir}/scim-1.0/*/Filter | |
118 | %dir %{_libdir}/scim-1.0/*/FrontEnd | |
119 | %dir %{_libdir}/scim-1.0/*/Helper | |
120 | %dir %{_libdir}/scim-1.0/*/IMEngine | |
121 | %dir %{_libdir}/scim-1.0/*/SetupUI | |
122 | %attr(755,root,root) %{_libdir}/scim-1.0/*/*/*.so | |
123 | %attr(755,root,root) %{_libdir}/scim-1.0/scim-helper-launcher | |
124 | %attr(755,root,root) %{_libdir}/scim-1.0/scim-helper-manager | |
125 | %attr(755,root,root) %{_libdir}/scim-1.0/scim-launcher | |
126 | %attr(755,root,root) %{_libdir}/scim-1.0/scim-panel-gtk | |
127 | %attr(755,root,root) %{immodulesdir}/im-scim.so | |
128 | %dir %{_sysconfdir}/scim | |
129 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/scim/config | |
130 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/scim/global | |
131 | %{_datadir}/scim | |
eb084f84 | 132 | #%{_datadir}/gnome/capplets/scim-setup.desktop |
07e6bf0f JB |
133 | %{_desktopdir}/scim-setup.desktop |
134 | %{_pixmapsdir}/scim-setup.png | |
135 | ||
136 | %files devel | |
137 | %defattr(644,root,root,755) | |
138 | %attr(755,root,root) %{_libdir}/libscim-1.0.so | |
139 | %attr(755,root,root) %{_libdir}/libscim-gtkutils-1.0.so | |
140 | %attr(755,root,root) %{_libdir}/libscim-x11utils-1.0.so | |
141 | %{_libdir}/libscim-1.0.la | |
142 | %{_libdir}/libscim-gtkutils-1.0.la | |
143 | %{_libdir}/libscim-x11utils-1.0.la | |
144 | %dir %{_includedir}/scim-1.0 | |
145 | %{_includedir}/scim-1.0/scim*.h | |
146 | %{_includedir}/scim-1.0/gtk | |
147 | %{_includedir}/scim-1.0/x11 | |
148 | %{_pkgconfigdir}/scim.pc | |
149 | %{_pkgconfigdir}/scim-gtkutils.pc | |
150 | %{_pkgconfigdir}/scim-x11utils.pc | |
151 | ||
152 | %files static | |
153 | %defattr(644,root,root,755) | |
154 | %{_libdir}/libscim-1.0.a | |
155 | %{_libdir}/libscim-gtkutils-1.0.a | |
156 | %{_libdir}/libscim-x11utils-1.0.a |