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