]>
Commit | Line | Data |
---|---|---|
7be8c947 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without gtk2 # GTK+ 2.x based libraries | |
4 | %bcond_without gtk3 # GTK+ 3.x based libraries | |
5 | %bcond_without static_libs # static libraries | |
d79c6a3f | 6 | |
7be8c947 JB |
7 | Summary: Infinote libraries to build collaborative text editors |
8 | Summary(pl.UTF-8): Biblioteki Infinote do tworzenia edytorów tekstów do pracy grupowej | |
9 | Name: libinfinity | |
95096d19 | 10 | Version: 0.6.6 |
d79c6a3f | 11 | Release: 2 |
7be8c947 JB |
12 | License: LGPL v2+ |
13 | Group: Libraries | |
14 | Source0: http://releases.0x539.de/libinfinity/%{name}-%{version}.tar.gz | |
95096d19 | 15 | # Source0-md5: c65f9f13f17afb4db2ec8cfaf5f01ce5 |
7be8c947 JB |
16 | Patch0: %{name}-link.patch |
17 | URL: http://gobby.0x539.de/ | |
18 | BuildRequires: autoconf >= 2.60 | |
19 | BuildRequires: automake | |
20 | BuildRequires: avahi-devel >= 0.6 | |
21 | BuildRequires: gettext-tools | |
22 | BuildRequires: glib2-devel >= 1:2.16 | |
23 | BuildRequires: gnutls-devel >= 2.12.0 | |
24 | BuildRequires: gsasl-devel >= 0.2.21 | |
25 | %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12} | |
26 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0} | |
27 | BuildRequires: gtk-doc >= 1.4 | |
28 | BuildRequires: libdaemon-devel | |
29 | BuildRequires: libtool | |
30 | BuildRequires: libxml2-devel >= 2.0 | |
31 | BuildRequires: pam-devel | |
32 | BuildRequires: pkgconfig | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | libinfinity is library to build collaborative text editors. Changes to | |
37 | the text buffers are synced to all other clients over a central | |
38 | server. Even though a central server is involved, the local user sees | |
39 | his changes applied instantly and the merging is done on the | |
40 | individual clients. | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | libinfinity to biblioteka do tworzenia edytorów tekstu obsługujących | |
44 | pracę grupową. Zmiany w buforach tekstu są synchronizowane z | |
45 | pozostałymi klientami poprzez serwer centralny. Mimo wykorzystania | |
46 | serwera centralnego, lokalny użytkownik widzi zmiany naniesione | |
47 | natychmiast, a łączenie jest wykonywane po stronie poszczególnych | |
48 | klientów. | |
49 | ||
50 | %package devel | |
51 | Summary: Header files for core Infinote libraries | |
52 | Summary(pl.UTF-8): Pliki nagłówkowe podstawowych bibliotek Infinote | |
53 | Group: Development/Libraries | |
54 | Requires: %{name} = %{version}-%{release} | |
55 | Requires: glib2-devel >= 1:2.16 | |
56 | Requires: gnutls-devel >= 2.12.0 | |
57 | Requires: gsasl-devel >= 0.2.21 | |
58 | Requires: libxml2-devel >= 2.0 | |
59 | ||
60 | %description devel | |
61 | Header files for core Infinote libraries. | |
62 | ||
63 | %description devel -l pl.UTF-8 | |
64 | Pliki nagłówkowe podstawowych bibliotek Infinote. | |
65 | ||
66 | %package static | |
67 | Summary: Static core Infinote libraries | |
68 | Summary(pl.UTF-8): Statyczne biblioteki podstawowe Infinote | |
69 | Group: Development/Libraries | |
70 | Requires: %{name}-devel = %{version}-%{release} | |
71 | ||
72 | %description static | |
73 | Static core Infinote libraries. | |
74 | ||
75 | %description static -l pl.UTF-8 | |
76 | Statyczne biblioteki podstawowe Infinote. | |
77 | ||
78 | %package apidocs | |
79 | Summary: API documentation for Infinote libraries | |
80 | Summary(pl.UTF-8): Dokumentacja API bibliotek Infinote | |
81 | Group: Documentation | |
d79c6a3f ER |
82 | %if "%{_rpmversion}" >= "5" |
83 | BuildArch: noarch | |
84 | %endif | |
7be8c947 JB |
85 | |
86 | %description apidocs | |
87 | API documentation for Infinote libraries. | |
88 | ||
89 | %description apidocs -l pl.UTF-8 | |
90 | Dokumentacja API bibliotek Infinote. | |
91 | ||
92 | %package gtk | |
93 | Summary: Infinote GTK+ 2 UI libraries | |
94 | Summary(pl.UTF-8): Biblioteki Infinote interfejsu użytkownika GTK+ 2 | |
95 | Group: X11/Libraries | |
96 | Requires: %{name} = %{version}-%{release} | |
97 | Requires: gtk+2 >= 2:2.12 | |
98 | ||
99 | %description gtk | |
100 | Infinote GTK+ 2 UI libraries. | |
101 | ||
102 | %description gtk -l pl.UTF-8 | |
103 | Biblioteki Infinote interfejsu użytkownika GTK+ 2. | |
104 | ||
105 | %package gtk-devel | |
106 | Summary: Header files for Infinote GTK+ 2 libraries | |
107 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Infinote GTK+ 2 | |
108 | Group: X11/Development/Libraries | |
109 | Requires: %{name}-devel = %{version}-%{release} | |
110 | Requires: %{name}-gtk = %{version}-%{release} | |
111 | Requires: gtk+2-devel >= 2:2.12 | |
112 | ||
113 | %description gtk-devel | |
114 | Header files for Infinote GTK+ 2 libraries. | |
115 | ||
116 | %description gtk-devel -l pl.UTF-8 | |
117 | Pliki nagłówkowe bibliotek Infinote GTK+ 2. | |
118 | ||
119 | %package gtk-static | |
120 | Summary: Static Infinote GTK+ 2 libraries | |
121 | Summary(pl.UTF-8): Statyczne biblioteki Infinote GTK+ 2 | |
122 | Group: X11/Development/Libraries | |
123 | Requires: %{name}-gtk-devel = %{version}-%{release} | |
124 | ||
125 | %description gtk-static | |
126 | Static Infinote GTK+ 2 libraries. | |
127 | ||
128 | %description gtk-static -l pl.UTF-8 | |
129 | Statyczne biblioteki Infinote GTK+ 2. | |
130 | ||
131 | %package gtk3 | |
132 | Summary: Infinote GTK+ 3 UI libraries | |
133 | Summary(pl.UTF-8): Biblioteki Infinote interfejsu użytkownika GTK+ 3 | |
134 | Group: X11/Libraries | |
135 | Requires: %{name} = %{version}-%{release} | |
136 | Requires: gtk+3 >= 3.0 | |
137 | ||
138 | %description gtk3 | |
139 | Infinote GTK+ 3 UI libraries. | |
140 | ||
141 | %description gtk3 -l pl.UTF-8 | |
142 | Biblioteki Infinote interfejsu użytkownika GTK+ 3. | |
143 | ||
144 | %package gtk3-devel | |
145 | Summary: Header files for Infinote GTK+ 3 libraries | |
146 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Infinote GTK+ 3 | |
147 | Group: X11/Development/Libraries | |
148 | Requires: %{name}-devel = %{version}-%{release} | |
149 | Requires: %{name}-gtk3 = %{version}-%{release} | |
150 | Requires: gtk+3-devel >= 3.0 | |
151 | ||
152 | %description gtk3-devel | |
153 | Header files for Infinote GTK+ 3 libraries. | |
154 | ||
155 | %description gtk3-devel -l pl.UTF-8 | |
156 | Pliki nagłówkowe bibliotek Infinote GTK+ 3. | |
157 | ||
158 | %package gtk3-static | |
159 | Summary: Static Infinote GTK+ 3 libraries | |
160 | Summary(pl.UTF-8): Statyczne biblioteki Infinote GTK+ 3 | |
161 | Group: X11/Development/Libraries | |
162 | Requires: %{name}-gtk3-devel = %{version}-%{release} | |
163 | ||
164 | %description gtk3-static | |
165 | Static Infinote GTK+ 3 libraries. | |
166 | ||
167 | %description gtk3-static -l pl.UTF-8 | |
168 | Statyczne biblioteki Infinote GTK+ 3. | |
169 | ||
170 | %prep | |
171 | %setup -q | |
172 | %patch0 -p1 | |
173 | ||
174 | %build | |
175 | %{__libtoolize} | |
176 | %{__aclocal} -I m4 | |
177 | %{__automake} | |
178 | %{__autoconf} | |
179 | for d in %{?with_gtk2:gtk2} %{?with_gtk3:gtk3} ; do | |
180 | install -d build-${d} | |
181 | cd build-${d} | |
182 | ../%configure \ | |
183 | --enable-gtk-doc \ | |
184 | %{!?with_static_libs:--disable-static} \ | |
185 | `[ "$d" != "gtk3" ] || echo --with-gtk3 ]` \ | |
186 | --with-html-dir=%{_gtkdocdir} | |
187 | %{__make} | |
188 | cd .. | |
189 | done | |
190 | ||
191 | %install | |
192 | rm -rf $RPM_BUILD_ROOT | |
193 | ||
194 | for d in %{?with_gtk2:gtk2} %{?with_gtk3:gtk3} ; do | |
195 | %{__make} -C build-${d} install \ | |
196 | DESTDIR=$RPM_BUILD_ROOT | |
197 | done | |
198 | ||
199 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
200 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/infinoted-0.6/plugins/*.la | |
201 | %if %{with static_libs} | |
202 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/infinoted-0.6/plugins/*.a | |
203 | %endif | |
204 | ||
205 | %find_lang libinfinity-0.6 | |
206 | ||
207 | %clean | |
208 | rm -rf $RPM_BUILD_ROOT | |
209 | ||
210 | %post -p /sbin/ldconfig | |
211 | %postun -p /sbin/ldconfig | |
7a118134 JB |
212 | |
213 | %post gtk -p /sbin/ldconfig | |
214 | %postun gtk -p /sbin/ldconfig | |
215 | ||
216 | %post gtk3 -p /sbin/ldconfig | |
217 | %postun gtk3 -p /sbin/ldconfig | |
7be8c947 JB |
218 | |
219 | %files -f libinfinity-0.6.lang | |
220 | %defattr(644,root,root,755) | |
221 | %doc AUTHORS ChangeLog NEWS README.md | |
222 | %attr(755,root,root) %{_bindir}/infinoted-0.6 | |
223 | %attr(755,root,root) %{_libdir}/libinfinity-0.6.so.*.*.* | |
224 | %attr(755,root,root) %ghost %{_libdir}/libinfinity-0.6.so.0 | |
225 | %attr(755,root,root) %{_libdir}/libinfinoted-plugin-manager-0.6.so.*.*.* | |
226 | %attr(755,root,root) %ghost %{_libdir}/libinfinoted-plugin-manager-0.6.so.0 | |
227 | %attr(755,root,root) %{_libdir}/libinftext-0.6.so.*.*.* | |
228 | %attr(755,root,root) %ghost %{_libdir}/libinftext-0.6.so.0 | |
229 | %dir %{_libdir}/infinoted-0.6 | |
230 | %dir %{_libdir}/infinoted-0.6/plugins | |
231 | %attr(755,root,root) %{_libdir}/infinoted-0.6/plugins/libinfinoted-plugin-*.so | |
232 | %{_iconsdir}/hicolor/*x*/apps/infinote.png | |
233 | %{_iconsdir}/hicolor/scalable/apps/infinote.svg | |
234 | %{_mandir}/man1/infinoted-0.6.1* | |
235 | ||
236 | %files devel | |
237 | %defattr(644,root,root,755) | |
238 | %attr(755,root,root) %{_libdir}/libinfinity-0.6.so | |
239 | %attr(755,root,root) %{_libdir}/libinfinoted-plugin-manager-0.6.so | |
240 | %attr(755,root,root) %{_libdir}/libinftext-0.6.so | |
241 | %{_includedir}/libinfinity-0.6 | |
242 | %{_includedir}/libinfinoted-plugin-manager-0.6 | |
243 | %{_includedir}/libinftext-0.6 | |
244 | %{_pkgconfigdir}/libinfinity-0.6.pc | |
245 | %{_pkgconfigdir}/libinfinoted-plugin-manager-0.6.pc | |
246 | %{_pkgconfigdir}/libinftext-0.6.pc | |
247 | ||
248 | %if %{with static_libs} | |
249 | %files static | |
250 | %defattr(644,root,root,755) | |
251 | %{_libdir}/libinfinity-0.6.a | |
252 | %{_libdir}/libinfinoted-plugin-manager-0.6.a | |
253 | %{_libdir}/libinftext-0.6.a | |
254 | %endif | |
255 | ||
256 | %files apidocs | |
257 | %defattr(644,root,root,755) | |
258 | %{_gtkdocdir}/libinfgtk-0.6 | |
259 | %{_gtkdocdir}/libinfinity-0.6 | |
260 | %{_gtkdocdir}/libinfinoted-plugin-manager-0.6 | |
261 | %{_gtkdocdir}/libinftext-0.6 | |
262 | %{_gtkdocdir}/libinftextgtk-0.6 | |
263 | ||
264 | %if %{with gtk2} | |
265 | %files gtk | |
266 | %defattr(644,root,root,755) | |
267 | %attr(755,root,root) %{_libdir}/libinfgtk-0.6.so.*.*.* | |
268 | %attr(755,root,root) %ghost %{_libdir}/libinfgtk-0.6.so.0 | |
269 | %attr(755,root,root) %{_libdir}/libinftextgtk-0.6.so.*.*.* | |
270 | %attr(755,root,root) %ghost %{_libdir}/libinftextgtk-0.6.so.0 | |
271 | ||
272 | %files gtk-devel | |
273 | %defattr(644,root,root,755) | |
274 | %attr(755,root,root) %{_libdir}/libinfgtk-0.6.so | |
275 | %attr(755,root,root) %{_libdir}/libinftextgtk-0.6.so | |
276 | %{_includedir}/libinfgtk-0.6 | |
277 | %{_includedir}/libinftextgtk-0.6 | |
278 | %{_pkgconfigdir}/libinfgtk-0.6.pc | |
279 | %{_pkgconfigdir}/libinftextgtk-0.6.pc | |
280 | ||
281 | %if %{with static_libs} | |
282 | %files gtk-static | |
283 | %defattr(644,root,root,755) | |
284 | %{_libdir}/libinfgtk-0.6.a | |
285 | %{_libdir}/libinftextgtk-0.6.a | |
286 | %endif | |
287 | %endif | |
288 | ||
289 | %if %{with gtk3} | |
290 | %files gtk3 | |
291 | %defattr(644,root,root,755) | |
292 | %attr(755,root,root) %{_libdir}/libinfgtk3-0.6.so.*.*.* | |
293 | %attr(755,root,root) %ghost %{_libdir}/libinfgtk3-0.6.so.0 | |
294 | %attr(755,root,root) %{_libdir}/libinftextgtk3-0.6.so.*.*.* | |
295 | %attr(755,root,root) %ghost %{_libdir}/libinftextgtk3-0.6.so.0 | |
296 | ||
297 | %files gtk3-devel | |
298 | %defattr(644,root,root,755) | |
299 | %attr(755,root,root) %{_libdir}/libinfgtk3-0.6.so | |
300 | %attr(755,root,root) %{_libdir}/libinftextgtk3-0.6.so | |
301 | %{_includedir}/libinfgtk3-0.6 | |
302 | %{_includedir}/libinftextgtk3-0.6 | |
303 | %{_pkgconfigdir}/libinfgtk3-0.6.pc | |
304 | %{_pkgconfigdir}/libinftextgtk3-0.6.pc | |
305 | ||
306 | %if %{with static_libs} | |
307 | %files gtk3-static | |
308 | %defattr(644,root,root,755) | |
309 | %{_libdir}/libinfgtk3-0.6.a | |
310 | %{_libdir}/libinftextgtk3-0.6.a | |
311 | %endif | |
312 | %endif |