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