]>
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 |
8d82fceb JB |
8 | Version: 0.1.15 |
9 | Release: 1 | |
57c2b857 | 10 | License: LGPL v2.1 or MPL v1.1 |
891d5942 | 11 | Group: Libraries |
45882cf8 | 12 | Source0: https://nice.freedesktop.org/releases/%{name}-%{version}.tar.gz |
8d82fceb | 13 | # Source0-md5: 5f58f305d23158651ab509b25420d353 |
45882cf8 | 14 | URL: https://nice.freedesktop.org/ |
1cba38b7 JB |
15 | BuildRequires: autoconf >= 2.62 |
16 | BuildRequires: automake >= 1:1.12 | |
6cb07c26 | 17 | BuildRequires: docbook-dtd412-xml |
8d82fceb | 18 | BuildRequires: glib2-devel >= 1:2.48 |
11fa0e8a | 19 | BuildRequires: gnutls-devel >= 2.12 |
1cba38b7 | 20 | BuildRequires: gobject-introspection-devel >= 1.30.0 |
51cab71a | 21 | BuildRequires: gstreamer-devel >= 1.0.0 |
891d5942 | 22 | BuildRequires: gtk-doc >= 1.9 |
1cba38b7 | 23 | BuildRequires: gupnp-igd-devel >= 0.2.4 |
fbbf7eeb | 24 | BuildRequires: libtool >= 2:2.2.6 |
891d5942 | 25 | BuildRequires: pkgconfig |
8d82fceb | 26 | Requires: glib2 >= 1:2.48 |
45882cf8 | 27 | Requires: gnutls-libs >= 2.12 |
1cba38b7 | 28 | Requires: gupnp-igd >= 0.2.4 |
891d5942 MB |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
32 | libnice is an implementation of the IETF's draft Interactive | |
33 | Connectivity Establishment standard (ICE). It provides GLib-based | |
34 | library and GStreamer elements. | |
35 | ||
36 | ICE is useful for applications that want to establish peer-to-peer UDP | |
37 | data streams. It automates the process of traversing NATs and provides | |
38 | security against some attacks. | |
39 | ||
40 | Existing standards that use ICE include the Session Initiation | |
41 | Protocol (SIP) and Jingle, XMPP extension for audio/video calls. | |
42 | ||
57c2b857 JB |
43 | %description -l pl.UTF-8 |
44 | libnice to implementacja standardu ICE (Interactive Connectivity | |
d0acf362 ER |
45 | Establishment) wg szkicu IETF. Udostępnia bibliotekę opartą na GLibie |
46 | oraz elementy GStreamera. | |
57c2b857 JB |
47 | |
48 | ICE służy aplikacjom chcącym tworzyć strumienie danych UDP | |
49 | peer-to-peer. Automatyzuje proces przechodzenia przez NAT i | |
50 | zabezpiecza przed pewnymi atakami. | |
51 | ||
52 | Istniejące standardy wykorzystujące ICE obejmują protokoły SIP | |
53 | (Session Initiation Protocol) oraz Jingle (rozszerzenie XMPP dla | |
54 | połączeń audio/video). | |
55 | ||
891d5942 MB |
56 | %package devel |
57 | Summary: Header files for libnice library | |
58 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnice | |
59 | Group: Development/Libraries | |
60 | Requires: %{name} = %{version}-%{release} | |
8d82fceb | 61 | Requires: glib2-devel >= 1:2.48 |
45882cf8 | 62 | Requires: gnutls-devel >= 2.12 |
1cba38b7 | 63 | Requires: gupnp-igd-devel >= 0.2.4 |
891d5942 MB |
64 | |
65 | %description devel | |
66 | Header files for libnice library. | |
67 | ||
68 | %description devel -l pl.UTF-8 | |
69 | Pliki nagłówkowe biblioteki libnice. | |
70 | ||
71 | %package static | |
72 | Summary: Static libnice library | |
73 | Summary(pl.UTF-8): Statyczna biblioteka libnice | |
74 | Group: Development/Libraries | |
75 | Requires: %{name}-devel = %{version}-%{release} | |
76 | ||
77 | %description static | |
78 | Static libnice library. | |
79 | ||
80 | %description static -l pl.UTF-8 | |
81 | Statyczna biblioteka libnice. | |
82 | ||
83 | %package apidocs | |
84 | Summary: libnice library API documentation | |
85 | Summary(pl.UTF-8): Dokumentacja API biblioteki libnice | |
86 | Group: Documentation | |
87 | Requires: gtk-doc-common | |
d0acf362 ER |
88 | %if "%{_rpmversion}" >= "5" |
89 | BuildArch: noarch | |
90 | %endif | |
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 | |
2e0bfc02 | 115 | %{__gtkdocize} |
891d5942 | 116 | %{__libtoolize} |
45882cf8 | 117 | %{__aclocal} -I m4 |
891d5942 MB |
118 | %{__autoconf} |
119 | %{__autoheader} | |
120 | %{__automake} | |
121 | %configure \ | |
0ad3aec3 | 122 | --enable-compile-warnings \ |
891d5942 | 123 | --enable-gtk-doc \ |
1cba38b7 | 124 | --disable-silent-rules \ |
fbbf7eeb | 125 | %{?with_static_libs:--enable-static} \ |
51cab71a MB |
126 | --with-html-dir=%{_gtkdocdir} \ |
127 | --without-gstreamer-0.10 | |
891d5942 MB |
128 | |
129 | %{__make} | |
130 | ||
131 | %install | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %{__make} install \ | |
135 | DESTDIR=$RPM_BUILD_ROOT | |
136 | ||
fbbf7eeb JB |
137 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la \ |
138 | $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/*.la | |
139 | %if %{with static_libs} | |
140 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/*.a | |
141 | %endif | |
891d5942 MB |
142 | |
143 | %clean | |
144 | rm -rf $RPM_BUILD_ROOT | |
145 | ||
146 | %post -p /sbin/ldconfig | |
147 | %postun -p /sbin/ldconfig | |
148 | ||
149 | %files | |
150 | %defattr(644,root,root,755) | |
57c2b857 | 151 | %doc AUTHORS COPYING ChangeLog NEWS README TODO |
891d5942 MB |
152 | %attr(755,root,root) %{_bindir}/stunbdc |
153 | %attr(755,root,root) %{_bindir}/stund | |
154 | %attr(755,root,root) %{_libdir}/libnice.so.*.*.* | |
33992b86 | 155 | %attr(755,root,root) %ghost %{_libdir}/libnice.so.10 |
1cba38b7 | 156 | %{_libdir}/girepository-1.0/Nice-0.1.typelib |
891d5942 MB |
157 | |
158 | %files devel | |
159 | %defattr(644,root,root,755) | |
160 | %attr(755,root,root) %{_libdir}/libnice.so | |
891d5942 MB |
161 | %{_includedir}/nice |
162 | %{_includedir}/stun | |
1cba38b7 | 163 | %{_datadir}/gir-1.0/Nice-0.1.gir |
891d5942 MB |
164 | %{_pkgconfigdir}/nice.pc |
165 | ||
fbbf7eeb | 166 | %if %{with static_libs} |
891d5942 MB |
167 | %files static |
168 | %defattr(644,root,root,755) | |
169 | %{_libdir}/libnice.a | |
fbbf7eeb | 170 | %endif |
891d5942 MB |
171 | |
172 | %files apidocs | |
173 | %defattr(644,root,root,755) | |
174 | %{_gtkdocdir}/libnice | |
f6969208 JB |
175 | |
176 | %files -n gstreamer-nice | |
177 | %defattr(644,root,root,755) | |
51cab71a | 178 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstnice.so |