]>
Commit | Line | Data |
---|---|---|
f05f634e | 1 | # TODO: switch to mbledtls when 2.x is supported (mbed_ssl_init instead of ssl_init) |
ff5ec0a1 JB |
2 | # |
3 | # Conditional build: | |
4 | %bcond_without static_libs # static library | |
5 | # | |
6 | Summary: Open source implementation of ZRTP keys exchange protocol | |
7 | Summary(pl.UTF-8): Mająca otwarte źródła implementacja protokołu wymiany kluczy ZRTP | |
8 | Name: bzrtp | |
f05f634e | 9 | Version: 1.0.3 |
ff5ec0a1 JB |
10 | Release: 1 |
11 | License: GPL v2+ | |
12 | Group: Libraries | |
13 | Source0: http://linphone.org/releases/sources/bzrtp/%{name}-%{version}.tar.gz | |
f05f634e | 14 | # Source0-md5: 0d0c694e114d85420d351b94f0e9d867 |
ff5ec0a1 JB |
15 | URL: http://www.linphone.org/ |
16 | BuildRequires: CUnit | |
17 | BuildRequires: autoconf >= 2.63 | |
18 | BuildRequires: automake | |
19 | BuildRequires: libtool >= 2:2 | |
20 | BuildRequires: libxml2-devel >= 2.0 | |
21 | BuildRequires: polarssl-devel | |
22 | BuildRequires: pkgconfig | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | bzrtp is an opensource implementation of ZRTP keys exchange protocol. | |
27 | The library written in C 89 is fully portable and can be executed on | |
28 | many platforms including both ARM processor and x86. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | bzrtp to mająca otwarte źródła implementacja protokołu wymiany kluczy | |
32 | ZRTP. Napisana w C 89 biblioteka jest w pełni przenośna i może być | |
33 | wykonywana na wielu platformach, w tym ARM oraz x86. | |
34 | ||
35 | %package devel | |
36 | Summary: Header file for bzrtp library | |
37 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki bzrtp | |
38 | Group: Development/Libraries | |
39 | Requires: %{name} = %{version}-%{release} | |
40 | ||
41 | %description devel | |
42 | Header file for bzrtp library. | |
43 | ||
44 | %description devel -l pl.UTF-8 | |
45 | Plik nagłówkowy biblioteki bzrtp. | |
46 | ||
47 | %package static | |
48 | Summary: Static bzrtp library | |
49 | Summary(pl.UTF-8): Statyczna biblioteka bzrtp | |
50 | Group: Development/Libraries | |
51 | Requires: %{name}-devel = %{version}-%{release} | |
52 | ||
53 | %description static | |
54 | Static bzrtp library. | |
55 | ||
56 | %description static -l pl.UTF-8 | |
57 | Statyczna biblioteka bzrtp. | |
58 | ||
59 | %prep | |
60 | %setup -q | |
61 | ||
62 | %build | |
63 | # rebuild ac/am/lt for as-needed to work | |
64 | %{__libtoolize} | |
65 | %{__aclocal} -I m4 | |
66 | %{__autoconf} | |
67 | %{__automake} | |
68 | %configure \ | |
69 | --disable-silent-rules \ | |
70 | %{?with_static_libs:--enable-static} | |
71 | ||
72 | %{__make} | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %{__make} install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
80 | # obsoleted by pkg-config | |
81 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbzrtp.la | |
82 | ||
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %post -p /sbin/ldconfig | |
87 | %postun -p /sbin/ldconfig | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
91 | %doc AUTHORS NEWS README | |
92 | %attr(755,root,root) %{_libdir}/libbzrtp.so.*.*.* | |
93 | %attr(755,root,root) %ghost %{_libdir}/libbzrtp.so.0 | |
94 | ||
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
97 | %attr(755,root,root) %{_libdir}/libbzrtp.so | |
98 | %{_includedir}/bzrtp | |
99 | %{_pkgconfigdir}/libbzrtp.pc | |
100 | ||
101 | %if %{with static_libs} | |
102 | %files static | |
103 | %defattr(644,root,root,755) | |
104 | %{_libdir}/libbzrtp.a | |
105 | %endif |