]>
Commit | Line | Data |
---|---|---|
65718279 | 1 | Summary: Implementation of the ETSI OSP VoIP Peering protocol |
b116fe0c | 2 | Summary(pl.UTF-8): Implementacja protokołu ETSI OSP VoIP Peering |
65718279 | 3 | Name: OSPToolkit |
aa7ae6bf | 4 | Version: 4.2.0 |
394f3cb3 | 5 | Release: 2 |
65718279 AM |
6 | License: BSD |
7 | Group: Libraries | |
0210ed07 | 8 | Source0: http://downloads.sourceforge.net/osp-toolkit/%{name}-%{version}.tar.gz |
aa7ae6bf | 9 | # Source0-md5: edb0ac6d84cf6da0f0406f3d356b6204 |
621d2dac | 10 | Patch0: sharedlib.patch |
aa7ae6bf | 11 | URL: http://www.freerouteserver.com/index.php/osp-toolkit |
65718279 | 12 | BuildRequires: openssl-devel |
621d2dac | 13 | BuildRequires: sed >= 4.0 |
65718279 AM |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
17 | The OSP Toolkit is a complete development kit for software developers | |
18 | who want to implement the client side of the European | |
19 | Telecommunication Standards Institute's (ETSI) OSP standard for secure | |
20 | VoIP peering. The OSP Toolkit includes source code written in ANSI C, | |
21 | test tools and extensive documentation on how to implement the OSP | |
b116fe0c JB |
22 | peering protocol standard. |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | OSP Toolkit to kompletny zestaw programistyczny dla programistów | |
26 | implementujących kliencką stronę standardu ETSI (European | |
27 | Telecommunication Standards Institute) OSP dla bezpiecznej komunikacji | |
28 | VoIP. OSP Toolkit zawiera kod źródłowy w ANSI C, narzędzia testowe | |
29 | oraz szczegółową dokumentację jak zaimplementować standard OSP | |
30 | Peering. | |
65718279 | 31 | |
621d2dac ER |
32 | %package devel |
33 | Summary: Header files for OSP Toolkit library | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OSP Toolkit | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | ||
38 | %description devel | |
39 | Header files for OSP Toolkit library. | |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Pliki nagłówkowe biblioteki OSP Toolkit. | |
43 | ||
44 | %package static | |
45 | Summary: Static OSP Toolkit library | |
46 | Summary(pl.UTF-8): Statyczna biblioteka OSP Toolkit | |
47 | Group: Development/Libraries | |
48 | Requires: %{name}-devel = %{version}-%{release} | |
49 | ||
50 | %description static | |
51 | Static OSP Toolkit library. | |
52 | ||
53 | %description static -l pl.UTF-8 | |
54 | Statyczna biblioteka OSP Toolkit. | |
55 | ||
65718279 | 56 | %prep |
aa7ae6bf | 57 | %setup -q -n TK-%(echo %{version} | tr . _)-20131014 |
621d2dac ER |
58 | %patch0 -p1 |
59 | %{__sed} -i -e 's,\$(INSTALL_PATH)/lib,$(INSTALL_PATH)/%{_lib},' src/Makefile | |
65718279 AM |
60 | |
61 | %build | |
62 | %{__make} -C src build \ | |
63 | CC="%{__cc}" \ | |
621d2dac | 64 | LDFLAGS="%{rpmldflags}" \ |
c23a8c7f | 65 | DFLAGS="%{rpmcflags} %{rpmcppflags}" |
621d2dac ER |
66 | |
67 | %{__make} -C enroll linux \ | |
68 | CC="%{__cc}" \ | |
c23a8c7f | 69 | DFLAGS="%{rpmcflags} %{rpmcppflags}" |
65718279 AM |
70 | |
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
65718279 AM |
73 | install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir}} |
74 | ||
621d2dac ER |
75 | %{__make} -C src install \ |
76 | INSTALL_PATH=$RPM_BUILD_ROOT%{_prefix} | |
77 | ||
78 | chmod a+x $RPM_BUILD_ROOT%{_libdir}/lib*so* | |
65718279 AM |
79 | |
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
621d2dac ER |
83 | %post -p /sbin/ldconfig |
84 | %postun -p /sbin/ldconfig | |
85 | ||
65718279 AM |
86 | %files |
87 | %defattr(644,root,root,755) | |
88 | %doc *.txt | |
621d2dac ER |
89 | %attr(755,root,root) %{_libdir}/libosptk.so.*.* |
90 | %attr(755,root,root) %ghost %{_libdir}/libosptk.so.0 | |
91 | ||
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
94 | %{_libdir}/libosptk.so | |
65718279 | 95 | %{_includedir}/osp |
621d2dac ER |
96 | |
97 | %files static | |
98 | %defattr(644,root,root,755) | |
99 | %{_libdir}/libosptk.a |