]> git.pld-linux.org Git - packages/phonon.git/blame - phonon.spec
- don't use full version of the so lib file
[packages/phonon.git] / phonon.spec
CommitLineData
a065ff0f
WF
1# Conditional builds
2%bcond_without qt5 # do not build Qt5 version
3
fb39e774 4%define qtver 4.8.1
a065ff0f 5%define qt5ver 5.3.1
2c13f770 6
85decc24
JB
7Summary: Phonon: multimedia API for Qt4/KDE4
8Summary(pl.UTF-8): Phonon - biblioteka multimedialna dla Qt4/KDE4
87d58a79 9Name: phonon
01dfa4c2 10Version: 4.8.2
af2e887a 11Release: 1
85decc24 12License: LGPL v2.1 or LGPL v3
87d58a79 13Group: X11/Libraries
af2e887a 14Source0: ftp://ftp.kde.org/pub/kde/stable/phonon/%{version}/%{name}-%{version}.tar.xz
01dfa4c2 15# Source0-md5: f8893c0f8a7ee449492262a05e7fca89
2067b452 16Patch0: %{name}-pkg.patch
a065ff0f 17#Patch1: fix-plugindir-for-qt-app.patch
174bb316 18URL: http://phonon.kde.org/
a065ff0f
WF
19%if %{with qt5}
20BuildRequires: Qt5DBus-devel >= %{qt5ver}
21BuildRequires: Qt5Designer-devel >= %{qt5ver}
22BuildRequires: Qt5OpenGL-devel >= %{qt5ver}
23BuildRequires: Qt5Qml-devel >= %{qt5ver}
24BuildRequires: Qt5Widgets-devel >= %{qt5ver}
25BuildRequires: qt5-build >= %{qt5ver}
26BuildRequires: qt5-qmake >= %{qt5ver}
27%endif
fe99ef35 28BuildRequires: QtCore-devel >= %{qtver}
29BuildRequires: QtDBus-devel >= %{qtver}
30BuildRequires: QtNetwork-devel >= %{qtver}
31BuildRequires: QtOpenGL-devel >= %{qtver}
32BuildRequires: QtSql-devel >= %{qtver}
33BuildRequires: QtTest-devel >= %{qtver}
34BuildRequires: automoc4 >= 0.9.86
9fb1cf8e 35BuildRequires: cmake >= 2.8.0
ac805375
JB
36BuildRequires: glib2-devel >= 2.0
37BuildRequires: libqzeitgeist-devel >= 0.8
54fe0ccc 38BuildRequires: pkgconfig
63d78ae0 39BuildRequires: pulseaudio-devel >= 0.9.21
fe99ef35 40BuildRequires: qt4-build >= %{qtver}
41BuildRequires: qt4-qmake >= %{qtver}
85decc24 42BuildRequires: rpmbuild(macros) >= 1.603
8da7cae4 43Requires: kde-common-dirs >= 0.5
ac805375 44Requires: libqzeitgeist >= 0.8
90cdc944 45Requires: qt4-phonon-backend
87d58a79 46Provides: qt4-phonon
926de682 47Obsoletes: qt4-phonon
87d58a79 48BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50%description
90fd11ae
ER
51Phonon is the multimedia API for Qt4/KDE4.
52
bbcd3cdf
ER
53Phonon was originally created to allow KDE 4 to be independent of any
54single multimedia framework such as GStreamer or Xine and to provide a
55stable API for KDE4's lifetime. It was done to fix problems of
56frameworks becoming unmaintained, API instability, and to create a
57simple multimedia API.
87d58a79 58
59%description -l pl.UTF-8
85decc24
JB
60Phonon to biblioteka multimedialna dla Qt4/KDE4.
61
62Pierwotnie powstała, aby pozwolić na niezależność KDE 4 od konkretnego
63środowiska multimedialnego, takiego jak GStreamer czy Xine, oraz
64zapewnić stabilne API na cały czas życia KDE4. Została stworzona w
65celu wyeliminowania problemów z porzucaniem bibliotek i
66niestabilnością ich API, a także w celu stworzenia prostego API
67multimedialnego.
87d58a79 68
69%package devel
5095f7de 70Summary: Header files for Phonon library
926de682 71Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Phonon
5095f7de 72Group: X11/Development/Libraries
bbcd3cdf 73Requires: %{name} = %{version}-%{release}
fe99ef35 74Requires: QtCore-devel >= %{qtver}
75Requires: QtDBus-devel >= %{qtver}
76Requires: QtGui-devel >= %{qtver}
87d58a79 77Provides: qt4-phonon-devel
78Obsoletes: qt4-phonon-devel
79
80%description devel
96eb3964 81Header files for Phonon library.
87d58a79 82
83%description devel -l pl.UTF-8
926de682 84Pliki nagłówkowe biblioteki Phonon.
87d58a79 85
a065ff0f
WF
86%package qt5
87Summary: Phonon: multimedia API for Qt5/KDE5
88Summary(pl.UTF-8): Phonon - biblioteka multimedialna dla Qt5/KDE5
89Group: X11/Libraries
90Provides: qt5-phonon
91Obsoletes: qt5-phonon
92
93%description qt5
94Phonon is the multimedia API for Qt5/KDE5.
95
96Phonon was originally created to allow KDE 5 to be independent of any
97single multimedia framework such as GStreamer or Xine and to provide a
98stable API for KDE5's lifetime. It was done to fix problems of
99frameworks becoming unmaintained, API instability, and to create a
100simple multimedia API.
101
102%description qt5 -l pl.UTF-8
103Phonon to biblioteka multimedialna dla Qt5/KDE5.
104
105Pierwotnie powstała, aby pozwolić na niezależność KDE 5 od konkretnego
106środowiska multimedialnego, takiego jak GStreamer czy Xine, oraz
107zapewnić stabilne API na cały czas życia KDE5. Została stworzona w
108celu wyeliminowania problemów z porzucaniem bibliotek i
109niestabilnością ich API, a także w celu stworzenia prostego API
110multimedialnego.
111
112%package qt5-devel
113Summary: Header files for Phonon library
114Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Phonon
115Group: X11/Development/Libraries
116Requires: %{name}-qt5 = %{version}-%{release}
117Requires: Qt5Core-devel >= %{qt5ver}
118Requires: Qt5DBus-devel >= %{qt5ver}
119Requires: Qt5Gui-devel >= %{qt5ver}
120Provides: qt5-phonon-devel
121Obsoletes: qt5-phonon-devel
122
123%description qt5-devel
124Header files for Phonon library.
125
126%description qt5-devel -l pl.UTF-8
127Pliki nagłówkowe biblioteki Phonon.
128
87d58a79 129%prep
72fa65d1 130%setup -q
2067b452 131%patch0 -p1
af2e887a 132#%patch1 -p1
fb39e774 133
87d58a79 134
135%build
136install -d build
137cd build
ac805375
JB
138# disable designer plugin - currently packaged in QtDesigner package
139%cmake .. \
140 -DPHONON_BUILD_DESIGNER_PLUGIN=OFF
a065ff0f 141%{__make}
87d58a79 142
a065ff0f
WF
143cd ..
144%if %{with qt5}
145install -d build5
146cd build5
147%cmake .. \
148 -DPHONON_BUILD_DESIGNER_PLUGIN=OFF \
149 -DPHONON_BUILD_PHONON4QT5=ON \
150 -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON
87d58a79 151%{__make}
a065ff0f 152%endif
87d58a79 153
154%install
155rm -rf $RPM_BUILD_ROOT
156
157%{__make} -C build install \
158 DESTDIR=$RPM_BUILD_ROOT
159
90fd11ae 160install -d $RPM_BUILD_ROOT%{_includedir}/qt4
e144db61 161install -d $RPM_BUILD_ROOT%{_libdir}/kde4/plugins/phonon_backend
5d50300b 162install -d $RPM_BUILD_ROOT%{_datadir}/kde4/services/phononbackends
90fd11ae
ER
163ln -s ../phonon $RPM_BUILD_ROOT%{_includedir}/qt4/phonon
164ln -s ../KDE/Phonon $RPM_BUILD_ROOT%{_includedir}/phonon/Phonon
22eeef83 165
a065ff0f
WF
166%if %{with qt5}
167%{__make} -C build5 install \
168 DESTDIR=$RPM_BUILD_ROOT
169%endif
170
87d58a79 171%clean
172rm -rf $RPM_BUILD_ROOT
173
174%post -p /sbin/ldconfig
175%postun -p /sbin/ldconfig
176
a065ff0f
WF
177%post qt5 -p /sbin/ldconfig
178%postun qt5 -p /sbin/ldconfig
179
87d58a79 180%files
181%defattr(644,root,root,755)
182%attr(755,root,root) %{_libdir}/libphonon.so.*.*.*
bbcd3cdf 183%attr(755,root,root) %ghost %{_libdir}/libphonon.so.4
87d58a79 184%attr(755,root,root) %{_libdir}/libphononexperimental.so.*.*.*
bbcd3cdf 185%attr(755,root,root) %ghost %{_libdir}/libphononexperimental.so.4
87d58a79 186%{_datadir}/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml
e144db61 187%dir %{_libdir}/kde4/plugins/phonon_backend
5d50300b 188%dir %{_datadir}/kde4/services/phononbackends
2f158ee4 189
87d58a79 190%files devel
191%defattr(644,root,root,755)
85decc24
JB
192%attr(755,root,root) %{_libdir}/libphonon.so
193%attr(755,root,root) %{_libdir}/libphononexperimental.so
87d58a79 194%{_includedir}/phonon
79b366d8 195%dir %{_includedir}/KDE
87d58a79 196%{_includedir}/KDE/Phonon
22eeef83 197%{_includedir}/qt4/phonon
87d58a79 198%{_pkgconfigdir}/phonon.pc
ac805375 199%{_libdir}/cmake/phonon
03bc6914 200%dir %{_datadir}/phonon
61643aa7 201%{_datadir}/phonon/buildsystem
e09d576b 202%{_datadir}/qt4/mkspecs/modules/qt_phonon.pri
a065ff0f
WF
203
204%if %{with qt5}
205%files qt5
206%defattr(644,root,root,755)
207%attr(755,root,root) %ghost %{_libdir}/libphonon4qt5.so.4
846b6e56 208%attr(755,root,root) %{_libdir}/libphonon4qt5.so.*.*.*
a065ff0f 209%attr(755,root,root) %ghost %{_libdir}/libphonon4qt5experimental.so.4
846b6e56 210%attr(755,root,root) %{_libdir}/libphonon4qt5experimental.so.*.*.*
a065ff0f
WF
211%{_datadir}/dbus-1/interfaces/org.kde.Phonon4Qt5.AudioOutput.xml
212%{_datadir}/phonon4qt5
213
214%files qt5-devel
215%defattr(644,root,root,755)
216%{_includedir}/phonon4qt5
217%{_libdir}/cmake/phonon4qt5
218%attr(755,root,root) %{_libdir}/libphonon4qt5.so
219%attr(755,root,root) %{_libdir}/libphonon4qt5experimental.so
220%{_pkgconfigdir}/phonon4qt5.pc
221%{_libdir}/qt5/mkspecs/modules/qt_phonon4qt5.pri
222%endif
This page took 0.123813 seconds and 4 git commands to generate.