]> git.pld-linux.org Git - packages/ortp.git/blob - ortp.spec
fc11424ae4151538f8c61e68e3eed6bb15d33c9f
[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 BuildArch:      noarch
66
67 %description apidocs
68 API documentation for ortp library.
69
70 %description apidocs -l pl.UTF-8
71 Dokumentacja API biblioteki ortp.
72
73 %prep
74 %setup -q
75 %patch0 -p1
76
77 %build
78 %{__libtoolize}
79 %{__aclocal} -I m4
80 %{__autoconf}
81 %{__autoheader}
82 %{__automake}
83 %configure \
84         --disable-silent-rules \
85         --disable-strict \
86 %if "%{_lib}" == "lib64"
87         --enable-mode64bit=yes \
88 %else
89         --enable-mode64bit=no \
90 %endif
91         --enable-ssl-hmac \
92         %{?with_static_libs:--enable-static}
93
94 %{__make}
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98
99 %{__make} install \
100         DESTDIR=$RPM_BUILD_ROOT
101
102 # obsoleted by pkg-config
103 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libortp.la
104
105 # packaged as %doc
106 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/ortp-1.0.1
107
108 %clean
109 rm -rf $RPM_BUILD_ROOT
110
111 %post   -p /sbin/ldconfig
112 %postun -p /sbin/ldconfig
113
114 %files
115 %defattr(644,root,root,755)
116 %doc AUTHORS.md CHANGELOG.md README.md
117 %attr(755,root,root) %{_libdir}/libortp.so.*.*.*
118 %attr(755,root,root) %ghost %{_libdir}/libortp.so.13
119
120 %files devel
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_libdir}/libortp.so
123 %{_includedir}/ortp
124 %{_pkgconfigdir}/ortp.pc
125
126 %if %{with static_libs}
127 %files static
128 %defattr(644,root,root,755)
129 %{_libdir}/libortp.a
130 %endif
131
132 %files apidocs
133 %defattr(644,root,root,755)
134 %doc doc/html/*
This page took 0.057025 seconds and 2 git commands to generate.