]>
Commit | Line | Data |
---|---|---|
1 | # TODO: suid/capabilities for ptp-helper? | |
2 | %define vmajor 1.0 | |
3 | ||
4 | Summary: GStreamer Streaming-media framework runtime | |
5 | Summary(pl.UTF-8): GStreamer - biblioteki środowiska do obróbki strumieni | |
6 | Name: gstreamer | |
7 | Version: 1.10.2 | |
8 | Release: 1 | |
9 | License: LGPL v2+ | |
10 | Group: Libraries | |
11 | Source0: https://gstreamer.freedesktop.org/src/gstreamer/%{name}-%{version}.tar.xz | |
12 | # Source0-md5: 0d289e5bcec6353e6540ddb75b7d371b | |
13 | Patch0: %{name}-without_ps_pdf.patch | |
14 | Patch1: %{name}-eps.patch | |
15 | Patch2: %{name}-inspect-rpm-format.patch | |
16 | URL: https://gstreamer.freedesktop.org/ | |
17 | BuildRequires: autoconf >= 2.69 | |
18 | BuildRequires: automake >= 1:1.14 | |
19 | BuildRequires: bison >= 1.875 | |
20 | BuildRequires: docbook-dtd30-sgml | |
21 | BuildRequires: docbook-dtd412-xml | |
22 | BuildRequires: docbook-utils >= 0.6.10 | |
23 | BuildRequires: flex >= 2.5.31 | |
24 | BuildRequires: gettext-tools >= 0.17 | |
25 | BuildRequires: glib2-devel >= 1:2.40.0 | |
26 | BuildRequires: glibc-misc | |
27 | BuildRequires: gnome-doc-tools | |
28 | BuildRequires: gobject-introspection-devel >= 1.31.1 | |
29 | BuildRequires: gtk-doc >= 1.12 | |
30 | BuildRequires: libcap-devel | |
31 | BuildRequires: libtool >= 2:2.2.6 | |
32 | BuildRequires: nasm | |
33 | BuildRequires: perl-base | |
34 | BuildRequires: pkgconfig >= 1:0.9.0 | |
35 | BuildRequires: python >= 2.1 | |
36 | BuildRequires: tar >= 1:1.22 | |
37 | BuildRequires: transfig | |
38 | BuildRequires: xmlto | |
39 | BuildRequires: xz | |
40 | Requires: glib2 >= 1:2.40.0 | |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
42 | ||
43 | %define _gstlibdir %{_libdir}/gstreamer-%{vmajor} | |
44 | %define _gstincludedir %{_includedir}/gstreamer-%{vmajor} | |
45 | ||
46 | %description | |
47 | GStreamer is a streaming-media framework, based on graphs of filters | |
48 | which operate on media data. Applications using this library can do | |
49 | anything from real-time sound processing to playing videos, and just | |
50 | about anything else media-related. Its plugin-based architecture means | |
51 | that new data types or processing capabilities can be added simply by | |
52 | installing new plugins. | |
53 | ||
54 | %description -l pl.UTF-8 | |
55 | GStreamer to środowisko obróbki danych strumieniowych, bazujące na | |
56 | grafie filtrów operujących na danych medialnych. Aplikacje używające | |
57 | tej biblioteki mogą robić wszystko od przetwarzania dźwięku w czasie | |
58 | rzeczywistym, do odtwarzania filmów i czegokolwiek innego związanego z | |
59 | mediami. Architektura bazująca na wtyczkach pozwala na łatwe dodawanie | |
60 | nowych typów danych lub możliwości obróbki. | |
61 | ||
62 | %package devel | |
63 | Summary: Include files for GStreamer streaming-media framework | |
64 | Summary(pl.UTF-8): Pliki nagłówkowe do środowiska obróbki strumieni GStreamer | |
65 | Group: Development/Libraries | |
66 | Requires: %{name} = %{version}-%{release} | |
67 | Requires: glib2-devel >= 1:2.40.0 | |
68 | Obsoletes: gstreamer-plugins-bad-devel < 0.10.10 | |
69 | ||
70 | %description devel | |
71 | This package contains the includes files necessary to develop | |
72 | applications and plugins for GStreamer. | |
73 | ||
74 | %description devel -l pl.UTF-8 | |
75 | Ten pakiet zawiera pliki nagłówkowe potrzebne do rozwijania aplikacji | |
76 | i wtyczek do GStreamera. | |
77 | ||
78 | %package static | |
79 | Summary: GStreamer static libraries | |
80 | Summary(pl.UTF-8): Biblioteki statyczne GStreamer | |
81 | Group: Development/Libraries | |
82 | Requires: %{name}-devel = %{version}-%{release} | |
83 | ||
84 | %description static | |
85 | Static versions of GStreamer libraries. | |
86 | ||
87 | %description static -l pl.UTF-8 | |
88 | Statyczne wersje bibliotek GStreamer. | |
89 | ||
90 | %package apidocs | |
91 | Summary: GStreamer API documentation | |
92 | Summary(pl.UTF-8): Dokumentacja API Gstreamera | |
93 | Group: Documentation | |
94 | Requires: gtk-doc-common | |
95 | %if "%{_rpmversion}" >= "5" | |
96 | BuildArch: noarch | |
97 | %endif | |
98 | ||
99 | %description apidocs | |
100 | GStreamer API documentation. | |
101 | ||
102 | %description apidocs -l pl.UTF-8 | |
103 | Dokumentacja API Gstreamera. | |
104 | ||
105 | %package -n bash-completion-gstreamer | |
106 | Summary: Bash completion for GStreamer utilities | |
107 | Summary(pl.UTF-8): Bashowe uzupełnianie parametrów narzędzi GStreamera | |
108 | Group: Applications/Shells | |
109 | Requires: %{name} = %{version}-%{release} | |
110 | Requires: bash-completion >= 2.0 | |
111 | ||
112 | %description -n bash-completion-gstreamer | |
113 | Bash completion for GStreamer utilities: gst-inspect and gst-launch. | |
114 | ||
115 | %description -n bash-completion-gstreamer | |
116 | Bashowe uzupełnianie parametrów narzędzi GStreamera: gst-inspect oraz | |
117 | gst-launch. | |
118 | ||
119 | %prep | |
120 | %setup -q | |
121 | %patch0 -p1 | |
122 | %patch1 -p1 | |
123 | %patch2 -p1 | |
124 | ||
125 | %build | |
126 | # po/Makefile.in.in is modified | |
127 | #{__gettextize} | |
128 | %{__libtoolize} | |
129 | %{__aclocal} -I common/m4 -I m4 -I . | |
130 | %{__autoconf} | |
131 | %{__autoheader} | |
132 | %{__automake} | |
133 | %configure \ | |
134 | --disable-examples \ | |
135 | --disable-pspdf \ | |
136 | --disable-silent-rules \ | |
137 | --disable-tests \ | |
138 | --enable-docbook \ | |
139 | --enable-gtk-doc \ | |
140 | --with-html-dir=%{_gtkdocdir} \ | |
141 | --enable-static | |
142 | ||
143 | %{__make} | |
144 | ||
145 | %install | |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | install -d $RPM_BUILD_ROOT{%{_docdir}/%{name}-devel-%{version},%{rpmlibdir}} | |
148 | ||
149 | %{__make} install \ | |
150 | DESTDIR=$RPM_BUILD_ROOT | |
151 | ||
152 | mv $RPM_BUILD_ROOT%{_docdir}/%{name}-{%{vmajor},%{version}} | |
153 | mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/{faq,manual,pwg} \ | |
154 | $RPM_BUILD_ROOT%{_docdir}/%{name}-devel-%{version} | |
155 | ||
156 | %find_lang %{name} --all-name --with-gnome | |
157 | ||
158 | # no *.la for modules - shut up check files | |
159 | %{__rm} $RPM_BUILD_ROOT%{_gstlibdir}/lib*.la | |
160 | # obsoleted by pkg-config | |
161 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgst*.la | |
162 | ||
163 | %clean | |
164 | rm -rf $RPM_BUILD_ROOT | |
165 | ||
166 | %post -p /sbin/ldconfig | |
167 | %postun -p /sbin/ldconfig | |
168 | ||
169 | %files -f %{name}.lang | |
170 | %defattr(644,root,root,755) | |
171 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README RELEASE | |
172 | %attr(755,root,root) %{_bindir}/gst-inspect-1.0 | |
173 | %attr(755,root,root) %{_bindir}/gst-launch-1.0 | |
174 | %attr(755,root,root) %{_bindir}/gst-stats-1.0 | |
175 | %attr(755,root,root) %{_bindir}/gst-typefind-1.0 | |
176 | %attr(755,root,root) %{_libdir}/libgstbase-%{vmajor}.so.*.*.* | |
177 | %attr(755,root,root) %ghost %{_libdir}/libgstbase-%{vmajor}.so.0 | |
178 | %attr(755,root,root) %{_libdir}/libgstcheck-%{vmajor}.so.*.*.* | |
179 | %attr(755,root,root) %ghost %{_libdir}/libgstcheck-%{vmajor}.so.0 | |
180 | %attr(755,root,root) %{_libdir}/libgstcontroller-%{vmajor}.so.*.*.* | |
181 | %attr(755,root,root) %ghost %{_libdir}/libgstcontroller-%{vmajor}.so.0 | |
182 | %attr(755,root,root) %{_libdir}/libgstnet-%{vmajor}.so.*.*.* | |
183 | %attr(755,root,root) %ghost %{_libdir}/libgstnet-%{vmajor}.so.0 | |
184 | %attr(755,root,root) %{_libdir}/libgstreamer-%{vmajor}.so.*.*.* | |
185 | %attr(755,root,root) %ghost %{_libdir}/libgstreamer-%{vmajor}.so.0 | |
186 | %dir %{_gstlibdir} | |
187 | %attr(755,root,root) %{_gstlibdir}/gst-plugin-scanner | |
188 | %attr(755,root,root) %{_gstlibdir}/gst-ptp-helper | |
189 | %attr(755,root,root) %{_gstlibdir}/libgstcoreelements.so | |
190 | %attr(755,root,root) %{_gstlibdir}/libgstcoretracers.so | |
191 | %{_mandir}/man1/gst-inspect-1.0.1* | |
192 | %{_mandir}/man1/gst-launch-1.0.1* | |
193 | %{_mandir}/man1/gst-typefind-1.0.1* | |
194 | %{_libdir}/girepository-1.0/Gst-%{vmajor}.typelib | |
195 | %{_libdir}/girepository-1.0/GstBase-%{vmajor}.typelib | |
196 | %{_libdir}/girepository-1.0/GstCheck-%{vmajor}.typelib | |
197 | %{_libdir}/girepository-1.0/GstController-%{vmajor}.typelib | |
198 | %{_libdir}/girepository-1.0/GstNet-%{vmajor}.typelib | |
199 | ||
200 | %files devel | |
201 | %defattr(644,root,root,755) | |
202 | %attr(755,root,root) %{_libdir}/libgstbase-%{vmajor}.so | |
203 | %attr(755,root,root) %{_libdir}/libgstcheck-%{vmajor}.so | |
204 | %attr(755,root,root) %{_libdir}/libgstcontroller-%{vmajor}.so | |
205 | %attr(755,root,root) %{_libdir}/libgstnet-%{vmajor}.so | |
206 | %attr(755,root,root) %{_libdir}/libgstreamer-%{vmajor}.so | |
207 | %{_docdir}/%{name}-devel-%{version} | |
208 | %{_gstincludedir} | |
209 | %{_pkgconfigdir}/gstreamer-%{vmajor}.pc | |
210 | %{_pkgconfigdir}/gstreamer-base-%{vmajor}.pc | |
211 | %{_pkgconfigdir}/gstreamer-check-%{vmajor}.pc | |
212 | %{_pkgconfigdir}/gstreamer-controller-%{vmajor}.pc | |
213 | %{_pkgconfigdir}/gstreamer-net-%{vmajor}.pc | |
214 | %{_aclocaldir}/gst-element-check-%{vmajor}.m4 | |
215 | %{_datadir}/gir-1.0/Gst-%{vmajor}.gir | |
216 | %{_datadir}/gir-1.0/GstBase-%{vmajor}.gir | |
217 | %{_datadir}/gir-1.0/GstCheck-%{vmajor}.gir | |
218 | %{_datadir}/gir-1.0/GstController-%{vmajor}.gir | |
219 | %{_datadir}/gir-1.0/GstNet-%{vmajor}.gir | |
220 | ||
221 | %files static | |
222 | %defattr(644,root,root,755) | |
223 | %{_libdir}/libgstbase-%{vmajor}.a | |
224 | %{_libdir}/libgstcheck-%{vmajor}.a | |
225 | %{_libdir}/libgstcontroller-%{vmajor}.a | |
226 | %{_libdir}/libgstnet-%{vmajor}.a | |
227 | %{_libdir}/libgstreamer-%{vmajor}.a | |
228 | ||
229 | %files apidocs | |
230 | %defattr(644,root,root,755) | |
231 | %{_gtkdocdir}/gstreamer-%{vmajor} | |
232 | %{_gtkdocdir}/gstreamer-libs-%{vmajor} | |
233 | %{_gtkdocdir}/gstreamer-plugins-%{vmajor} | |
234 | ||
235 | %files -n bash-completion-gstreamer | |
236 | %defattr(644,root,root,755) | |
237 | %{bash_compdir}/gst-inspect-1.0 | |
238 | %{bash_compdir}/gst-launch-1.0 | |
239 | %attr(755,root,root) %{_datadir}/bash-completion/helpers/gst | |
240 | %attr(755,root,root) %{_datadir}/bash-completion/helpers/gst-completion-helper-1.0 |