]>
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.14.3 | |
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: c790c0d002164cafe93e67cdf78c8ace | |
13 | Patch0: %{name}-inspect-rpm-format.patch | |
14 | URL: https://gstreamer.freedesktop.org/ | |
15 | BuildRequires: autoconf >= 2.69 | |
16 | BuildRequires: automake >= 1:1.14 | |
17 | BuildRequires: bison >= 1.875 | |
18 | BuildRequires: docbook-dtd412-xml | |
19 | BuildRequires: elfutils-devel | |
20 | BuildRequires: flex >= 2.5.31 | |
21 | BuildRequires: gettext-tools >= 0.17 | |
22 | BuildRequires: glib2-devel >= 1:2.40.0 | |
23 | %if %(locale -a | grep -q '^C\.UTF-8$'; echo $?) | |
24 | BuildRequires: glibc-localedb-all | |
25 | %endif | |
26 | BuildRequires: glibc-misc | |
27 | BuildRequires: gobject-introspection-devel >= 1.31.1 | |
28 | BuildRequires: gtk-doc >= 1.12 | |
29 | BuildRequires: libcap-devel | |
30 | BuildRequires: libtool >= 2:2.2.6 | |
31 | %ifarch %{ix86} %{x8664} %{arm} hppa ia64 mips ppc ppc64 sh | |
32 | BuildRequires: libunwind-devel | |
33 | %endif | |
34 | BuildRequires: perl-base | |
35 | BuildRequires: pkgconfig >= 1:0.9.0 | |
36 | BuildRequires: python >= 2.1 | |
37 | BuildRequires: tar >= 1:1.22 | |
38 | BuildRequires: xz | |
39 | Requires: glib2 >= 1:2.40.0 | |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
41 | ||
42 | %define gstlibdir %{_libdir}/gstreamer-%{vmajor} | |
43 | %define gstlibexecdir %{_libexecdir}/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 | ||
123 | %build | |
124 | # po/Makefile.in.in is modified | |
125 | #{__gettextize} | |
126 | %{__libtoolize} | |
127 | %{__aclocal} -I common/m4 -I m4 -I . | |
128 | %{__autoconf} | |
129 | %{__autoheader} | |
130 | %{__automake} | |
131 | %configure \ | |
132 | --disable-examples \ | |
133 | --disable-silent-rules \ | |
134 | --disable-tests \ | |
135 | --enable-gtk-doc \ | |
136 | --with-html-dir=%{_gtkdocdir} \ | |
137 | --enable-static | |
138 | ||
139 | LC_ALL=C.UTF-8 \ | |
140 | %{__make} | |
141 | ||
142 | %install | |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
145 | %{__make} install \ | |
146 | DESTDIR=$RPM_BUILD_ROOT | |
147 | ||
148 | %find_lang %{name} --all-name --with-gnome | |
149 | ||
150 | # no *.la for modules - shut up check files | |
151 | %{__rm} $RPM_BUILD_ROOT%{gstlibdir}/lib*.la | |
152 | # obsoleted by pkg-config | |
153 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgst*.la | |
154 | ||
155 | %clean | |
156 | rm -rf $RPM_BUILD_ROOT | |
157 | ||
158 | %post -p /sbin/ldconfig | |
159 | %postun -p /sbin/ldconfig | |
160 | ||
161 | %files -f %{name}.lang | |
162 | %defattr(644,root,root,755) | |
163 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README RELEASE | |
164 | %attr(755,root,root) %{_bindir}/gst-inspect-1.0 | |
165 | %attr(755,root,root) %{_bindir}/gst-launch-1.0 | |
166 | %attr(755,root,root) %{_bindir}/gst-stats-1.0 | |
167 | %attr(755,root,root) %{_bindir}/gst-typefind-1.0 | |
168 | %attr(755,root,root) %{_libdir}/libgstbase-%{vmajor}.so.*.*.* | |
169 | %attr(755,root,root) %ghost %{_libdir}/libgstbase-%{vmajor}.so.0 | |
170 | %attr(755,root,root) %{_libdir}/libgstcheck-%{vmajor}.so.*.*.* | |
171 | %attr(755,root,root) %ghost %{_libdir}/libgstcheck-%{vmajor}.so.0 | |
172 | %attr(755,root,root) %{_libdir}/libgstcontroller-%{vmajor}.so.*.*.* | |
173 | %attr(755,root,root) %ghost %{_libdir}/libgstcontroller-%{vmajor}.so.0 | |
174 | %attr(755,root,root) %{_libdir}/libgstnet-%{vmajor}.so.*.*.* | |
175 | %attr(755,root,root) %ghost %{_libdir}/libgstnet-%{vmajor}.so.0 | |
176 | %attr(755,root,root) %{_libdir}/libgstreamer-%{vmajor}.so.*.*.* | |
177 | %attr(755,root,root) %ghost %{_libdir}/libgstreamer-%{vmajor}.so.0 | |
178 | %if "%{_libexecdir}" != "%{_libdir}" | |
179 | %dir %{gstlibexecdir} | |
180 | %endif | |
181 | %attr(755,root,root) %{gstlibexecdir}/gst-plugin-scanner | |
182 | %attr(755,root,root) %{gstlibexecdir}/gst-ptp-helper | |
183 | %dir %{gstlibdir} | |
184 | %attr(755,root,root) %{gstlibdir}/libgstcoreelements.so | |
185 | %attr(755,root,root) %{gstlibdir}/libgstcoretracers.so | |
186 | %{_mandir}/man1/gst-inspect-1.0.1* | |
187 | %{_mandir}/man1/gst-launch-1.0.1* | |
188 | %{_mandir}/man1/gst-stats-1.0.1* | |
189 | %{_mandir}/man1/gst-typefind-1.0.1* | |
190 | %{_libdir}/girepository-1.0/Gst-%{vmajor}.typelib | |
191 | %{_libdir}/girepository-1.0/GstBase-%{vmajor}.typelib | |
192 | %{_libdir}/girepository-1.0/GstCheck-%{vmajor}.typelib | |
193 | %{_libdir}/girepository-1.0/GstController-%{vmajor}.typelib | |
194 | %{_libdir}/girepository-1.0/GstNet-%{vmajor}.typelib | |
195 | ||
196 | %files devel | |
197 | %defattr(644,root,root,755) | |
198 | %attr(755,root,root) %{_libdir}/libgstbase-%{vmajor}.so | |
199 | %attr(755,root,root) %{_libdir}/libgstcheck-%{vmajor}.so | |
200 | %attr(755,root,root) %{_libdir}/libgstcontroller-%{vmajor}.so | |
201 | %attr(755,root,root) %{_libdir}/libgstnet-%{vmajor}.so | |
202 | %attr(755,root,root) %{_libdir}/libgstreamer-%{vmajor}.so | |
203 | %dir %{gstincludedir} | |
204 | %{gstincludedir}/gst | |
205 | %{_pkgconfigdir}/gstreamer-%{vmajor}.pc | |
206 | %{_pkgconfigdir}/gstreamer-base-%{vmajor}.pc | |
207 | %{_pkgconfigdir}/gstreamer-check-%{vmajor}.pc | |
208 | %{_pkgconfigdir}/gstreamer-controller-%{vmajor}.pc | |
209 | %{_pkgconfigdir}/gstreamer-net-%{vmajor}.pc | |
210 | %{_aclocaldir}/gst-element-check-%{vmajor}.m4 | |
211 | %{_datadir}/gir-1.0/Gst-%{vmajor}.gir | |
212 | %{_datadir}/gir-1.0/GstBase-%{vmajor}.gir | |
213 | %{_datadir}/gir-1.0/GstCheck-%{vmajor}.gir | |
214 | %{_datadir}/gir-1.0/GstController-%{vmajor}.gir | |
215 | %{_datadir}/gir-1.0/GstNet-%{vmajor}.gir | |
216 | ||
217 | %files static | |
218 | %defattr(644,root,root,755) | |
219 | %{_libdir}/libgstbase-%{vmajor}.a | |
220 | %{_libdir}/libgstcheck-%{vmajor}.a | |
221 | %{_libdir}/libgstcontroller-%{vmajor}.a | |
222 | %{_libdir}/libgstnet-%{vmajor}.a | |
223 | %{_libdir}/libgstreamer-%{vmajor}.a | |
224 | ||
225 | %files apidocs | |
226 | %defattr(644,root,root,755) | |
227 | %{_gtkdocdir}/gstreamer-%{vmajor} | |
228 | %{_gtkdocdir}/gstreamer-libs-%{vmajor} | |
229 | %{_gtkdocdir}/gstreamer-plugins-%{vmajor} | |
230 | ||
231 | %files -n bash-completion-gstreamer | |
232 | %defattr(644,root,root,755) | |
233 | %{bash_compdir}/gst-inspect-1.0 | |
234 | %{bash_compdir}/gst-launch-1.0 | |
235 | %attr(755,root,root) %{gstlibexecdir}/gst-completion-helper | |
236 | %attr(755,root,root) %{_datadir}/bash-completion/helpers/gst |