]> git.pld-linux.org Git - packages/ortp.git/blob - ortp.spec
- updated to 0.25.0 (note: new soname)
[packages/ortp.git] / ortp.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # Static library
4 #
5 Summary:        RTP/RTCP protocol library
6 Summary(pl.UTF-8):      Biblioteka obsługująca protokół RTP/RTCP
7 Name:           ortp
8 Version:        0.25.0
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
12 Source0:        http://download.savannah.gnu.org/releases/linphone/ortp/sources/%{name}-%{version}.tar.gz
13 # Source0-md5:  f44b4ab2a8de32c19abfa584c4426f76
14 Patch0:         %{name}-libssl-not-required.patch
15 URL:            http://www.linphone.org/eng/documentation/dev/ortp.html
16 BuildRequires:  autoconf >= 2.50
17 BuildRequires:  automake
18 BuildRequires:  doxygen
19 BuildRequires:  libtool >= 2:2.0
20 BuildRequires:  openssl-devel
21 BuildRequires:  pkgconfig
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         specflags       -fno-strict-aliasing
25
26 %description
27 ortp is a library for handling RTP protocol (RFC 3550).
28
29 %description -l pl.UTF-8
30 ortp to biblioteka obsługująca protokół RTP (RFC 3550).
31
32 %package devel
33 Summary:        Header files to develop applications using ortp
34 Summary(pl.UTF-8):      Pliki nagłówkowe do tworzenia aplikacji używających ortp
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37 Requires:       openssl-devel
38
39 %description devel
40 Header files for the ortp library.
41
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe dla biblioteki ortp.
44
45 %package static
46 Summary:        Static ortp library
47 Summary(pl.UTF-8):      Statyczna biblioteka ortp
48 Group:          Development/Libraries
49 Requires:       %{name}-devel = %{version}-%{release}
50
51 %description static
52 Static ortp library.
53
54 %description static -l pl.UTF-8
55 Statyczna biblioteka ortp.
56
57 %prep
58 %setup -q
59 %patch0 -p1
60
61 %build
62 %{__libtoolize}
63 %{__aclocal}
64 %{__autoconf}
65 %{__autoheader}
66 %{__automake}
67 %configure \
68         --disable-silent-rules \
69         --disable-strict \
70 %if "%{_lib}" == "lib64"
71         --enable-mode64bit=yes \
72 %else
73         --enable-mode64bit=no \
74 %endif
75         --enable-ssl-hmac \
76         %{?with_static_libs:--enable-static}
77
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} install \
84         DESTDIR=$RPM_BUILD_ROOT
85
86 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post   -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
93
94 %files
95 %defattr(644,root,root,755)
96 %doc AUTHORS ChangeLog NEWS README TODO
97 %attr(755,root,root) %{_libdir}/libortp.so.*.*.*
98 %attr(755,root,root) %ghost %{_libdir}/libortp.so.10
99
100 %files devel
101 %defattr(644,root,root,755)
102 %doc doc/html/*
103 %attr(755,root,root) %{_libdir}/libortp.so
104 %{_libdir}/libortp.la
105 %{_includedir}/ortp
106 %{_pkgconfigdir}/ortp.pc
107
108 %if %{with static_libs}
109 %files static
110 %defattr(644,root,root,755)
111 %{_libdir}/libortp.a
112 %endif
This page took 0.087845 seconds and 4 git commands to generate.