]>
Commit | Line | Data |
---|---|---|
3d9fc0ba JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without pthread # POSIX threads support | |
1cf8ca0d | 4 | %bcond_with openssl # use OpenSSL instead of GnuTLS |
3d9fc0ba | 5 | # |
1af3612e | 6 | Summary: libgadu library |
f26f7e48 ER |
7 | Summary(es.UTF-8): Biblioteca libgadu |
8 | Summary(pl.UTF-8): Biblioteka libgadu | |
1af3612e | 9 | Name: libgadu |
63ff3ad5 | 10 | Version: 1.12.0 |
fc612e50 | 11 | Release: 1 |
1af3612e TP |
12 | Epoch: 4 |
13 | License: LGPL v2.1 | |
14 | Group: Libraries | |
63ff3ad5 WF |
15 | Source0: http://github.com/wojtekka/libgadu/releases/download/%{version}/%{name}-%{version}.tar.gz |
16 | # Source0-md5: e4569a0ed26136c4634fa8c4013910e3 | |
1af3612e | 17 | URL: http://toxygen.net/libgadu/ |
41367f7c | 18 | BuildRequires: autoconf >= 2.50 |
1af3612e | 19 | BuildRequires: automake |
1cf8ca0d | 20 | %{!?with_openssl:BuildRequires: gnutls-devel} |
1e98addf | 21 | BuildRequires: libtool |
1cf8ca0d | 22 | %{?with_openssl:BuildRequires: openssl-devel >= 0.9.7d} |
d2a44ef0 | 23 | BuildRequires: pkgconfig |
33e5bd14 | 24 | BuildRequires: zlib-devel |
1af3612e TP |
25 | Obsoletes: libgg |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | libgadu is intended to make it easy to add Gadu-Gadu communication | |
30 | support to your software. | |
31 | ||
9f72441e JR |
32 | %description -l de.UTF-8 |
33 | Mit libgadu ist es Ihnen möglich auf einfache Weise Gadu-Gadu | |
34 | Kommunikations-Unterstützung in Ihre Software einzubinden. | |
1af3612e | 35 | |
9f72441e JR |
36 | %description -l es.UTF-8 |
37 | libgadu está pensada para facilitar añadirle comunicación vía | |
1af3612e TP |
38 | Gadu-Gadu a su software. |
39 | ||
9f72441e JR |
40 | %description -l pl.UTF-8 |
41 | libgadu umożliwia łatwe dodanie do różnych aplikacji komunikacji | |
42 | bazującej na protokole Gadu-Gadu. | |
1af3612e | 43 | |
3d9fc0ba | 44 | %package devel |
1af3612e | 45 | Summary: libgadu development library |
f26f7e48 ER |
46 | Summary(es.UTF-8): Biblioteca de desarrollo de libgadu |
47 | Summary(pl.UTF-8): Część biblioteki libgadu dla programistów | |
1af3612e | 48 | Group: Development/Libraries |
3d9fc0ba | 49 | Requires: %{name} = %{epoch}:%{version}-%{release} |
1cf8ca0d JB |
50 | %{!?with_openssl:Requires: gnutls-devel} |
51 | %{?with_openssl:Requires: openssl-devel} | |
33e5bd14 | 52 | Requires: zlib-devel |
1af3612e TP |
53 | Obsoletes: libgg-devel |
54 | ||
3d9fc0ba | 55 | %description devel |
1af3612e TP |
56 | The libgadu-devel package contains the header files and some |
57 | documentation needed to develop application with libgadu. | |
58 | ||
9f72441e JR |
59 | %description devel -l de.UTF-8 |
60 | Das libgadu-devel Paket enthält Header-Files (Kopfzeilenordner) und | |
61 | die Dokumentation die Sie benötigen um mit libgadu Anwendungen zu | |
1af3612e TP |
62 | entwickeln. |
63 | ||
9f72441e | 64 | %description devel -l es.UTF-8 |
1af3612e | 65 | El paquete libgadu-devel contiene los ficheros de cabecera, juntos con |
9f72441e | 66 | una documentación, necesarios para desarrollar aplicaciones que usar |
1af3612e TP |
67 | libgadu. |
68 | ||
9f72441e JR |
69 | %description devel -l pl.UTF-8 |
70 | Pakiet libgadu-devel zawiera pliki nagłówkowe i dokumentację, | |
71 | potrzebne do kompilowania aplikacji korzystających z libgadu. | |
1af3612e | 72 | |
3d9fc0ba | 73 | %package static |
1af3612e | 74 | Summary: Static libgadu library |
f26f7e48 ER |
75 | Summary(es.UTF-8): Biblioteca libgadu estática |
76 | Summary(pl.UTF-8): Statyczna biblioteka libgadu | |
1af3612e | 77 | Group: Development/Libraries |
3d9fc0ba | 78 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
1af3612e TP |
79 | Obsoletes: libgg-static |
80 | ||
3d9fc0ba | 81 | %description static |
1af3612e TP |
82 | Static libgadu library. |
83 | ||
9f72441e | 84 | %description static -l de.UTF-8 |
1af3612e TP |
85 | Statisches libgadu Archiv. |
86 | ||
9f72441e JR |
87 | %description static -l es.UTF-8 |
88 | Biblioteca libgadu estática. | |
1af3612e | 89 | |
9f72441e | 90 | %description static -l pl.UTF-8 |
1af3612e TP |
91 | Statyczna biblioteka libgadu. |
92 | ||
93 | %prep | |
195d5801 | 94 | %setup -q |
1af3612e TP |
95 | |
96 | %build | |
1e98addf | 97 | %{__libtoolize} |
1af3612e TP |
98 | %{__aclocal} -I m4 |
99 | %{__autoconf} | |
100 | %{__autoheader} | |
101 | %{__automake} | |
102 | %configure \ | |
1cf8ca0d | 103 | --disable-silent-rules \ |
ff3d9877 | 104 | --without-bind \ |
1cf8ca0d | 105 | %{?with_openssl:--without-gnutls} \ |
1af3612e TP |
106 | %if %{with pthread} |
107 | --with-pthread \ | |
108 | %else | |
109 | --without-pthread \ | |
1af3612e | 110 | %endif |
04bfda1d | 111 | |
1af3612e TP |
112 | %{__make} |
113 | ||
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
117 | %{__make} install \ | |
118 | DESTDIR=$RPM_BUILD_ROOT | |
119 | ||
120 | %clean | |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
123 | %post -p /sbin/ldconfig | |
124 | %postun -p /sbin/ldconfig | |
125 | ||
126 | %files | |
127 | %defattr(644,root,root,755) | |
41367f7c | 128 | %doc AUTHORS ChangeLog NEWS README |
ae709be0 | 129 | %attr(755,root,root) %{_libdir}/libgadu.so.*.*.* |
d216da08 | 130 | %attr(755,root,root) %ghost %{_libdir}/libgadu.so.3 |
1af3612e | 131 | |
ec898fd7 | 132 | %files devel |
1af3612e | 133 | %defattr(644,root,root,755) |
1af3612e TP |
134 | %attr(755,root,root) %{_libdir}/libgadu.so |
135 | %{_includedir}/libgadu.h | |
136 | %{_pkgconfigdir}/libgadu.pc | |
ae709be0 | 137 | %{_libdir}/libgadu.la |
1af3612e | 138 | |
ec898fd7 | 139 | %files static |
1af3612e TP |
140 | %defattr(644,root,root,755) |
141 | %{_libdir}/libgadu.a |