]>
Commit | Line | Data |
---|---|---|
fbbf7eeb JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
d0acf362 | 4 | |
57c2b857 JB |
5 | Summary: The GLib ICE (Interactive Connectivity Establishment) implementation |
6 | Summary(pl.UTF-8): Implementacja ICE (Interactive Connectivity Establishment) oparta o GLib | |
891d5942 | 7 | Name: libnice |
103f479d | 8 | Version: 0.1.18 |
8d82fceb | 9 | Release: 1 |
57c2b857 | 10 | License: LGPL v2.1 or MPL v1.1 |
891d5942 | 11 | Group: Libraries |
00b4499c | 12 | #Source0Download: https://libnice.freedesktop.org/#download |
3b65c444 | 13 | Source0: https://libnice.freedesktop.org/releases/%{name}-%{version}.tar.gz |
103f479d | 14 | # Source0-md5: 408482fa4bab7c6b884b0fb9ad57a038 |
3b65c444 | 15 | URL: https://libnice.freedesktop.org/ |
6cb07c26 | 16 | BuildRequires: docbook-dtd412-xml |
00b4499c | 17 | BuildRequires: glib2-devel >= 1:2.54 |
11fa0e8a | 18 | BuildRequires: gnutls-devel >= 2.12 |
1cba38b7 | 19 | BuildRequires: gobject-introspection-devel >= 1.30.0 |
51cab71a | 20 | BuildRequires: gstreamer-devel >= 1.0.0 |
3b65c444 | 21 | BuildRequires: gtk-doc >= 1.10 |
1cba38b7 | 22 | BuildRequires: gupnp-igd-devel >= 0.2.4 |
103f479d JB |
23 | BuildRequires: meson >= 0.52 |
24 | BuildRequires: ninja >= 1.5 | |
891d5942 | 25 | BuildRequires: pkgconfig |
103f479d JB |
26 | BuildRequires: rpm-build >= 4.6 |
27 | BuildRequires: rpmbuild(macros) >= 1.736 | |
00b4499c | 28 | Requires: glib2 >= 1:2.54 |
45882cf8 | 29 | Requires: gnutls-libs >= 2.12 |
1cba38b7 | 30 | Requires: gupnp-igd >= 0.2.4 |
891d5942 MB |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | libnice is an implementation of the IETF's draft Interactive | |
35 | Connectivity Establishment standard (ICE). It provides GLib-based | |
36 | library and GStreamer elements. | |
37 | ||
38 | ICE is useful for applications that want to establish peer-to-peer UDP | |
39 | data streams. It automates the process of traversing NATs and provides | |
40 | security against some attacks. | |
41 | ||
42 | Existing standards that use ICE include the Session Initiation | |
43 | Protocol (SIP) and Jingle, XMPP extension for audio/video calls. | |
44 | ||
57c2b857 JB |
45 | %description -l pl.UTF-8 |
46 | libnice to implementacja standardu ICE (Interactive Connectivity | |
d0acf362 ER |
47 | Establishment) wg szkicu IETF. Udostępnia bibliotekę opartą na GLibie |
48 | oraz elementy GStreamera. | |
57c2b857 JB |
49 | |
50 | ICE służy aplikacjom chcącym tworzyć strumienie danych UDP | |
51 | peer-to-peer. Automatyzuje proces przechodzenia przez NAT i | |
52 | zabezpiecza przed pewnymi atakami. | |
53 | ||
54 | Istniejące standardy wykorzystujące ICE obejmują protokoły SIP | |
55 | (Session Initiation Protocol) oraz Jingle (rozszerzenie XMPP dla | |
56 | połączeń audio/video). | |
57 | ||
891d5942 MB |
58 | %package devel |
59 | Summary: Header files for libnice library | |
60 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnice | |
61 | Group: Development/Libraries | |
62 | Requires: %{name} = %{version}-%{release} | |
00b4499c | 63 | Requires: glib2-devel >= 1:2.54 |
45882cf8 | 64 | Requires: gnutls-devel >= 2.12 |
1cba38b7 | 65 | Requires: gupnp-igd-devel >= 0.2.4 |
891d5942 MB |
66 | |
67 | %description devel | |
68 | Header files for libnice library. | |
69 | ||
70 | %description devel -l pl.UTF-8 | |
71 | Pliki nagłówkowe biblioteki libnice. | |
72 | ||
73 | %package static | |
74 | Summary: Static libnice library | |
75 | Summary(pl.UTF-8): Statyczna biblioteka libnice | |
76 | Group: Development/Libraries | |
77 | Requires: %{name}-devel = %{version}-%{release} | |
78 | ||
79 | %description static | |
80 | Static libnice library. | |
81 | ||
82 | %description static -l pl.UTF-8 | |
83 | Statyczna biblioteka libnice. | |
84 | ||
85 | %package apidocs | |
86 | Summary: libnice library API documentation | |
87 | Summary(pl.UTF-8): Dokumentacja API biblioteki libnice | |
88 | Group: Documentation | |
89 | Requires: gtk-doc-common | |
d0acf362 | 90 | BuildArch: noarch |
891d5942 MB |
91 | |
92 | %description apidocs | |
93 | libnice library API documentation. | |
94 | ||
95 | %description apidocs -l pl.UTF-8 | |
96 | Dokumentacja API biblioteki libnice. | |
97 | ||
f6969208 JB |
98 | %package -n gstreamer-nice |
99 | Summary: ICE source plugin for GStreamer | |
100 | Summary(pl.UTF-8): Wtyczka źródła ICE dla GStreamera | |
101 | Group: Libraries | |
102 | Requires: %{name} = %{version}-%{release} | |
51cab71a | 103 | Requires: gstreamer >= 1.0.0 |
f6969208 JB |
104 | |
105 | %description -n gstreamer-nice | |
106 | ICE source plugin for GStreamer. | |
107 | ||
108 | %description -n gstreamer-nice -l pl.UTF-8 | |
109 | Wtyczka źródła ICE dla GStreamera. | |
110 | ||
891d5942 MB |
111 | %prep |
112 | %setup -q | |
113 | ||
114 | %build | |
103f479d JB |
115 | %meson build \ |
116 | %{!?with_static_libs:--default-library=shared} \ | |
117 | -Dgtk_doc=enabled | |
118 | ||
119 | %ninja_build -C build | |
891d5942 MB |
120 | |
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
103f479d | 124 | %ninja_install -C build |
891d5942 | 125 | |
fbbf7eeb | 126 | %if %{with static_libs} |
103f479d JB |
127 | # no static gst plugin |
128 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/libgstnice.a | |
129 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/pkgconfig/gstnice.pc | |
fbbf7eeb | 130 | %endif |
891d5942 MB |
131 | |
132 | %clean | |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
135 | %post -p /sbin/ldconfig | |
136 | %postun -p /sbin/ldconfig | |
137 | ||
138 | %files | |
139 | %defattr(644,root,root,755) | |
103f479d | 140 | %doc AUTHORS COPYING NEWS README TODO |
891d5942 MB |
141 | %attr(755,root,root) %{_bindir}/stunbdc |
142 | %attr(755,root,root) %{_bindir}/stund | |
143 | %attr(755,root,root) %{_libdir}/libnice.so.*.*.* | |
33992b86 | 144 | %attr(755,root,root) %ghost %{_libdir}/libnice.so.10 |
1cba38b7 | 145 | %{_libdir}/girepository-1.0/Nice-0.1.typelib |
891d5942 MB |
146 | |
147 | %files devel | |
148 | %defattr(644,root,root,755) | |
149 | %attr(755,root,root) %{_libdir}/libnice.so | |
891d5942 MB |
150 | %{_includedir}/nice |
151 | %{_includedir}/stun | |
1cba38b7 | 152 | %{_datadir}/gir-1.0/Nice-0.1.gir |
891d5942 MB |
153 | %{_pkgconfigdir}/nice.pc |
154 | ||
fbbf7eeb | 155 | %if %{with static_libs} |
891d5942 MB |
156 | %files static |
157 | %defattr(644,root,root,755) | |
158 | %{_libdir}/libnice.a | |
fbbf7eeb | 159 | %endif |
891d5942 MB |
160 | |
161 | %files apidocs | |
162 | %defattr(644,root,root,755) | |
163 | %{_gtkdocdir}/libnice | |
f6969208 JB |
164 | |
165 | %files -n gstreamer-nice | |
166 | %defattr(644,root,root,755) | |
51cab71a | 167 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstnice.so |