]>
Commit | Line | Data |
---|---|---|
7ac1844b | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
fa39fea6 JB |
5 | Summary: A C++ bindings for the GStreamer library |
6 | Summary(pl.UTF-8): Wiązania C++ do biblioteki GStreamera | |
7ac1844b | 7 | Name: gstreamermm |
865ed30d | 8 | Version: 0.10.10.2 |
9a438c36 | 9 | Release: 1 |
5c297971 | 10 | License: LGPL v2+ |
cb03a45f | 11 | Group: Libraries |
00ae6562 | 12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gstreamermm/0.10/%{name}-%{version}.tar.xz |
865ed30d | 13 | # Source0-md5: 2563bde3ffa785eac64c4d443da88360 |
fa39fea6 JB |
14 | BuildRequires: autoconf >= 2.59 |
15 | BuildRequires: automake >= 1:1.9 | |
daf02215 | 16 | BuildRequires: glibmm-devel >= 2.28.0 |
865ed30d JB |
17 | BuildRequires: gstreamer-devel >= 0.10.36 |
18 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.36 | |
daf02215 JB |
19 | # for not packaged examples only |
20 | #BuildRequires: gtkmm3-devel >= 3.0 | |
fa39fea6 JB |
21 | BuildRequires: libtool >= 2:1.5 |
22 | BuildRequires: libxml++-devel >= 2.14 | |
23 | BuildRequires: mm-common >= 0.9.5 | |
7ac1844b | 24 | BuildRequires: pkgconfig |
00ae6562 MB |
25 | BuildRequires: tar >= 1:1.22 |
26 | BuildRequires: xz | |
daf02215 | 27 | Requires: glibmm >= 2.28.0 |
865ed30d JB |
28 | Requires: gstreamer >= 0.10.36 |
29 | Requires: gstreamer-plugins-base >= 0.10.36 | |
30 | Requires: libxml++ >= 2.14 | |
7ac1844b | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | gstreamermm provides C++ bindings for the GStreamer streaming | |
35 | multimedia library. With gstreamermm it is possible to develop | |
36 | applications that work with multimedia in C++. | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | gstreamermm dostarcza wiązania C++ dla biblioteki strumieniowej | |
40 | GStreamer. Za pomocą gstreamermm jest możliwe tworzenie aplikacji | |
41 | multimedialnych w C++. | |
42 | ||
43 | %package devel | |
44 | Summary: gstreamermm header files | |
fa39fea6 | 45 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gstreamermm |
7ac1844b | 46 | Group: Development/Libraries |
47 | Requires: %{name} = %{version}-%{release} | |
daf02215 | 48 | Requires: glibmm-devel >= 2.28.0 |
865ed30d JB |
49 | Requires: gstreamer-devel >= 0.10.36 |
50 | Requires: gstreamer-plugins-base-devel >= 0.10.36 | |
fa39fea6 | 51 | Requires: libxml++-devel >= 2.14 |
7ac1844b | 52 | |
53 | %description devel | |
54 | Header files for gstreamermm library. | |
55 | ||
56 | %description devel -l pl.UTF-8 | |
57 | Pliki nagłówkowe biblioteki gstreamermm. | |
58 | ||
fa39fea6 JB |
59 | %package static |
60 | Summary: gstreamermm static libraries | |
61 | Summary(pl.UTF-8): Biblioteki statyczne gstreamermm | |
62 | Group: Development/Libraries | |
63 | Requires: %{name}-devel = %{version}-%{release} | |
64 | ||
65 | %description static | |
66 | gstreamermm static libraries. | |
67 | ||
68 | %description static -l pl.UTF-8 | |
69 | Biblioteki statyczne gstreamermm. | |
70 | ||
7ac1844b | 71 | %package doc |
72 | Summary: Reference documentation for gstreamermm | |
73 | Summary(pl.UTF-8): Szczegółowa dokumentacja gstreamermm | |
74 | Group: Documentation | |
75 | Requires: devhelp | |
76 | ||
77 | %description doc | |
78 | Reference documentation for gstreamermm. | |
79 | ||
80 | %description doc -l pl.UTF-8 | |
81 | Szczegółowa dokumentacja gstreamermm. | |
82 | ||
7ac1844b | 83 | %prep |
84 | %setup -q | |
7ac1844b | 85 | |
86 | %build | |
6c0f4d30 | 87 | %{__libtoolize} |
88 | %{__aclocal} -I build | |
89 | %{__autoconf} | |
90 | %{__autoheader} | |
91 | %{__automake} | |
7ac1844b | 92 | %configure \ |
93 | %{?with_static_libs:--enable-static} | |
94 | %{__make} | |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %{__make} install \ | |
100 | DESTDIR=$RPM_BUILD_ROOT | |
101 | ||
102 | %clean | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %post -p /sbin/ldconfig | |
106 | %postun -p /sbin/ldconfig | |
107 | ||
108 | %files | |
109 | %defattr(644,root,root,755) | |
110 | %doc AUTHORS ChangeLog NEWS README | |
111 | %attr(755,root,root) %{_libdir}/libgstreamermm-0.10.so.*.*.* | |
112 | %attr(755,root,root) %ghost %{_libdir}/libgstreamermm-0.10.so.2 | |
113 | %attr(755,root,root) %{_libdir}/libgstreamermm_get_plugin_defs-0.10.so.*.*.* | |
114 | %attr(755,root,root) %ghost %{_libdir}/libgstreamermm_get_plugin_defs-0.10.so.2 | |
115 | ||
116 | %files devel | |
117 | %defattr(644,root,root,755) | |
118 | %attr(755,root,root) %{_libdir}/libgstreamermm-0.10.so | |
119 | %attr(755,root,root) %{_libdir}/libgstreamermm_get_plugin_defs-0.10.so | |
120 | %{_libdir}/libgstreamermm-0.10.la | |
121 | %{_libdir}/libgstreamermm_get_plugin_defs-0.10.la | |
122 | %{_libdir}/gstreamermm-0.10 | |
123 | %{_includedir}/gstreamermm-0.10 | |
124 | %{_pkgconfigdir}/gstreamermm-0.10.pc | |
125 | ||
7ac1844b | 126 | %if %{with static_libs} |
127 | %files static | |
128 | %defattr(644,root,root,755) | |
129 | %{_libdir}/libgstreamermm-0.10.a | |
130 | %{_libdir}/libgstreamermm_get_plugin_defs-0.10.a | |
131 | %endif | |
fa39fea6 JB |
132 | |
133 | %files doc | |
134 | %defattr(644,root,root,755) | |
135 | %{_docdir}/gstreamermm-0.10 | |
136 | %{_datadir}/devhelp/books/gstreamermm-0.10 |