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