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