3 %bcond_without qt4 # Qt4 interface
4 %bcond_without qt5 # Qt5 interface
6 # "telepathy_qt" name is occupied by earlier work under the same name from different project;
7 # thus spec and repo stick to original "telepathy-qt4" name of this project (used before 0.9.0 release)
8 %define orgname telepathy-qt
12 Summary: Library for Qt4-based Telepathy clients
13 Summary(pl.UTF-8): Biblioteka dla klientów Telepathy opartych na Qt4
19 Source0: http://telepathy.freedesktop.org/releases/telepathy-qt/%{orgname}-%{version}.tar.gz
20 # Source0-md5: bebebfbe29d194a9ba00b4f422a44f74
21 Patch0: telepathy-qt-warnings.patch
22 URL: http://telepathy.freedesktop.org/wiki/Telepathy-Qt4
23 BuildRequires: cmake >= 2.6
24 BuildRequires: dbus-devel
25 BuildRequires: dbus-glib-devel
26 BuildRequires: farstream-devel >= 0.2.0
27 BuildRequires: glib2-devel >= 2.0
28 BuildRequires: libxml2-devel >= 2.0
29 BuildRequires: pkgconfig
30 BuildRequires: python-dbus
31 BuildRequires: python-devel >= 1:2.5
32 BuildRequires: python-modules >= 1:2.5
33 BuildRequires: python-pygobject
34 BuildRequires: rpmbuild(macros) >= 1.293
35 BuildRequires: telepathy-farstream-devel >= 0.6.0
36 BuildRequires: telepathy-glib-devel >= 0.18.0
38 BuildRequires: QtCore-devel >= %{qt4_ver}
39 BuildRequires: QtDBus-devel >= %{qt4_ver}
40 BuildRequires: QtGui-devel >= %{qt4_ver}
41 BuildRequires: QtHelp >= %{qt4_ver}
42 BuildRequires: QtNetwork-devel >= %{qt4_ver}
43 BuildRequires: QtXml-devel >= %{qt4_ver}
44 BuildRequires: QtTest-devel >= %{qt4_ver}
45 BuildRequires: qt4-build >= %{qt4_ver}
46 BuildRequires: qt4-qmake >= %{qt4_ver}
49 BuildRequires: Qt5Core-devel >= %{qt5_ver}
50 BuildRequires: Qt5DBus-devel >= %{qt5_ver}
51 BuildRequires: Qt5Gui-devel >= %{qt5_ver}
52 BuildRequires: Qt5Network-devel >= %{qt5_ver}
53 BuildRequires: Qt5Test-devel >= %{qt5_ver}
54 BuildRequires: Qt5Widgets-devel >= %{qt5_ver}
55 BuildRequires: Qt5Xml-devel >= %{qt5_ver}
56 BuildRequires: qt5-assistant >= %{qt5_ver}
57 BuildRequires: qt5-build >= %{qt5_ver}
58 BuildRequires: qt5-qmake >= %{qt5_ver}
60 Requires: QtCore >= %{qt4_ver}
61 Requires: QtDBus >= %{qt4_ver}
62 Requires: QtNetwork >= %{qt4_ver}
63 Requires: QtXml >= %{qt4_ver}
64 Requires: telepathy-farstream >= 0.6.0
65 Requires: telepathy-glib >= 0.18.0
66 Obsoletes: telepathy-qt4-yell
67 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70 Library for Qt4-based Telepathy clients.
72 %description -l pl.UTF-8
73 Biblioteka dla klientów Telepathy opartych na Qt4.
76 Summary: Header files for telepathy-qt4 library
77 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki telepathy-qt4
78 Group: Development/Libraries
79 Requires: %{name} = %{version}-%{release}
80 Requires: QtCore-devel >= %{qt4_ver}
81 Requires: QtDBus-devel >= %{qt4_ver}
82 Requires: QtNetwork-devel >= %{qt4_ver}
83 Requires: QtXml-devel >= %{qt4_ver}
84 Obsoletes: telepathy-qt4-yell-devel
87 Header files for telepathy-qt4 library.
89 %description devel -l pl.UTF-8
90 Pliki nagłówkowe biblioteki telepathy-qt4.
93 Summary: API documentation for telepathy-qt4 and telepathy-qt5 libraries
94 Summary(pl.UTF-8): Dokumentacja API bibliotek telepathy-qt5 i telepathy-qt5
98 API documentation for telepathy-qt4 and telepathy-qt5 libraries.
100 %description apidocs -l pl.UTF-8
101 Dokumentacja API bibliotek telepathy-qt5 i telepathy-qt5.
103 %package -n telepathy-qt5
104 Summary: Library for Qt5-based Telepathy clients
105 Summary(pl.UTF-8): Biblioteka dla klientów Telepathy opartych na Qt5
107 Requires: Qt5Core >= %{qt5_ver}
108 Requires: Qt5DBus >= %{qt5_ver}
109 Requires: Qt5Network >= %{qt5_ver}
110 Requires: Qt5Xml >= %{qt5_ver}
111 Requires: telepathy-farstream >= 0.6.0
112 Requires: telepathy-glib >= 0.18.0
114 %description -n telepathy-qt5
115 Library for Qt5-based Telepathy clients.
117 %description -n telepathy-qt5 -l pl.UTF-8
118 Biblioteka dla klientów Telepathy opartych na Qt5.
120 %package -n telepathy-qt5-devel
121 Summary: Header files for telepathy-qt5 library
122 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki telepathy-qt5
123 Group: Development/Libraries
124 Requires: telepathy-qt5 = %{version}-%{release}
125 Requires: Qt5Core-devel >= %{qt5_ver}
126 Requires: Qt5DBus-devel >= %{qt5_ver}
128 %description -n telepathy-qt5-devel
129 Header files for telepathy-qt5 library.
131 %description -n telepathy-qt5-devel -l pl.UTF-8
132 Pliki nagłówkowe biblioteki telepathy-qt5.
135 %setup -q -n %{orgname}-%{version}
143 -DENABLE_FARSTREAM:BOOL=ON \
144 -DDESIRED_QT_VERSION=4 \
145 -DQT_QMAKE_EXECUTABLE_FINDQT=%{_libdir}/qt4/bin/qmake
155 -DENABLE_FARSTREAM:BOOL=ON \
156 -DDESIRED_QT_VERSION=5 \
157 -DQT_QMAKE_EXECUTABLE_FINDQT=%{_libdir}/qt5/bin/qmake
164 rm -rf $RPM_BUILD_ROOT
167 %{__make} -C build-qt4 install \
168 DESTDIR=$RPM_BUILD_ROOT
172 %{__make} -C build-qt5 install \
173 DESTDIR=$RPM_BUILD_ROOT
177 rm -rf $RPM_BUILD_ROOT
179 %post -p /sbin/ldconfig
180 %postun -p /sbin/ldconfig
182 %post -n telepathy-qt5 -p /sbin/ldconfig
183 %postun -n telepathy-qt5 -p /sbin/ldconfig
187 %defattr(644,root,root,755)
188 %doc AUTHORS ChangeLog NEWS README
189 %attr(755,root,root) %{_libdir}/libtelepathy-qt4.so.*.*.*
190 %attr(755,root,root) %ghost %{_libdir}/libtelepathy-qt4.so.2
191 %attr(755,root,root) %{_libdir}/libtelepathy-qt4-farstream.so.*.*.*
192 %attr(755,root,root) %ghost %{_libdir}/libtelepathy-qt4-farstream.so.2
195 %defattr(644,root,root,755)
197 %attr(755,root,root) %{_libdir}/libtelepathy-qt4.so
198 %attr(755,root,root) %{_libdir}/libtelepathy-qt4-farstream.so
199 %{_libdir}/libtelepathy-qt4-service.a
200 %{_libdir}/cmake/TelepathyQt4
201 %{_libdir}/cmake/TelepathyQt4Farstream
202 %{_libdir}/cmake/TelepathyQt4Service
203 %{_includedir}/telepathy-qt4
204 %{_pkgconfigdir}/TelepathyQt4.pc
205 %{_pkgconfigdir}/TelepathyQt4Farstream.pc
206 %{_pkgconfigdir}/TelepathyQt4Service.pc
210 %defattr(644,root,root,755)
214 %files -n telepathy-qt5
215 %defattr(644,root,root,755)
216 %doc AUTHORS ChangeLog NEWS README
217 %attr(755,root,root) %{_libdir}/libtelepathy-qt5.so.*.*.*
218 %attr(755,root,root) %ghost %{_libdir}/libtelepathy-qt5.so.0
219 %attr(755,root,root) %{_libdir}/libtelepathy-qt5-farstream.so.*.*.*
220 %attr(755,root,root) %ghost %{_libdir}/libtelepathy-qt5-farstream.so.0
222 %files -n telepathy-qt5-devel
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_libdir}/libtelepathy-qt5.so
225 %attr(755,root,root) %{_libdir}/libtelepathy-qt5-farstream.so
226 %{_libdir}/libtelepathy-qt5-service.a
227 %{_libdir}/cmake/TelepathyQt5
228 %{_libdir}/cmake/TelepathyQt5Farstream
229 %{_libdir}/cmake/TelepathyQt5Service
230 %{_includedir}/telepathy-qt5
231 %{_pkgconfigdir}/TelepathyQt5.pc
232 %{_pkgconfigdir}/TelepathyQt5Farstream.pc
233 %{_pkgconfigdir}/TelepathyQt5Service.pc