]> git.pld-linux.org Git - packages/OSPToolkit.git/blob - OSPToolkit.spec
62d80623588be5f4110aed52379a430b36fd66c8
[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:        3.5.3
5 Release:        3
6 License:        BSD
7 Group:          Libraries
8 Source0:        http://dl.sourceforge.net/osp-toolkit/%{name}-%{version}.tar.gz
9 # Source0-md5:  af6d83298596d8952d785e8dcb30c561
10 Patch0:         sharedlib.patch
11 URL:            http://www.transnexus.com/OSP%20Toolkit/OSP%20Toolkit.htm
12 BuildRequires:  openssl-devel
13 BuildRequires:  sed >= 4.0
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
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.
31
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
56 %prep
57 %setup -q -n TK-%(echo %{version} | tr . _)-20091006
58 %patch0 -p1
59 %{__sed} -i -e 's,\$(INSTALL_PATH)/lib,$(INSTALL_PATH)/%{_lib},' src/Makefile
60
61 %build
62 %{__make} -C src build \
63         CC="%{__cc}" \
64         LDFLAGS="%{rpmldflags}" \
65         DFLAGS="%{rpmcflags}"
66
67 %{__make} -C enroll linux \
68         CC="%{__cc}" \
69         DFLAGS="%{rpmcflags}"
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir}}
74
75 %{__make} -C src install \
76         INSTALL_PATH=$RPM_BUILD_ROOT%{_prefix}
77
78 chmod a+x $RPM_BUILD_ROOT%{_libdir}/lib*so*
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %post   -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
85
86 %files
87 %defattr(644,root,root,755)
88 %doc *.txt
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
95 %{_includedir}/osp
96
97 %files static
98 %defattr(644,root,root,755)
99 %{_libdir}/libosptk.a
This page took 0.101369 seconds and 2 git commands to generate.