]> git.pld-linux.org Git - packages/ortp.git/blob - ortp.spec
0db550bdd3ad3a5821415d69e2b1fd2fc7aeaa73
[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:        4.4.0
9 Release:        1
10 License:        GPL v3+
11 Group:          Libraries
12 #Source0Download: https://gitlab.linphone.org/BC/public/ortp/tags
13 Source0:        https://gitlab.linphone.org/BC/public/ortp/-/archive/%{version}/%{name}-%{version}.tar.bz2
14 # Source0-md5:  33df5f50a6ce40cc114c1393a30959b7
15 Patch0:         %{name}-am.patch
16 URL:            http://www.linphone.org/technical-corner/ortp
17 BuildRequires:  autoconf >= 2.50
18 BuildRequires:  automake
19 BuildRequires:  bctoolbox-devel
20 BuildRequires:  doxygen
21 BuildRequires:  libstdc++-devel
22 BuildRequires:  libtool >= 2:2.0
23 BuildRequires:  openssl-devel
24 BuildRequires:  pkgconfig
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         specflags       -fno-strict-aliasing
28
29 %description
30 ortp is a library for handling RTP protocol (RFC 3550).
31
32 %description -l pl.UTF-8
33 ortp to biblioteka obsługująca protokół RTP (RFC 3550).
34
35 %package devel
36 Summary:        Header files to develop applications using ortp
37 Summary(pl.UTF-8):      Pliki nagłówkowe do tworzenia aplikacji używających ortp
38 Group:          Development/Libraries
39 Requires:       %{name} = %{version}-%{release}
40 Requires:       libstdc++-devel
41 Requires:       openssl-devel
42
43 %description devel
44 Header files for the ortp library.
45
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe dla biblioteki ortp.
48
49 %package static
50 Summary:        Static ortp library
51 Summary(pl.UTF-8):      Statyczna biblioteka ortp
52 Group:          Development/Libraries
53 Requires:       %{name}-devel = %{version}-%{release}
54
55 %description static
56 Static ortp library.
57
58 %description static -l pl.UTF-8
59 Statyczna biblioteka ortp.
60
61 %package apidocs
62 Summary:        API documentation for ortp library
63 Summary(pl.UTF-8):      Dokumentacja API biblioteki ortp
64 Group:          Documentation
65 %if "%{_rpmversion}" >= "4.6"
66 BuildArch:      noarch
67 %endif
68
69 %description apidocs
70 API documentation for ortp library.
71
72 %description apidocs -l pl.UTF-8
73 Dokumentacja API biblioteki ortp.
74
75 %prep
76 %setup -q
77 %patch0 -p1
78
79 %build
80 %{__libtoolize}
81 %{__aclocal} -I m4
82 %{__autoconf}
83 %{__autoheader}
84 %{__automake}
85 %configure \
86         --disable-silent-rules \
87         --disable-strict \
88 %if "%{_lib}" == "lib64"
89         --enable-mode64bit=yes \
90 %else
91         --enable-mode64bit=no \
92 %endif
93         --enable-ssl-hmac \
94         %{?with_static_libs:--enable-static}
95
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100
101 %{__make} install \
102         DESTDIR=$RPM_BUILD_ROOT
103
104 # obsoleted by pkg-config
105 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libortp.la
106
107 # packaged as %doc
108 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/ortp-1.0.1
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113 %post   -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
115
116 %files
117 %defattr(644,root,root,755)
118 %doc AUTHORS.md CHANGELOG.md README.md
119 %attr(755,root,root) %{_libdir}/libortp.so.*.*.*
120 %attr(755,root,root) %ghost %{_libdir}/libortp.so.13
121
122 %files devel
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libortp.so
125 %{_includedir}/ortp
126 %{_pkgconfigdir}/ortp.pc
127
128 %if %{with static_libs}
129 %files static
130 %defattr(644,root,root,755)
131 %{_libdir}/libortp.a
132 %endif
133
134 %files apidocs
135 %defattr(644,root,root,755)
136 %doc doc/html/*
This page took 0.058894 seconds and 2 git commands to generate.