]>
Commit | Line | Data |
---|---|---|
470bf762 | 1 | %define qtver 4.6.2 |
638775fd | 2 | |
90fd11ae | 3 | Summary: Multimedia API for Qt4/KDE4 |
96eb3964 | 4 | Summary(pl.UTF-8): Biblioteka Phonon |
87d58a79 | 5 | Name: phonon |
470bf762 | 6 | Version: 4.4.0 |
7 | Release: 1 | |
96eb3964 | 8 | License: LGPL v2.1 |
87d58a79 | 9 | Group: X11/Libraries |
470bf762 | 10 | Source0: ftp://ftp.kde.org/pub/kde/stable/phonon/%{version}/%{name}-%{version}.tgz |
11 | # Source0-md5: 80544b876cf0e0af05f2303b3f534351 | |
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 |
54fe0ccc | 23 | BuildRequires: pkgconfig |
63d78ae0 | 24 | BuildRequires: pulseaudio-devel >= 0.9.21 |
fe99ef35 | 25 | BuildRequires: qt4-build >= %{qtver} |
26 | BuildRequires: qt4-qmake >= %{qtver} | |
87d58a79 | 27 | BuildRequires: rpmbuild(macros) >= 1.293 |
fe99ef35 | 28 | BuildRequires: xine-lib-devel >= 2:1.1.15-4 |
1e777a36 | 29 | Requires: kde-common-dirs >= 0.4 |
e6a96ad8 | 30 | Suggests: qt4-phonon-backend |
87d58a79 | 31 | Provides: qt4-phonon |
926de682 | 32 | Obsoletes: qt4-phonon |
87d58a79 | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
90fd11ae ER |
36 | Phonon is the multimedia API for Qt4/KDE4. |
37 | ||
38 | Phonon was created to allow KDE4 to be independent of any single | |
39 | multimedia framework such as GStreamer or Xine and to provide a stable | |
40 | API for KDE4's lifetime. It was done to fix problems of frameworks | |
41 | becoming unmaintained, API instability, and to create a simple | |
42 | multimedia API. | |
87d58a79 | 43 | |
44 | %description -l pl.UTF-8 | |
45 | Biblioteka phonon. | |
46 | ||
47 | %package devel | |
5095f7de | 48 | Summary: Header files for Phonon library |
926de682 | 49 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Phonon |
5095f7de | 50 | Group: X11/Development/Libraries |
87d58a79 | 51 | Requires: %{name} == %{version}-%{release} |
fe99ef35 | 52 | Requires: QtCore-devel >= %{qtver} |
53 | Requires: QtDBus-devel >= %{qtver} | |
54 | Requires: QtGui-devel >= %{qtver} | |
87d58a79 | 55 | Provides: qt4-phonon-devel |
56 | Obsoletes: qt4-phonon-devel | |
57 | ||
58 | %description devel | |
96eb3964 | 59 | Header files for Phonon library. |
87d58a79 | 60 | |
61 | %description devel -l pl.UTF-8 | |
926de682 | 62 | Pliki nagłówkowe biblioteki Phonon. |
87d58a79 | 63 | |
62777b70 BZ |
64 | %package backend-xine |
65 | Summary: Xine backend for Phonon | |
66 | Summary(pl.UTF-8): Wtyczki Xine dla Phonon | |
67 | Group: Libraries | |
68 | Requires: %{name} = %{version}-%{release} | |
9fb1cf8e | 69 | Requires: xine-decode-ogg |
62777b70 BZ |
70 | Provides: qt4-phonon-backend = %{version} |
71 | Obsoletes: kde4-phonon-xine | |
72 | ||
73 | %description backend-xine | |
74 | Xine backend for Phonon. | |
75 | ||
76 | %description backend-xine -l pl.UTF-8 | |
77 | Wtyczki Xine dla Phonon. | |
78 | ||
79 | %package backend-gstreamer | |
80 | Summary: GStreamer backend for Phonon | |
81 | Summary(pl.UTF-8): Wtyczki GStreamera dla Phonon | |
82 | Group: Libraries | |
83 | Requires: %{name} = %{version}-%{release} | |
84 | Provides: qt4-phonon-backend = %{version} | |
85 | ||
86 | %description backend-gstreamer | |
87 | GStreamer backend for Phonon. | |
88 | ||
89 | %description backend-gstreamer -l pl.UTF-8 | |
90 | Wtyczki GStreamera dla Phonon. | |
91 | ||
87d58a79 | 92 | %prep |
470bf762 | 93 | %setup -q -n %{name}-4.4 |
2067b452 | 94 | %patch0 -p1 |
87d58a79 | 95 | |
96 | %build | |
97 | install -d build | |
98 | cd build | |
fe99ef35 | 99 | %cmake \ |
ce7eddf7 | 100 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ |
87d58a79 | 101 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
102 | %if "%{_lib}" == "lib64" | |
fe99ef35 | 103 | -DLIB_SUFFIX=64 \ |
87d58a79 | 104 | %endif |
fe99ef35 | 105 | .. |
87d58a79 | 106 | |
107 | %{__make} | |
108 | ||
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %{__make} -C build install \ | |
113 | DESTDIR=$RPM_BUILD_ROOT | |
114 | ||
90fd11ae ER |
115 | install -d $RPM_BUILD_ROOT%{_includedir}/qt4 |
116 | ln -s ../phonon $RPM_BUILD_ROOT%{_includedir}/qt4/phonon | |
117 | ln -s ../KDE/Phonon $RPM_BUILD_ROOT%{_includedir}/phonon/Phonon | |
22eeef83 | 118 | |
87d58a79 | 119 | %clean |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %post -p /sbin/ldconfig | |
123 | %postun -p /sbin/ldconfig | |
124 | ||
125 | %files | |
126 | %defattr(644,root,root,755) | |
127 | %attr(755,root,root) %{_libdir}/libphonon.so.*.*.* | |
fe99ef35 | 128 | %attr(755,root,root) %ghost %{_libdir}/libphonon.so.? |
87d58a79 | 129 | %attr(755,root,root) %{_libdir}/libphononexperimental.so.*.*.* |
fe99ef35 | 130 | %attr(755,root,root) %ghost %{_libdir}/libphononexperimental.so.? |
2f158ee4 BZ |
131 | %dir %{_datadir}/kde4 |
132 | %dir %{_datadir}/kde4/services | |
133 | %dir %{_datadir}/kde4/services/phononbackends | |
fe99ef35 | 134 | %dir %{_datadir}/kde4/services/phononbackends |
638775fd | 135 | %dir %{_libdir}/kde4 |
4c962966 | 136 | %dir %{_libdir}/kde4/plugins |
87d58a79 | 137 | %dir %{_libdir}/kde4/plugins/phonon_backend |
87d58a79 | 138 | %{_datadir}/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml |
2f158ee4 | 139 | |
62777b70 | 140 | %files backend-xine |
90fd11ae | 141 | %defattr(644,root,root,755) |
2f158ee4 BZ |
142 | %attr(755,root,root) %{_libdir}/kde4/plugins/phonon_backend/phonon_xine.so |
143 | %{_datadir}/kde4/services/phononbackends/xine.desktop | |
fe99ef35 | 144 | %{_iconsdir}/oxygen/*/apps/phonon-xine.png |
87d58a79 | 145 | |
62777b70 | 146 | %files backend-gstreamer |
90fd11ae | 147 | %defattr(644,root,root,755) |
2f158ee4 BZ |
148 | %attr(755,root,root) %{_libdir}/kde4/plugins/phonon_backend/phonon_gstreamer.so |
149 | %{_datadir}/kde4/services/phononbackends/gstreamer.desktop | |
150 | ||
87d58a79 | 151 | %files devel |
152 | %defattr(644,root,root,755) | |
fe99ef35 | 153 | %{_libdir}/libphonon.so |
154 | %{_libdir}/libphononexperimental.so | |
87d58a79 | 155 | %{_includedir}/phonon |
79b366d8 | 156 | %dir %{_includedir}/KDE |
87d58a79 | 157 | %{_includedir}/KDE/Phonon |
22eeef83 | 158 | %{_includedir}/qt4/phonon |
87d58a79 | 159 | %{_pkgconfigdir}/phonon.pc |