]>
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 | |
6 | # | |
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 |
7be8c947 JB |
11 | Release: 1 |
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 | |
82 | ||
83 | %description apidocs | |
84 | API documentation for Infinote libraries. | |
85 | ||
86 | %description apidocs -l pl.UTF-8 | |
87 | Dokumentacja API bibliotek Infinote. | |
88 | ||
89 | %package gtk | |
90 | Summary: Infinote GTK+ 2 UI libraries | |
91 | Summary(pl.UTF-8): Biblioteki Infinote interfejsu użytkownika GTK+ 2 | |
92 | Group: X11/Libraries | |
93 | Requires: %{name} = %{version}-%{release} | |
94 | Requires: gtk+2 >= 2:2.12 | |
95 | ||
96 | %description gtk | |
97 | Infinote GTK+ 2 UI libraries. | |
98 | ||
99 | %description gtk -l pl.UTF-8 | |
100 | Biblioteki Infinote interfejsu użytkownika GTK+ 2. | |
101 | ||
102 | %package gtk-devel | |
103 | Summary: Header files for Infinote GTK+ 2 libraries | |
104 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Infinote GTK+ 2 | |
105 | Group: X11/Development/Libraries | |
106 | Requires: %{name}-devel = %{version}-%{release} | |
107 | Requires: %{name}-gtk = %{version}-%{release} | |
108 | Requires: gtk+2-devel >= 2:2.12 | |
109 | ||
110 | %description gtk-devel | |
111 | Header files for Infinote GTK+ 2 libraries. | |
112 | ||
113 | %description gtk-devel -l pl.UTF-8 | |
114 | Pliki nagłówkowe bibliotek Infinote GTK+ 2. | |
115 | ||
116 | %package gtk-static | |
117 | Summary: Static Infinote GTK+ 2 libraries | |
118 | Summary(pl.UTF-8): Statyczne biblioteki Infinote GTK+ 2 | |
119 | Group: X11/Development/Libraries | |
120 | Requires: %{name}-gtk-devel = %{version}-%{release} | |
121 | ||
122 | %description gtk-static | |
123 | Static Infinote GTK+ 2 libraries. | |
124 | ||
125 | %description gtk-static -l pl.UTF-8 | |
126 | Statyczne biblioteki Infinote GTK+ 2. | |
127 | ||
128 | %package gtk3 | |
129 | Summary: Infinote GTK+ 3 UI libraries | |
130 | Summary(pl.UTF-8): Biblioteki Infinote interfejsu użytkownika GTK+ 3 | |
131 | Group: X11/Libraries | |
132 | Requires: %{name} = %{version}-%{release} | |
133 | Requires: gtk+3 >= 3.0 | |
134 | ||
135 | %description gtk3 | |
136 | Infinote GTK+ 3 UI libraries. | |
137 | ||
138 | %description gtk3 -l pl.UTF-8 | |
139 | Biblioteki Infinote interfejsu użytkownika GTK+ 3. | |
140 | ||
141 | %package gtk3-devel | |
142 | Summary: Header files for Infinote GTK+ 3 libraries | |
143 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Infinote GTK+ 3 | |
144 | Group: X11/Development/Libraries | |
145 | Requires: %{name}-devel = %{version}-%{release} | |
146 | Requires: %{name}-gtk3 = %{version}-%{release} | |
147 | Requires: gtk+3-devel >= 3.0 | |
148 | ||
149 | %description gtk3-devel | |
150 | Header files for Infinote GTK+ 3 libraries. | |
151 | ||
152 | %description gtk3-devel -l pl.UTF-8 | |
153 | Pliki nagłówkowe bibliotek Infinote GTK+ 3. | |
154 | ||
155 | %package gtk3-static | |
156 | Summary: Static Infinote GTK+ 3 libraries | |
157 | Summary(pl.UTF-8): Statyczne biblioteki Infinote GTK+ 3 | |
158 | Group: X11/Development/Libraries | |
159 | Requires: %{name}-gtk3-devel = %{version}-%{release} | |
160 | ||
161 | %description gtk3-static | |
162 | Static Infinote GTK+ 3 libraries. | |
163 | ||
164 | %description gtk3-static -l pl.UTF-8 | |
165 | Statyczne biblioteki Infinote GTK+ 3. | |
166 | ||
167 | %prep | |
168 | %setup -q | |
169 | %patch0 -p1 | |
170 | ||
171 | %build | |
172 | %{__libtoolize} | |
173 | %{__aclocal} -I m4 | |
174 | %{__automake} | |
175 | %{__autoconf} | |
176 | for d in %{?with_gtk2:gtk2} %{?with_gtk3:gtk3} ; do | |
177 | install -d build-${d} | |
178 | cd build-${d} | |
179 | ../%configure \ | |
180 | --enable-gtk-doc \ | |
181 | %{!?with_static_libs:--disable-static} \ | |
182 | `[ "$d" != "gtk3" ] || echo --with-gtk3 ]` \ | |
183 | --with-html-dir=%{_gtkdocdir} | |
184 | %{__make} | |
185 | cd .. | |
186 | done | |
187 | ||
188 | %install | |
189 | rm -rf $RPM_BUILD_ROOT | |
190 | ||
191 | for d in %{?with_gtk2:gtk2} %{?with_gtk3:gtk3} ; do | |
192 | %{__make} -C build-${d} install \ | |
193 | DESTDIR=$RPM_BUILD_ROOT | |
194 | done | |
195 | ||
196 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
197 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/infinoted-0.6/plugins/*.la | |
198 | %if %{with static_libs} | |
199 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/infinoted-0.6/plugins/*.a | |
200 | %endif | |
201 | ||
202 | %find_lang libinfinity-0.6 | |
203 | ||
204 | %clean | |
205 | rm -rf $RPM_BUILD_ROOT | |
206 | ||
207 | %post -p /sbin/ldconfig | |
208 | %postun -p /sbin/ldconfig | |
7a118134 JB |
209 | |
210 | %post gtk -p /sbin/ldconfig | |
211 | %postun gtk -p /sbin/ldconfig | |
212 | ||
213 | %post gtk3 -p /sbin/ldconfig | |
214 | %postun gtk3 -p /sbin/ldconfig | |
7be8c947 JB |
215 | |
216 | %files -f libinfinity-0.6.lang | |
217 | %defattr(644,root,root,755) | |
218 | %doc AUTHORS ChangeLog NEWS README.md | |
219 | %attr(755,root,root) %{_bindir}/infinoted-0.6 | |
220 | %attr(755,root,root) %{_libdir}/libinfinity-0.6.so.*.*.* | |
221 | %attr(755,root,root) %ghost %{_libdir}/libinfinity-0.6.so.0 | |
222 | %attr(755,root,root) %{_libdir}/libinfinoted-plugin-manager-0.6.so.*.*.* | |
223 | %attr(755,root,root) %ghost %{_libdir}/libinfinoted-plugin-manager-0.6.so.0 | |
224 | %attr(755,root,root) %{_libdir}/libinftext-0.6.so.*.*.* | |
225 | %attr(755,root,root) %ghost %{_libdir}/libinftext-0.6.so.0 | |
226 | %dir %{_libdir}/infinoted-0.6 | |
227 | %dir %{_libdir}/infinoted-0.6/plugins | |
228 | %attr(755,root,root) %{_libdir}/infinoted-0.6/plugins/libinfinoted-plugin-*.so | |
229 | %{_iconsdir}/hicolor/*x*/apps/infinote.png | |
230 | %{_iconsdir}/hicolor/scalable/apps/infinote.svg | |
231 | %{_mandir}/man1/infinoted-0.6.1* | |
232 | ||
233 | %files devel | |
234 | %defattr(644,root,root,755) | |
235 | %attr(755,root,root) %{_libdir}/libinfinity-0.6.so | |
236 | %attr(755,root,root) %{_libdir}/libinfinoted-plugin-manager-0.6.so | |
237 | %attr(755,root,root) %{_libdir}/libinftext-0.6.so | |
238 | %{_includedir}/libinfinity-0.6 | |
239 | %{_includedir}/libinfinoted-plugin-manager-0.6 | |
240 | %{_includedir}/libinftext-0.6 | |
241 | %{_pkgconfigdir}/libinfinity-0.6.pc | |
242 | %{_pkgconfigdir}/libinfinoted-plugin-manager-0.6.pc | |
243 | %{_pkgconfigdir}/libinftext-0.6.pc | |
244 | ||
245 | %if %{with static_libs} | |
246 | %files static | |
247 | %defattr(644,root,root,755) | |
248 | %{_libdir}/libinfinity-0.6.a | |
249 | %{_libdir}/libinfinoted-plugin-manager-0.6.a | |
250 | %{_libdir}/libinftext-0.6.a | |
251 | %endif | |
252 | ||
253 | %files apidocs | |
254 | %defattr(644,root,root,755) | |
255 | %{_gtkdocdir}/libinfgtk-0.6 | |
256 | %{_gtkdocdir}/libinfinity-0.6 | |
257 | %{_gtkdocdir}/libinfinoted-plugin-manager-0.6 | |
258 | %{_gtkdocdir}/libinftext-0.6 | |
259 | %{_gtkdocdir}/libinftextgtk-0.6 | |
260 | ||
261 | %if %{with gtk2} | |
262 | %files gtk | |
263 | %defattr(644,root,root,755) | |
264 | %attr(755,root,root) %{_libdir}/libinfgtk-0.6.so.*.*.* | |
265 | %attr(755,root,root) %ghost %{_libdir}/libinfgtk-0.6.so.0 | |
266 | %attr(755,root,root) %{_libdir}/libinftextgtk-0.6.so.*.*.* | |
267 | %attr(755,root,root) %ghost %{_libdir}/libinftextgtk-0.6.so.0 | |
268 | ||
269 | %files gtk-devel | |
270 | %defattr(644,root,root,755) | |
271 | %attr(755,root,root) %{_libdir}/libinfgtk-0.6.so | |
272 | %attr(755,root,root) %{_libdir}/libinftextgtk-0.6.so | |
273 | %{_includedir}/libinfgtk-0.6 | |
274 | %{_includedir}/libinftextgtk-0.6 | |
275 | %{_pkgconfigdir}/libinfgtk-0.6.pc | |
276 | %{_pkgconfigdir}/libinftextgtk-0.6.pc | |
277 | ||
278 | %if %{with static_libs} | |
279 | %files gtk-static | |
280 | %defattr(644,root,root,755) | |
281 | %{_libdir}/libinfgtk-0.6.a | |
282 | %{_libdir}/libinftextgtk-0.6.a | |
283 | %endif | |
284 | %endif | |
285 | ||
286 | %if %{with gtk3} | |
287 | %files gtk3 | |
288 | %defattr(644,root,root,755) | |
289 | %attr(755,root,root) %{_libdir}/libinfgtk3-0.6.so.*.*.* | |
290 | %attr(755,root,root) %ghost %{_libdir}/libinfgtk3-0.6.so.0 | |
291 | %attr(755,root,root) %{_libdir}/libinftextgtk3-0.6.so.*.*.* | |
292 | %attr(755,root,root) %ghost %{_libdir}/libinftextgtk3-0.6.so.0 | |
293 | ||
294 | %files gtk3-devel | |
295 | %defattr(644,root,root,755) | |
296 | %attr(755,root,root) %{_libdir}/libinfgtk3-0.6.so | |
297 | %attr(755,root,root) %{_libdir}/libinftextgtk3-0.6.so | |
298 | %{_includedir}/libinfgtk3-0.6 | |
299 | %{_includedir}/libinftextgtk3-0.6 | |
300 | %{_pkgconfigdir}/libinfgtk3-0.6.pc | |
301 | %{_pkgconfigdir}/libinftextgtk3-0.6.pc | |
302 | ||
303 | %if %{with static_libs} | |
304 | %files gtk3-static | |
305 | %defattr(644,root,root,755) | |
306 | %{_libdir}/libinfgtk3-0.6.a | |
307 | %{_libdir}/libinftextgtk3-0.6.a | |
308 | %endif | |
309 | %endif |