]>
Commit | Line | Data |
---|---|---|
dc918bbd | 1 | # NOTE: 4.10.3 is the last version with Qt4 support |
e7f6dce0 JB |
2 | # |
3 | # Conditional build: | |
a0b16f30 | 4 | %bcond_without zeitgeist # enable zeitgeist (via libqzeitgeist) supoort |
a065ff0f | 5 | |
e7f6dce0 | 6 | %define qt4_ver 4.8.1 |
2c13f770 | 7 | |
85decc24 JB |
8 | Summary: Phonon: multimedia API for Qt4/KDE4 |
9 | Summary(pl.UTF-8): Phonon - biblioteka multimedialna dla Qt4/KDE4 | |
87d58a79 | 10 | Name: phonon |
dc918bbd | 11 | Version: 4.10.3 |
ed85dd04 | 12 | Release: 3 |
85decc24 | 13 | License: LGPL v2.1 or LGPL v3 |
87d58a79 | 14 | Group: X11/Libraries |
dc918bbd JR |
15 | Source0: https://download.kde.org/stable/phonon/%{version}/%{name}-%{version}.tar.xz |
16 | # Source0-md5: 839e7ddc5bc5284cf4cffb8ebd00b4f7 | |
2067b452 | 17 | Patch0: %{name}-pkg.patch |
0c3f61e3 | 18 | Patch1: x32.patch |
174bb316 | 19 | URL: http://phonon.kde.org/ |
e7f6dce0 JB |
20 | BuildRequires: QtCore-devel >= %{qt4_ver} |
21 | BuildRequires: QtDBus-devel >= %{qt4_ver} | |
22 | BuildRequires: QtDeclarative-devel >= %{qt4_ver} | |
23 | BuildRequires: QtGui-devel >= %{qt4_ver} | |
24 | BuildRequires: QtNetwork-devel >= %{qt4_ver} | |
25 | BuildRequires: QtOpenGL-devel >= %{qt4_ver} | |
26 | BuildRequires: QtSql-devel >= %{qt4_ver} | |
27 | BuildRequires: QtTest-devel >= %{qt4_ver} | |
9fb1cf8e | 28 | BuildRequires: cmake >= 2.8.0 |
ac805375 | 29 | BuildRequires: glib2-devel >= 2.0 |
9fdf14c7 | 30 | %{?with_zeitgeist:BuildRequires: libqzeitgeist-devel >= 0.8} |
54fe0ccc | 31 | BuildRequires: pkgconfig |
63d78ae0 | 32 | BuildRequires: pulseaudio-devel >= 0.9.21 |
e7f6dce0 JB |
33 | BuildRequires: qt4-build >= %{qt4_ver} |
34 | BuildRequires: qt4-qmake >= %{qt4_ver} | |
85decc24 | 35 | BuildRequires: rpmbuild(macros) >= 1.603 |
e7f6dce0 JB |
36 | Requires: QtCore >= %{qt4_ver} |
37 | Requires: QtDBus >= %{qt4_ver} | |
38 | Requires: QtGui >= %{qt4_ver} | |
39 | Requires: QtOpenGL >= %{qt4_ver} | |
8da7cae4 | 40 | Requires: kde-common-dirs >= 0.5 |
9fdf14c7 | 41 | %{?with_zeitgeist:Requires: libqzeitgeist >= 0.8} |
90cdc944 | 42 | Requires: qt4-phonon-backend |
87d58a79 | 43 | Provides: qt4-phonon |
926de682 | 44 | Obsoletes: qt4-phonon |
87d58a79 | 45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
46 | ||
47 | %description | |
90fd11ae ER |
48 | Phonon is the multimedia API for Qt4/KDE4. |
49 | ||
bbcd3cdf ER |
50 | Phonon was originally created to allow KDE 4 to be independent of any |
51 | single multimedia framework such as GStreamer or Xine and to provide a | |
52 | stable API for KDE4's lifetime. It was done to fix problems of | |
53 | frameworks becoming unmaintained, API instability, and to create a | |
54 | simple multimedia API. | |
87d58a79 | 55 | |
56 | %description -l pl.UTF-8 | |
85decc24 JB |
57 | Phonon to biblioteka multimedialna dla Qt4/KDE4. |
58 | ||
59 | Pierwotnie powstała, aby pozwolić na niezależność KDE 4 od konkretnego | |
60 | środowiska multimedialnego, takiego jak GStreamer czy Xine, oraz | |
61 | zapewnić stabilne API na cały czas życia KDE4. Została stworzona w | |
62 | celu wyeliminowania problemów z porzucaniem bibliotek i | |
63 | niestabilnością ich API, a także w celu stworzenia prostego API | |
64 | multimedialnego. | |
87d58a79 | 65 | |
66 | %package devel | |
5095f7de | 67 | Summary: Header files for Phonon library |
926de682 | 68 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Phonon |
5095f7de | 69 | Group: X11/Development/Libraries |
bbcd3cdf | 70 | Requires: %{name} = %{version}-%{release} |
e7f6dce0 JB |
71 | Requires: QtCore-devel >= %{qt4_ver} |
72 | Requires: QtDBus-devel >= %{qt4_ver} | |
73 | Requires: QtGui-devel >= %{qt4_ver} | |
87d58a79 | 74 | Provides: qt4-phonon-devel |
75 | Obsoletes: qt4-phonon-devel | |
76 | ||
77 | %description devel | |
96eb3964 | 78 | Header files for Phonon library. |
87d58a79 | 79 | |
80 | %description devel -l pl.UTF-8 | |
926de682 | 81 | Pliki nagłówkowe biblioteki Phonon. |
87d58a79 | 82 | |
e7f6dce0 JB |
83 | %package -n QtDeclarative-plugin-phonon |
84 | Summary: Phonon plugin for Qt4 QtDeclarative library | |
85 | Summary(pl.UTF-8): Wtyczka Phonon dla biblioteki Qt4 QtDeclarative | |
86 | Group: X11/Libraries | |
87 | Requires: %{name} = %{version}-%{release} | |
88 | Requires: QtDeclarative >= %{qt4_ver} | |
89 | ||
90 | %description -n QtDeclarative-plugin-phonon | |
91 | Phonon plugin for Qt4 QtDeclarative library. | |
92 | ||
93 | %description -n QtDeclarative-plugin-phonon -l pl.UTF-8 | |
94 | Wtyczka Phonon dla biblioteki Qt4 QtDeclarative. | |
95 | ||
87d58a79 | 96 | %prep |
72fa65d1 | 97 | %setup -q |
2067b452 | 98 | %patch0 -p1 |
4c2c985a | 99 | %patch1 -p1 |
87d58a79 | 100 | |
101 | %build | |
102 | install -d build | |
103 | cd build | |
ac805375 JB |
104 | # disable designer plugin - currently packaged in QtDesigner package |
105 | %cmake .. \ | |
e7f6dce0 | 106 | -DPHONON_BUILD_DECLARATIVE_PLUGIN=ON \ |
ac805375 | 107 | -DPHONON_BUILD_DESIGNER_PLUGIN=OFF |
a065ff0f | 108 | %{__make} |
87d58a79 | 109 | |
87d58a79 | 110 | %install |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %{__make} -C build install \ | |
114 | DESTDIR=$RPM_BUILD_ROOT | |
115 | ||
90fd11ae | 116 | install -d $RPM_BUILD_ROOT%{_includedir}/qt4 |
e144db61 | 117 | install -d $RPM_BUILD_ROOT%{_libdir}/kde4/plugins/phonon_backend |
5d50300b | 118 | install -d $RPM_BUILD_ROOT%{_datadir}/kde4/services/phononbackends |
90fd11ae ER |
119 | ln -s ../phonon $RPM_BUILD_ROOT%{_includedir}/qt4/phonon |
120 | ln -s ../KDE/Phonon $RPM_BUILD_ROOT%{_includedir}/phonon/Phonon | |
22eeef83 | 121 | |
87d58a79 | 122 | %clean |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
125 | %post -p /sbin/ldconfig | |
126 | %postun -p /sbin/ldconfig | |
127 | ||
de8e2a85 | 128 | %files |
87d58a79 | 129 | %defattr(644,root,root,755) |
130 | %attr(755,root,root) %{_libdir}/libphonon.so.*.*.* | |
bbcd3cdf | 131 | %attr(755,root,root) %ghost %{_libdir}/libphonon.so.4 |
87d58a79 | 132 | %attr(755,root,root) %{_libdir}/libphononexperimental.so.*.*.* |
bbcd3cdf | 133 | %attr(755,root,root) %ghost %{_libdir}/libphononexperimental.so.4 |
87d58a79 | 134 | %{_datadir}/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml |
e144db61 | 135 | %dir %{_libdir}/kde4/plugins/phonon_backend |
5d50300b | 136 | %dir %{_datadir}/kde4/services/phononbackends |
2f158ee4 | 137 | |
87d58a79 | 138 | %files devel |
139 | %defattr(644,root,root,755) | |
85decc24 JB |
140 | %attr(755,root,root) %{_libdir}/libphonon.so |
141 | %attr(755,root,root) %{_libdir}/libphononexperimental.so | |
87d58a79 | 142 | %{_includedir}/phonon |
79b366d8 | 143 | %dir %{_includedir}/KDE |
87d58a79 | 144 | %{_includedir}/KDE/Phonon |
22eeef83 | 145 | %{_includedir}/qt4/phonon |
87d58a79 | 146 | %{_pkgconfigdir}/phonon.pc |
ac805375 | 147 | %{_libdir}/cmake/phonon |
03bc6914 | 148 | %dir %{_datadir}/phonon |
61643aa7 | 149 | %{_datadir}/phonon/buildsystem |
e09d576b | 150 | %{_datadir}/qt4/mkspecs/modules/qt_phonon.pri |
a065ff0f | 151 | |
e7f6dce0 JB |
152 | %files -n QtDeclarative-plugin-phonon |
153 | %defattr(644,root,root,755) | |
154 | %dir %{_libdir}/qt4/imports/Phonon | |
155 | %attr(755,root,root) %{_libdir}/qt4/imports/Phonon/libphononqmlplugin.so | |
156 | %{_libdir}/qt4/imports/Phonon/VideoPlayer.qml | |
157 | %{_libdir}/qt4/imports/Phonon/qmldir |