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