]> git.pld-linux.org Git - packages/libinfinity.git/blame - libinfinity.spec
- ldconfig for gtk libraries
[packages/libinfinity.git] / libinfinity.spec
CommitLineData
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#
7Summary: Infinote libraries to build collaborative text editors
8Summary(pl.UTF-8): Biblioteki Infinote do tworzenia edytorów tekstów do pracy grupowej
9Name: libinfinity
95096d19 10Version: 0.6.6
7be8c947
JB
11Release: 1
12License: LGPL v2+
13Group: Libraries
14Source0: http://releases.0x539.de/libinfinity/%{name}-%{version}.tar.gz
95096d19 15# Source0-md5: c65f9f13f17afb4db2ec8cfaf5f01ce5
7be8c947
JB
16Patch0: %{name}-link.patch
17URL: http://gobby.0x539.de/
18BuildRequires: autoconf >= 2.60
19BuildRequires: automake
20BuildRequires: avahi-devel >= 0.6
21BuildRequires: gettext-tools
22BuildRequires: glib2-devel >= 1:2.16
23BuildRequires: gnutls-devel >= 2.12.0
24BuildRequires: gsasl-devel >= 0.2.21
25%{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12}
26%{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0}
27BuildRequires: gtk-doc >= 1.4
28BuildRequires: libdaemon-devel
29BuildRequires: libtool
30BuildRequires: libxml2-devel >= 2.0
31BuildRequires: pam-devel
32BuildRequires: pkgconfig
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
36libinfinity is library to build collaborative text editors. Changes to
37the text buffers are synced to all other clients over a central
38server. Even though a central server is involved, the local user sees
39his changes applied instantly and the merging is done on the
40individual clients.
41
42%description -l pl.UTF-8
43libinfinity to biblioteka do tworzenia edytorów tekstu obsługujących
44pracę grupową. Zmiany w buforach tekstu są synchronizowane z
45pozostałymi klientami poprzez serwer centralny. Mimo wykorzystania
46serwera centralnego, lokalny użytkownik widzi zmiany naniesione
47natychmiast, a łączenie jest wykonywane po stronie poszczególnych
48klientów.
49
50%package devel
51Summary: Header files for core Infinote libraries
52Summary(pl.UTF-8): Pliki nagłówkowe podstawowych bibliotek Infinote
53Group: Development/Libraries
54Requires: %{name} = %{version}-%{release}
55Requires: glib2-devel >= 1:2.16
56Requires: gnutls-devel >= 2.12.0
57Requires: gsasl-devel >= 0.2.21
58Requires: libxml2-devel >= 2.0
59
60%description devel
61Header files for core Infinote libraries.
62
63%description devel -l pl.UTF-8
64Pliki nagłówkowe podstawowych bibliotek Infinote.
65
66%package static
67Summary: Static core Infinote libraries
68Summary(pl.UTF-8): Statyczne biblioteki podstawowe Infinote
69Group: Development/Libraries
70Requires: %{name}-devel = %{version}-%{release}
71
72%description static
73Static core Infinote libraries.
74
75%description static -l pl.UTF-8
76Statyczne biblioteki podstawowe Infinote.
77
78%package apidocs
79Summary: API documentation for Infinote libraries
80Summary(pl.UTF-8): Dokumentacja API bibliotek Infinote
81Group: Documentation
82
83%description apidocs
84API documentation for Infinote libraries.
85
86%description apidocs -l pl.UTF-8
87Dokumentacja API bibliotek Infinote.
88
89%package gtk
90Summary: Infinote GTK+ 2 UI libraries
91Summary(pl.UTF-8): Biblioteki Infinote interfejsu użytkownika GTK+ 2
92Group: X11/Libraries
93Requires: %{name} = %{version}-%{release}
94Requires: gtk+2 >= 2:2.12
95
96%description gtk
97Infinote GTK+ 2 UI libraries.
98
99%description gtk -l pl.UTF-8
100Biblioteki Infinote interfejsu użytkownika GTK+ 2.
101
102%package gtk-devel
103Summary: Header files for Infinote GTK+ 2 libraries
104Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Infinote GTK+ 2
105Group: X11/Development/Libraries
106Requires: %{name}-devel = %{version}-%{release}
107Requires: %{name}-gtk = %{version}-%{release}
108Requires: gtk+2-devel >= 2:2.12
109
110%description gtk-devel
111Header files for Infinote GTK+ 2 libraries.
112
113%description gtk-devel -l pl.UTF-8
114Pliki nagłówkowe bibliotek Infinote GTK+ 2.
115
116%package gtk-static
117Summary: Static Infinote GTK+ 2 libraries
118Summary(pl.UTF-8): Statyczne biblioteki Infinote GTK+ 2
119Group: X11/Development/Libraries
120Requires: %{name}-gtk-devel = %{version}-%{release}
121
122%description gtk-static
123Static Infinote GTK+ 2 libraries.
124
125%description gtk-static -l pl.UTF-8
126Statyczne biblioteki Infinote GTK+ 2.
127
128%package gtk3
129Summary: Infinote GTK+ 3 UI libraries
130Summary(pl.UTF-8): Biblioteki Infinote interfejsu użytkownika GTK+ 3
131Group: X11/Libraries
132Requires: %{name} = %{version}-%{release}
133Requires: gtk+3 >= 3.0
134
135%description gtk3
136Infinote GTK+ 3 UI libraries.
137
138%description gtk3 -l pl.UTF-8
139Biblioteki Infinote interfejsu użytkownika GTK+ 3.
140
141%package gtk3-devel
142Summary: Header files for Infinote GTK+ 3 libraries
143Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Infinote GTK+ 3
144Group: X11/Development/Libraries
145Requires: %{name}-devel = %{version}-%{release}
146Requires: %{name}-gtk3 = %{version}-%{release}
147Requires: gtk+3-devel >= 3.0
148
149%description gtk3-devel
150Header files for Infinote GTK+ 3 libraries.
151
152%description gtk3-devel -l pl.UTF-8
153Pliki nagłówkowe bibliotek Infinote GTK+ 3.
154
155%package gtk3-static
156Summary: Static Infinote GTK+ 3 libraries
157Summary(pl.UTF-8): Statyczne biblioteki Infinote GTK+ 3
158Group: X11/Development/Libraries
159Requires: %{name}-gtk3-devel = %{version}-%{release}
160
161%description gtk3-static
162Static Infinote GTK+ 3 libraries.
163
164%description gtk3-static -l pl.UTF-8
165Statyczne 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}
176for d in %{?with_gtk2:gtk2} %{?with_gtk3:gtk3} ; do
177install -d build-${d}
178cd 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}
185cd ..
186done
187
188%install
189rm -rf $RPM_BUILD_ROOT
190
191for d in %{?with_gtk2:gtk2} %{?with_gtk3:gtk3} ; do
192%{__make} -C build-${d} install \
193 DESTDIR=$RPM_BUILD_ROOT
194done
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
205rm -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
This page took 0.116397 seconds and 4 git commands to generate.