]>
Commit | Line | Data |
---|---|---|
30e7d152 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without qt4 # Qt4 Phonon backend | |
4 | %bcond_without qt5 # Qt5 Phonon (Phonon4Qt5) backend | |
5 | ||
7bb991bc | 6 | %define phonon_ver 4.7.0 |
30e7d152 JB |
7 | %define qt4_ver 4.7.1 |
8 | %define qt5_ver 4.7.1 | |
51b68df8 | 9 | %define kdever 4.5.5 |
7bb991bc | 10 | %define vlc_ver 2.0.1 |
9a2990e7 | 11 | |
12 | Summary: VLC backend for Phonon | |
13 | Summary(pl.UTF-8): Wtyczka VLC dla Phonona | |
14 | Name: phonon-backend-vlc | |
a5faab1c | 15 | Version: 0.8.2 |
30e7d152 | 16 | Release: 3 |
7bb991bc | 17 | License: LGPL v2.1+ |
9a2990e7 | 18 | Group: X11/Applications |
b128acc6 | 19 | Source0: http://download.kde.org/stable/phonon/phonon-backend-vlc/%{version}/src/%{name}-%{version}.tar.xz |
a5faab1c | 20 | # Source0-md5: 3937517ce4929dea4398ad9834507f97 |
9a2990e7 | 21 | #URL: http:// |
7bb991bc | 22 | BuildRequires: cmake >= 2.8.6 |
7bb991bc | 23 | BuildRequires: vlc-devel >= %{vlc_ver} |
30e7d152 JB |
24 | BuildRequires: rpmbuild(macros) >= 1.605 |
25 | %if %{with qt4} | |
26 | BuildRequires: QtCore-devel >= %{qt4_ver} | |
27 | BuildRequires: QtGui-devel >= %{qt4_ver} | |
28 | BuildRequires: phonon-devel >= %{phonon_ver} | |
29 | BuildRequires: qt4-build >= %{qt4_ver} | |
30 | BuildRequires: qt4-qmake >= %{qt4_ver} | |
31 | %endif | |
32 | %if %{with qt5} | |
33 | BuildRequires: Qt5Core-devel >= %{qt5_ver} | |
34 | BuildRequires: Qt5Gui-devel >= %{qt5_ver} | |
35 | BuildRequires: Qt5Widgets-devel >= %{qt5_ver} | |
36 | BuildRequires: phonon-qt5-devel >= %{phonon_ver} | |
37 | BuildRequires: qt5-build >= %{qt5_ver} | |
38 | BuildRequires: qt5-qmake >= %{qt5_ver} | |
39 | %endif | |
7bb991bc JB |
40 | Requires: phonon >= %{phonon_ver} |
41 | Requires: vlc >= %{vlc_ver} | |
8da16c49 | 42 | Provides: qt4-phonon-backend = %{version} |
9a2990e7 | 43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
44 | ||
45 | %description | |
46 | VLC backend for Phonon. | |
47 | ||
48 | %description -l pl.UTF-8 | |
49 | Wtyczka VLC dla Phonona. | |
50 | ||
30e7d152 JB |
51 | %package -n phonon-qt5-backend-vlc |
52 | Summary: VLC backend for Qt5 Phonon | |
53 | Summary(pl.UTF-8): Wtyczka VLC dla Phonona opartego na Qt5 | |
54 | Group: Libraries | |
55 | Requires: phonon-qt5 >= %{phonon_ver} | |
56 | Requires: vlc >= %{vlc_ver} | |
57 | Provides: qt5-phonon-backend = %{version} | |
58 | ||
59 | %description -n phonon-qt5-backend-vlc | |
60 | VLC backend for Qt5 Phonon. | |
61 | ||
62 | %description -n phonon-qt5-backend-vlc -l pl.UTF-8 | |
63 | Wtyczka VLC dla Phonona opartego na Qt5. | |
64 | ||
9a2990e7 | 65 | %prep |
66 | %setup -q | |
67 | ||
68 | %build | |
30e7d152 JB |
69 | %if %{with qt4} |
70 | install -d build-qt4 | |
71 | cd build-qt4 | |
72 | %cmake .. | |
73 | %{__make} -j1 | |
74 | cd .. | |
75 | %endif | |
9a2990e7 | 76 | |
30e7d152 JB |
77 | %if %{with qt5} |
78 | install -d build-qt5 | |
79 | cd build-qt5 | |
80 | %cmake .. \ | |
81 | -DPHONON_BUILD_PHONON4QT5=ON | |
6788d12e | 82 | %{__make} -j1 |
30e7d152 JB |
83 | cd .. |
84 | %endif | |
9a2990e7 | 85 | |
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
30e7d152 JB |
89 | %if %{with qt4} |
90 | %{__make} -C build-qt4 install \ | |
91 | DESTDIR=$RPM_BUILD_ROOT | |
92 | %endif | |
93 | ||
94 | %if %{with qt5} | |
95 | %{__make} -C build-qt5 install \ | |
9a2990e7 | 96 | DESTDIR=$RPM_BUILD_ROOT |
30e7d152 | 97 | %endif |
9a2990e7 | 98 | |
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
30e7d152 | 102 | %if %{with qt4} |
9a2990e7 | 103 | %files |
104 | %defattr(644,root,root,755) | |
7bb991bc | 105 | %doc AUTHORS |
9a2990e7 | 106 | %attr(755,root,root) %{_libdir}/kde4/plugins/phonon_backend/phonon_vlc.so |
107 | %{_datadir}/kde4/services/phononbackends/vlc.desktop | |
30e7d152 JB |
108 | %endif |
109 | ||
110 | %if %{with qt5} | |
111 | %files -n phonon-qt5-backend-vlc | |
112 | %defattr(644,root,root,755) | |
113 | %attr(755,root,root) %{_libdir}/qt5/plugins/phonon4qt5_backend/phonon_vlc.so | |
114 | %endif |