1 |
%define major 3 |
2 |
%define libname %mklibname gadu %{major} |
3 |
%define develname %mklibname gadu -d |
4 |
|
5 |
Name: libgadu |
6 |
Version: 1.12.2 |
7 |
Release: %mkrel 4 |
8 |
Summary: A Gadu-gadu protocol compatible library |
9 |
License: LGPLv2+ |
10 |
Group: Networking/Instant messaging |
11 |
Url: https://libgadu.net/ |
12 |
Source0: https://github.com/wojtekka/libgadu/releases/download/%{version}/%{name}-%{version}.tar.gz |
13 |
Patch0: libgadu-1.12.2-mga-multiple-defs.patch |
14 |
BuildRequires: pkgconfig(gnutls) |
15 |
BuildRequires: pkgconfig(libcurl) |
16 |
BuildRequires: doxygen |
17 |
BuildRequires: pkgconfig(expat) |
18 |
BuildRequires: gsm-devel |
19 |
BuildRequires: pkgconfig(libxml-2.0) |
20 |
BuildRequires: pkgconfig(libprotobuf-c) |
21 |
BuildRequires: pkgconfig(speex) |
22 |
BuildRequires: pkgconfig(zlib) |
23 |
|
24 |
%description |
25 |
The libgadu is intended to make it easy to add Gadu-Gadu communication |
26 |
support to your software. |
27 |
|
28 |
|
29 |
%package -n %{libname} |
30 |
Summary: A Gadu-gadu protocol compatible library |
31 |
Group: Networking/Instant messaging |
32 |
|
33 |
%description -n %{libname} |
34 |
The libgadu is intended to make it easy to add Gadu-Gadu communication |
35 |
support to your software. |
36 |
|
37 |
|
38 |
%package -n %{develname} |
39 |
Summary: Development files for libgadu library |
40 |
Group: Development/C |
41 |
Provides: %{name}-devel = %{version}-%{release} |
42 |
Provides: gadu-devel = %{version}-%{release} |
43 |
Requires: %{libname} = %{version}-%{release} |
44 |
Obsoletes: %{mklibname gadu 3 -d} < %{version}-%{release} |
45 |
Obsoletes: %{mklibname gadu -s -d} < %{version}-%{release} |
46 |
|
47 |
%description -n %{develname} |
48 |
Development files for libgadu library. |
49 |
|
50 |
|
51 |
%prep |
52 |
%autosetup -p1 |
53 |
touch packets.proto |
54 |
|
55 |
%build |
56 |
%configure \ |
57 |
--disable-static \ |
58 |
--with-pthread \ |
59 |
--without-bind \ |
60 |
--without-openssl \ |
61 |
--with-c99-vsnprintf |
62 |
|
63 |
./protobufgen.sh |
64 |
%make_build |
65 |
|
66 |
%check |
67 |
make check |
68 |
|
69 |
%install |
70 |
%make_install |
71 |
|
72 |
# don't ship .la |
73 |
rm -f %{buildroot}%{_libdir}/%{name}.la |
74 |
|
75 |
%files -n %{libname} |
76 |
%{_libdir}/%{name}.so.%{major}{,.*} |
77 |
|
78 |
%files -n %{develname} |
79 |
%{_includedir}/%{name}.h |
80 |
%{_libdir}/%{name}.so |
81 |
%{_libdir}/pkgconfig/%{name}.pc |