]> git.pld-linux.org Git - packages/ortp.git/blob - ortp.spec
c705cd5a90766730dcc04bda2d3419efa71ca5c3
[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:        1.0.2
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
12 Source0:        https://linphone.org/releases/sources/ortp/%{name}-%{version}.tar.gz
13 # Source0-md5:  82629e99befa578341e0bdc225924135
14 URL:            http://www.linphone.org/eng/documentation/dev/ortp.html
15 BuildRequires:  autoconf >= 2.50
16 BuildRequires:  automake
17 BuildRequires:  bctoolbox-devel
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 %package apidocs
58 Summary:        API documentation for ortp library
59 Summary(pl.UTF-8):      Dokumentacja API biblioteki ortp
60 Group:          Documentation
61 %if "%{_rpmversion}" >= "5"
62 BuildArch:      noarch
63 %endif
64
65 %description apidocs
66 API documentation for ortp library.
67
68 %description apidocs -l pl.UTF-8
69 Dokumentacja API biblioteki ortp.
70
71 %prep
72 %setup -q -n %{name}-%{version}-0
73
74 %build
75 %{__libtoolize}
76 %{__aclocal} -I m4
77 %{__autoconf}
78 %{__autoheader}
79 %{__automake}
80 %configure \
81         --disable-silent-rules \
82         --disable-strict \
83 %if "%{_lib}" == "lib64"
84         --enable-mode64bit=yes \
85 %else
86         --enable-mode64bit=no \
87 %endif
88         --enable-ssl-hmac \
89         %{?with_static_libs:--enable-static}
90
91 %{__make}
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 # packaged as %doc
100 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/ortp-1.0.1
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %post   -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
107
108 %files
109 %defattr(644,root,root,755)
110 %doc AUTHORS ChangeLog NEWS README.md
111 %attr(755,root,root) %{_libdir}/libortp.so.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libortp.so.13
113
114 %files devel
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/libortp.so
117 %{_libdir}/libortp.la
118 %{_includedir}/ortp
119 %{_pkgconfigdir}/ortp.pc
120
121 %if %{with static_libs}
122 %files static
123 %defattr(644,root,root,755)
124 %{_libdir}/libortp.a
125 %endif
126
127 %files apidocs
128 %defattr(644,root,root,755)
129 %doc doc/html/*
This page took 0.039836 seconds and 2 git commands to generate.