]>
Commit | Line | Data |
---|---|---|
7ac1844b | 1 | # |
2 | # Conditional build: | |
64c53449 | 3 | %bcond_without static_libs # static libraries |
a5c8b15e JR |
4 | %bcond_with gstpd # gstreamer-plugins-bad library |
5 | %bcond_with opengl # gstreamer-gl library support (in plugins-bad library) | |
7ac1844b | 6 | # |
fa39fea6 JB |
7 | Summary: A C++ bindings for the GStreamer library |
8 | Summary(pl.UTF-8): Wiązania C++ do biblioteki GStreamera | |
7ac1844b | 9 | Name: gstreamermm |
64c53449 | 10 | Version: 1.8.0 |
a5c8b15e | 11 | Release: 2 |
5c297971 | 12 | License: LGPL v2+ |
cb03a45f | 13 | Group: Libraries |
64c53449 JB |
14 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gstreamermm/1.8/%{name}-%{version}.tar.xz |
15 | # Source0-md5: 31246cf2f37b7ff48d45c8be98425e93 | |
16 | Patch0: %{name}-link.patch | |
b26b5ac2 | 17 | URL: https://gstreamer.freedesktop.org/bindings/cplusplus.html |
fa39fea6 JB |
18 | BuildRequires: autoconf >= 2.59 |
19 | BuildRequires: automake >= 1:1.9 | |
64c53449 JB |
20 | BuildRequires: glibmm-devel >= 2.48.0 |
21 | BuildRequires: gstreamer-devel >= 1.8.0 | |
22 | %{?with_gstpd:BuildRequires: gstreamer-plugins-bad-devel >= 1.8.0} | |
23 | BuildRequires: gstreamer-plugins-base-devel >= 1.8.0 | |
daf02215 JB |
24 | # for not packaged examples only |
25 | #BuildRequires: gtkmm3-devel >= 3.0 | |
64c53449 | 26 | BuildRequires: libstdc++-devel >= 6:4.7 |
fa39fea6 | 27 | BuildRequires: libtool >= 2:1.5 |
173393b6 | 28 | BuildRequires: m4 |
64c53449 | 29 | BuildRequires: mm-common >= 0.9.8 |
7ac1844b | 30 | BuildRequires: pkgconfig |
00ae6562 MB |
31 | BuildRequires: tar >= 1:1.22 |
32 | BuildRequires: xz | |
64c53449 JB |
33 | Requires: glibmm >= 2.48.0 |
34 | Requires: gstreamer >= 1.8.0 | |
35 | Requires: gstreamer-plugins-base >= 1.8.0 | |
7ac1844b | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | gstreamermm provides C++ bindings for the GStreamer streaming | |
40 | multimedia library. With gstreamermm it is possible to develop | |
41 | applications that work with multimedia in C++. | |
42 | ||
43 | %description -l pl.UTF-8 | |
44 | gstreamermm dostarcza wiązania C++ dla biblioteki strumieniowej | |
45 | GStreamer. Za pomocą gstreamermm jest możliwe tworzenie aplikacji | |
46 | multimedialnych w C++. | |
47 | ||
48 | %package devel | |
64c53449 | 49 | Summary: Header files for gstreamermm library |
fa39fea6 | 50 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gstreamermm |
7ac1844b | 51 | Group: Development/Libraries |
52 | Requires: %{name} = %{version}-%{release} | |
64c53449 JB |
53 | Requires: glibmm-devel >= 2.48.0 |
54 | Requires: gstreamer-devel >= 1.8.0 | |
55 | Requires: gstreamer-plugins-base-devel >= 1.8.0 | |
7ac1844b | 56 | |
57 | %description devel | |
58 | Header files for gstreamermm library. | |
59 | ||
60 | %description devel -l pl.UTF-8 | |
61 | Pliki nagłówkowe biblioteki gstreamermm. | |
62 | ||
fa39fea6 | 63 | %package static |
64c53449 JB |
64 | Summary: Static gstreamermm library |
65 | Summary(pl.UTF-8): Biblioteka statyczna gstreamermm | |
fa39fea6 JB |
66 | Group: Development/Libraries |
67 | Requires: %{name}-devel = %{version}-%{release} | |
68 | ||
69 | %description static | |
64c53449 | 70 | Static gstreamermm library. |
fa39fea6 JB |
71 | |
72 | %description static -l pl.UTF-8 | |
64c53449 JB |
73 | Biblioteka statyczna gstreamermm. |
74 | ||
75 | %package plugins-bad | |
76 | Summary: C++ bindings for the GStreamer plugins-bad library | |
77 | Summary(pl.UTF-8): Wiązania C++ do biblitoteki GStreamera plugins-bad | |
78 | Group: Libraries | |
79 | Requires: %{name} = %{version}-%{release} | |
80 | Requires: gstreamer-plugins-bad >= 1.8.0 | |
81 | ||
82 | %description plugins-bad | |
83 | C++ bindings for the GStreamer plugins-bad library. | |
84 | ||
85 | %description plugins-bad -l pl.UTF-8 | |
86 | Wiązania C++ do biblitoteki GStreamera plugins-bad. | |
87 | ||
88 | %package plugins-bad-devel | |
89 | Summary: Header files for gstreamermm-plugins-bad library | |
90 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gstreamermm-plugins-bad | |
91 | Group: Development/Libraries | |
92 | Requires: %{name}-devel = %{version}-%{release} | |
93 | Requires: %{name}-plugins-bad = %{version}-%{release} | |
94 | Requires: gstreamer-plugins-bad-devel >= 1.8.0 | |
95 | ||
96 | %description plugins-bad-devel | |
97 | Header files for gstreamermm-plugins-bad library. | |
98 | ||
99 | %description plugins-bad-devel -l pl.UTF-8 | |
100 | Pliki nagłówkowe biblioteki gstreamermm-plugins-bad. | |
101 | ||
102 | %package plugins-bad-static | |
103 | Summary: Static gstreamermm-plugins-bad library | |
104 | Summary(pl.UTF-8): Biblioteka statyczna gstreamermm-plugins-bad | |
105 | Group: Development/Libraries | |
106 | Requires: %{name}-plugins-bad-devel = %{version}-%{release} | |
107 | ||
108 | %description plugins-bad-static | |
109 | Static gstreamermm-plugins-bad library. | |
110 | ||
111 | %description plugins-bad-static -l pl.UTF-8 | |
112 | Biblioteka statyczna gstreamermm-plugins-bad. | |
fa39fea6 | 113 | |
7ac1844b | 114 | %package doc |
115 | Summary: Reference documentation for gstreamermm | |
116 | Summary(pl.UTF-8): Szczegółowa dokumentacja gstreamermm | |
117 | Group: Documentation | |
118 | Requires: devhelp | |
119 | ||
120 | %description doc | |
121 | Reference documentation for gstreamermm. | |
122 | ||
123 | %description doc -l pl.UTF-8 | |
124 | Szczegółowa dokumentacja gstreamermm. | |
125 | ||
7ac1844b | 126 | %prep |
127 | %setup -q | |
64c53449 | 128 | %patch0 -p1 |
7ac1844b | 129 | |
130 | %build | |
6c0f4d30 | 131 | %{__libtoolize} |
132 | %{__aclocal} -I build | |
133 | %{__autoconf} | |
134 | %{__autoheader} | |
135 | %{__automake} | |
7ac1844b | 136 | %configure \ |
64c53449 JB |
137 | %{!?with_opengl:--disable-gl} \ |
138 | %{!?with_gstpd:--disable-plugins-bad} \ | |
139 | --disable-silent-rules \ | |
7ac1844b | 140 | %{?with_static_libs:--enable-static} |
141 | %{__make} | |
142 | ||
143 | %install | |
144 | rm -rf $RPM_BUILD_ROOT | |
145 | ||
146 | %{__make} install \ | |
147 | DESTDIR=$RPM_BUILD_ROOT | |
148 | ||
173393b6 JB |
149 | # obsoleted by pkg-config |
150 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgstreamermm*.la | |
151 | ||
7ac1844b | 152 | %clean |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | ||
155 | %post -p /sbin/ldconfig | |
156 | %postun -p /sbin/ldconfig | |
157 | ||
64c53449 JB |
158 | %post plugins-bad -p /sbin/ldconfig |
159 | %postun plugins-bad -p /sbin/ldconfig | |
160 | ||
7ac1844b | 161 | %files |
162 | %defattr(644,root,root,755) | |
163 | %doc AUTHORS ChangeLog NEWS README | |
173393b6 | 164 | %attr(755,root,root) %{_libdir}/libgstreamermm-1.0.so.*.*.* |
64c53449 | 165 | %attr(755,root,root) %ghost %{_libdir}/libgstreamermm-1.0.so.1 |
7ac1844b | 166 | |
167 | %files devel | |
168 | %defattr(644,root,root,755) | |
173393b6 | 169 | %attr(755,root,root) %{_libdir}/libgstreamermm-1.0.so |
173393b6 JB |
170 | %dir %{_libdir}/gstreamermm-1.0 |
171 | %dir %{_libdir}/gstreamermm-1.0/gen | |
172 | %attr(755,root,root) %{_libdir}/gstreamermm-1.0/gen/generate_plugin_gmmproc_file | |
173 | %{_libdir}/gstreamermm-1.0/gen/m4 | |
174 | %{_libdir}/gstreamermm-1.0/include | |
175 | %{_includedir}/gstreamermm-1.0 | |
176 | %{_pkgconfigdir}/gstreamermm-1.0.pc | |
7ac1844b | 177 | |
7ac1844b | 178 | %if %{with static_libs} |
179 | %files static | |
180 | %defattr(644,root,root,755) | |
173393b6 | 181 | %{_libdir}/libgstreamermm-1.0.a |
64c53449 JB |
182 | %endif |
183 | ||
184 | %if %{with gstpd} | |
185 | %files plugins-bad | |
186 | %defattr(644,root,root,755) | |
187 | %attr(755,root,root) %{_libdir}/libgstreamermm-plugins-bad-1.0.so.*.*.* | |
188 | %attr(755,root,root) %ghost %{_libdir}/libgstreamermm-plugins-bad-1.0.so.1 | |
189 | ||
190 | %files plugins-bad-devel | |
191 | %defattr(644,root,root,755) | |
192 | %attr(755,root,root) %{_libdir}/libgstreamermm-plugins-bad-1.0.so | |
193 | %{_pkgconfigdir}/gstreamermm-plugins-bad-1.0.pc | |
194 | ||
195 | %if %{with static_libs} | |
196 | %files plugins-bad-static | |
197 | %defattr(644,root,root,755) | |
198 | %{_libdir}/libgstreamermm-plugins-bad-1.0.a | |
199 | %endif | |
7ac1844b | 200 | %endif |
fa39fea6 JB |
201 | |
202 | %files doc | |
203 | %defattr(644,root,root,755) | |
173393b6 JB |
204 | %{_docdir}/gstreamermm-1.0 |
205 | %{_datadir}/devhelp/books/gstreamermm-1.0 |