]>
Commit | Line | Data |
---|---|---|
6c0e30be MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | %bcond_without static_libs # don't build static libraries | |
9ba1df94 | 5 | |
6c0e30be | 6 | Summary: Audio/Video Communications Framework |
83201fd8 | 7 | Summary(pl.UTF-8): Szkielet komunikacji Audio/Video |
6c0e30be | 8 | Name: farstream |
5ce76e18 | 9 | Version: 0.2.9 |
f4c7668d | 10 | Release: 1 |
6c0e30be MB |
11 | License: LGPL v2+ |
12 | Group: Libraries | |
76aa1a8a | 13 | Source0: https://freedesktop.org/software/farstream/releases/farstream/%{name}-%{version}.tar.gz |
5ce76e18 JP |
14 | # Source0-md5: 35ad6b9e0fb52debeaa2d5194bf5153c |
15 | Patch0: %{name}-make.patch | |
f4c7668d | 16 | URL: https://www.freedesktop.org/wiki/Software/Farstream |
6c0e30be MB |
17 | BuildRequires: autoconf >= 2.60 |
18 | BuildRequires: automake | |
98557746 | 19 | BuildRequires: glib2-devel >= 1:2.40 |
6c0e30be | 20 | BuildRequires: gobject-introspection-devel >= 0.10.1 |
119745c5 JB |
21 | BuildRequires: gstreamer-devel >= 1.4 |
22 | BuildRequires: gstreamer-plugins-base-devel >= 1.4 | |
23 | BuildRequires: gtk-doc >= 1.18 | |
42e5ee20 | 24 | BuildRequires: gupnp-igd-devel >= 0.2 |
119745c5 | 25 | BuildRequires: libnice-devel >= 0.1.8 |
6c0e30be MB |
26 | BuildRequires: libtool |
27 | BuildRequires: pkgconfig | |
8b4531e1 | 28 | BuildRequires: python >= 2.1 |
b84ce006 | 29 | BuildRequires: rpm-build >= 4.6 |
98557746 | 30 | Requires: glib2 >= 1:2.40 |
119745c5 JB |
31 | Requires: gstreamer >= 1.4 |
32 | Requires: gstreamer-plugins-base >= 1.4 | |
8b4531e1 | 33 | Requires: gupnp-igd >= 0.2 |
119745c5 | 34 | Requires: libnice >= 0.1.8 |
bf026548 | 35 | Obsoletes: farsight2 < 0.0.32 |
42e5ee20 MB |
36 | Obsoletes: python-farsight2 < 0.0.32 |
37 | Obsoletes: python-farstream < 0.2.0 | |
6c0e30be MB |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
bf026548 MB |
41 | The Farstream (formerly Farsight) project is an effort to create a |
42 | framework to deal with all known audio/video conferencing protocols. | |
43 | On one side it offers a generic API that makes it possible to write | |
44 | plugins for different streaming protocols, on the other side it offers | |
45 | an API for clients to use those plugins. | |
46 | ||
47 | The main target clients for Farstream are Instant Messaging | |
48 | applications. These applications should be able to use Farstream for | |
49 | all their Audio/Video conferencing needs without having to worry about | |
50 | any of the lower level streaming and NAT traversal issues. | |
6c0e30be | 51 | |
83201fd8 JB |
52 | %description -l pl.UTF-8 |
53 | Projekt Farstream (dawniej Farsight) to próba stworzenia szkieletu | |
54 | obsługującego wszystkie znane protokoły konferencji audio/video. Z | |
55 | jednej strony oferuje ogólne API umożliwiające pisanie wtyczek dla | |
56 | różnych protokołów strumieniowych, z drugiej strony oferuje API dla | |
57 | klientów, pozwalającyce im używać tych wtyczek. | |
58 | ||
59 | Głównymi klientami szkieletu Farstream mają być aplikacje | |
60 | komunikatorów (IM). Powinny być w stanie używać Farstreama do potrzeb | |
61 | konferencji audio/video bez konieczności obsługi niskopoziomowych | |
62 | poziomów strumieni i omijania NAT-u. | |
63 | ||
6c0e30be MB |
64 | %package devel |
65 | Summary: Header files for Farstream library | |
66 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Farstream | |
67 | Group: Development/Libraries | |
68 | Requires: %{name} = %{version}-%{release} | |
98557746 | 69 | Requires: glib2-devel >= 1:2.40 |
119745c5 JB |
70 | Requires: gstreamer-devel >= 1.4 |
71 | Requires: gstreamer-plugins-base-devel >= 1.4 | |
bf026548 | 72 | Obsoletes: farsight2-devel < 0.0.32 |
6c0e30be MB |
73 | |
74 | %description devel | |
75 | Header files for Farstream library. | |
76 | ||
77 | %description devel -l pl.UTF-8 | |
78 | Pliki nagłówkowe biblioteki Farstream. | |
79 | ||
80 | %package static | |
81 | Summary: Static Farstream library | |
82 | Summary(pl.UTF-8): Statyczna biblioteka Farstream | |
83 | Group: Development/Libraries | |
84 | Requires: %{name}-devel = %{version}-%{release} | |
bf026548 | 85 | Obsoletes: farsight2-static < 0.0.32 |
6c0e30be MB |
86 | |
87 | %description static | |
88 | Static Farstream library. | |
89 | ||
90 | %description static -l pl.UTF-8 | |
91 | Statyczna biblioteka Farstream. | |
92 | ||
93 | %package apidocs | |
94 | Summary: Farstream API documentation | |
95 | Summary(pl.UTF-8): Dokumentacja API biblioteki Farstream | |
96 | Group: Documentation | |
97 | Requires: gtk-doc-common | |
bf026548 | 98 | Obsoletes: farsight2-apidocs < 0.0.32 |
9ba1df94 | 99 | BuildArch: noarch |
6c0e30be MB |
100 | |
101 | %description apidocs | |
102 | API documentation for Farstream library. | |
103 | ||
104 | %description apidocs -l pl.UTF-8 | |
105 | Dokumentacja API biblioteki Farstream. | |
106 | ||
6c0e30be MB |
107 | %prep |
108 | %setup -q | |
5ce76e18 | 109 | %patch0 -p1 |
6c0e30be MB |
110 | |
111 | %build | |
112 | %{__libtoolize} | |
113 | %{__aclocal} -I m4 -I common/m4 | |
114 | %{__autoconf} | |
115 | %{__autoheader} | |
116 | %{__automake} | |
117 | %configure \ | |
118 | %{__enable_disable apidocs gtk-doc} \ | |
119 | %{__enable_disable static_libs static} \ | |
120 | --disable-silent-rules \ | |
121 | --with-html-dir=%{_gtkdocdir} | |
122 | %{__make} | |
123 | ||
124 | %install | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
127 | %{__make} install \ | |
128 | DESTDIR=$RPM_BUILD_ROOT | |
129 | ||
f4c7668d | 130 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/{farstream-0.2,gstreamer-1.0}/*.la |
6c0e30be MB |
131 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
132 | ||
133 | %clean | |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
136 | %post -p /sbin/ldconfig | |
137 | %postun -p /sbin/ldconfig | |
138 | ||
139 | %files | |
140 | %defattr(644,root,root,755) | |
141 | %doc AUTHORS ChangeLog NEWS README | |
42e5ee20 | 142 | %attr(755,root,root) %{_libdir}/libfarstream-0.2.so.*.*.* |
247102fb | 143 | %attr(755,root,root) %ghost %{_libdir}/libfarstream-0.2.so.5 |
42e5ee20 MB |
144 | %{_libdir}/girepository-1.0/Farstream-0.2.typelib |
145 | %dir %{_libdir}/farstream-0.2 | |
146 | %attr(755,root,root) %{_libdir}/farstream-0.2/libmulticast-transmitter.so | |
147 | %attr(755,root,root) %{_libdir}/farstream-0.2/libnice-transmitter.so | |
148 | %attr(755,root,root) %{_libdir}/farstream-0.2/librawudp-transmitter.so | |
149 | %attr(755,root,root) %{_libdir}/farstream-0.2/libshm-transmitter.so | |
42e5ee20 | 150 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/libfsrawconference.so |
42e5ee20 | 151 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/libfsrtpconference.so |
119745c5 | 152 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/libfsrtpxdata.so |
42e5ee20 | 153 | %attr(755,root,root) %{_libdir}/gstreamer-1.0/libfsvideoanyrate.so |
6c0e30be MB |
154 | %{_datadir}/farstream |
155 | ||
156 | %files devel | |
157 | %defattr(644,root,root,755) | |
42e5ee20 MB |
158 | %attr(755,root,root) %{_libdir}/libfarstream-0.2.so |
159 | %{_datadir}/gir-1.0/Farstream-0.2.gir | |
160 | %{_includedir}/farstream-0.2 | |
161 | %{_pkgconfigdir}/farstream-0.2.pc | |
6c0e30be MB |
162 | |
163 | %if %{with static_libs} | |
164 | %files static | |
165 | %defattr(644,root,root,755) | |
42e5ee20 | 166 | %{_libdir}/libfarstream-0.2.a |
6c0e30be MB |
167 | %endif |
168 | ||
169 | %if %{with apidocs} | |
170 | %files apidocs | |
171 | %defattr(644,root,root,755) | |
93f7cc88 | 172 | %{_gtkdocdir}/farstream-libs-0.2 |
42e5ee20 | 173 | %{_gtkdocdir}/farstream-plugins-0.2 |
6c0e30be | 174 | %endif |