]>
Commit | Line | Data |
---|---|---|
7f0af8e4 | 1 | %define qtver 4.5.1 |
926de682 | 2 | Summary: Multimedia API for KDE 4 |
96eb3964 | 3 | Summary(pl.UTF-8): Biblioteka Phonon |
87d58a79 | 4 | Name: phonon |
4b567681 | 5 | Version: 4.3.1 |
ddf2a6c1 | 6 | Release: 4 |
96eb3964 | 7 | License: LGPL v2.1 |
87d58a79 | 8 | Group: X11/Libraries |
ddf2a6c1 | 9 | Source0: ftp://ftp.kde.org/pub/kde/stable/4.3.1/src/%{name}-%{version}.tar.bz2 |
4b567681 | 10 | # Source0-md5: 767cb68052c108e95f293f30acdef3fb |
ddf2a6c1 | 11 | Patch0: %{name}-pkgconfig.patch |
174bb316 | 12 | URL: http://phonon.kde.org/ |
fe99ef35 | 13 | BuildRequires: QtCore-devel >= %{qtver} |
14 | BuildRequires: QtDBus-devel >= %{qtver} | |
15 | BuildRequires: QtNetwork-devel >= %{qtver} | |
16 | BuildRequires: QtOpenGL-devel >= %{qtver} | |
17 | BuildRequires: QtSql-devel >= %{qtver} | |
18 | BuildRequires: QtTest-devel >= %{qtver} | |
19 | BuildRequires: automoc4 >= 0.9.86 | |
20 | BuildRequires: cmake >= 2.6.2 | |
21 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.0 | |
22 | BuildRequires: qt4-build >= %{qtver} | |
23 | BuildRequires: qt4-qmake >= %{qtver} | |
87d58a79 | 24 | BuildRequires: rpmbuild(macros) >= 1.293 |
fe99ef35 | 25 | BuildRequires: xine-lib-devel >= 2:1.1.15-4 |
1e777a36 | 26 | Requires: kde-common-dirs >= 0.4 |
87d58a79 | 27 | Provides: qt4-phonon |
fe99ef35 | 28 | Obsoletes: kde4-phonon-xine |
926de682 | 29 | Obsoletes: qt4-phonon |
87d58a79 | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
926de682 ER |
33 | Phonon is the multimedia API for KDE 4. Phonon was created to allow |
34 | KDE 4 to be independent of any single multimedia framework such as | |
35 | GStreamer or xine and to provide a stable API for KDE 4's lifetime. It | |
36 | was done to fix problems of frameworks becoming unmaintained, API | |
37 | instability, and to create a simple multimedia API. | |
87d58a79 | 38 | |
39 | %description -l pl.UTF-8 | |
40 | Biblioteka phonon. | |
41 | ||
42 | %package devel | |
5095f7de | 43 | Summary: Header files for Phonon library |
926de682 | 44 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Phonon |
5095f7de | 45 | Group: X11/Development/Libraries |
87d58a79 | 46 | Requires: %{name} == %{version}-%{release} |
fe99ef35 | 47 | Requires: QtCore-devel >= %{qtver} |
48 | Requires: QtDBus-devel >= %{qtver} | |
49 | Requires: QtGui-devel >= %{qtver} | |
87d58a79 | 50 | Provides: qt4-phonon-devel |
51 | Obsoletes: qt4-phonon-devel | |
52 | ||
53 | %description devel | |
96eb3964 | 54 | Header files for Phonon library. |
87d58a79 | 55 | |
56 | %description devel -l pl.UTF-8 | |
926de682 | 57 | Pliki nagłówkowe biblioteki Phonon. |
87d58a79 | 58 | |
59 | %prep | |
60 | %setup -q | |
87d58a79 | 61 | |
62 | %build | |
63 | install -d build | |
64 | cd build | |
fe99ef35 | 65 | %cmake \ |
87d58a79 | 66 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
67 | %if "%{_lib}" == "lib64" | |
fe99ef35 | 68 | -DLIB_SUFFIX=64 \ |
87d58a79 | 69 | %endif |
fe99ef35 | 70 | .. |
87d58a79 | 71 | |
72 | %{__make} | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %{__make} -C build install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post -p /sbin/ldconfig | |
84 | %postun -p /sbin/ldconfig | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
88 | %attr(755,root,root) %{_libdir}/libphonon.so.*.*.* | |
fe99ef35 | 89 | %attr(755,root,root) %ghost %{_libdir}/libphonon.so.? |
87d58a79 | 90 | %attr(755,root,root) %{_libdir}/libphononexperimental.so.*.*.* |
fe99ef35 | 91 | %attr(755,root,root) %ghost %{_libdir}/libphononexperimental.so.? |
92 | %attr(755,root,root) %{_libdir}/kde4/plugins/phonon_backend/phonon_xine.so | |
93 | %dir %{_datadir}/kde4/services/phononbackends | |
94 | %{_datadir}/kde4/services/phononbackends/xine.desktop | |
4c962966 | 95 | %dir %{_libdir}/kde4/plugins |
87d58a79 | 96 | %dir %{_libdir}/kde4/plugins/phonon_backend |
97 | %attr(755,root,root) %{_libdir}/kde4/plugins/phonon_backend/phonon_gstreamer.so | |
87d58a79 | 98 | %{_datadir}/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml |
4c962966 | 99 | %dir %{_datadir}/kde4 |
100 | %dir %{_datadir}/kde4/services | |
87d58a79 | 101 | %dir %{_datadir}/kde4/services/phononbackends |
102 | %{_datadir}/kde4/services/phononbackends/gstreamer.desktop | |
fe99ef35 | 103 | %{_iconsdir}/oxygen/*/apps/phonon-xine.png |
87d58a79 | 104 | |
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
fe99ef35 | 107 | %{_libdir}/libphonon.so |
108 | %{_libdir}/libphononexperimental.so | |
87d58a79 | 109 | %{_includedir}/phonon |
79b366d8 | 110 | %dir %{_includedir}/KDE |
87d58a79 | 111 | %{_includedir}/KDE/Phonon |
112 | %{_pkgconfigdir}/phonon.pc |