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: 22c0daa7e4f7e48e779f703c9b27b816
21 URL: http://telepathy.freedesktop.org/wiki/Telepathy-Qt4
22 BuildRequires: cmake >= 2.6
23 BuildRequires: dbus-devel
24 BuildRequires: dbus-glib-devel
25 BuildRequires: farstream-devel >= 0.2.0
26 BuildRequires: glib2-devel >= 2.0
27 BuildRequires: libxml2-devel >= 2.0
28 BuildRequires: pkgconfig
29 BuildRequires: python-dbus
30 BuildRequires: python-devel >= 1:2.5
31 BuildRequires: python-modules >= 1:2.5
32 BuildRequires: python-pygobject
33 BuildRequires: rpmbuild(macros) >= 1.293
34 BuildRequires: telepathy-farstream-devel >= 0.6.0
35 BuildRequires: telepathy-glib-devel >= 0.18.0
37 BuildRequires: QtCore-devel >= %{qt4_ver}
38 BuildRequires: QtDBus-devel >= %{qt4_ver}
39 BuildRequires: QtGui-devel >= %{qt4_ver}
40 BuildRequires: QtHelp >= %{qt4_ver}
41 BuildRequires: QtNetwork-devel >= %{qt4_ver}
42 BuildRequires: QtXml-devel >= %{qt4_ver}
43 BuildRequires: QtTest-devel >= %{qt4_ver}
44 BuildRequires: qt4-build >= %{qt4_ver}
45 BuildRequires: qt4-qmake >= %{qt4_ver}
48 BuildRequires: Qt5Core-devel >= %{qt5_ver}
49 BuildRequires: Qt5DBus-devel >= %{qt5_ver}
50 BuildRequires: Qt5Gui-devel >= %{qt5_ver}
51 BuildRequires: Qt5Network-devel >= %{qt5_ver}
52 BuildRequires: Qt5Test-devel >= %{qt5_ver}
53 BuildRequires: Qt5Widgets-devel >= %{qt5_ver}
54 BuildRequires: Qt5Xml-devel >= %{qt5_ver}
55 BuildRequires: qt5-assistant >= %{qt5_ver}
56 BuildRequires: qt5-build >= %{qt5_ver}
57 BuildRequires: qt5-qmake >= %{qt5_ver}
59 Requires: QtCore >= %{qt4_ver}
60 Requires: QtDBus >= %{qt4_ver}
61 Requires: QtNetwork >= %{qt4_ver}
62 Requires: QtXml >= %{qt4_ver}
63 Requires: telepathy-farstream >= 0.6.0
64 Requires: telepathy-glib >= 0.18.0
65 Obsoletes: telepathy-qt4-yell
66 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
69 Library for Qt4-based Telepathy clients.
71 %description -l pl.UTF-8
72 Biblioteka dla klientów Telepathy opartych na Qt4.
75 Summary: Header files for telepathy-qt4 library
76 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki telepathy-qt4
77 Group: Development/Libraries
78 Requires: %{name} = %{version}-%{release}
79 Requires: QtCore-devel >= %{qt4_ver}
80 Requires: QtDBus-devel >= %{qt4_ver}
81 Requires: QtNetwork-devel >= %{qt4_ver}
82 Requires: QtXml-devel >= %{qt4_ver}
83 Obsoletes: telepathy-qt4-yell-devel
86 Header files for telepathy-qt4 library.
88 %description devel -l pl.UTF-8
89 Pliki nagłówkowe biblioteki telepathy-qt4.
92 Summary: API documentation for telepathy-qt4 and telepathy-qt5 libraries
93 Summary(pl.UTF-8): Dokumentacja API bibliotek telepathy-qt5 i telepathy-qt5
97 API documentation for telepathy-qt4 and telepathy-qt5 libraries.
99 %description apidocs -l pl.UTF-8
100 Dokumentacja API bibliotek telepathy-qt5 i telepathy-qt5.
102 %package -n telepathy-qt5
103 Summary: Library for Qt5-based Telepathy clients
104 Summary(pl.UTF-8): Biblioteka dla klientów Telepathy opartych na Qt5
106 Requires: Qt5Core >= %{qt5_ver}
107 Requires: Qt5DBus >= %{qt5_ver}
108 Requires: Qt5Network >= %{qt5_ver}
109 Requires: Qt5Xml >= %{qt5_ver}
110 Requires: telepathy-farstream >= 0.6.0
111 Requires: telepathy-glib >= 0.18.0
113 %description -n telepathy-qt5
114 Library for Qt5-based Telepathy clients.
116 %description -n telepathy-qt5 -l pl.UTF-8
117 Biblioteka dla klientów Telepathy opartych na Qt5.
119 %package -n telepathy-qt5-devel
120 Summary: Header files for telepathy-qt5 library
121 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki telepathy-qt5
122 Group: Development/Libraries
123 Requires: telepathy-qt5 = %{version}-%{release}
124 Requires: Qt5Core-devel >= %{qt5_ver}
125 Requires: Qt5DBus-devel >= %{qt5_ver}
127 %description -n telepathy-qt5-devel
128 Header files for telepathy-qt5 library.
130 %description -n telepathy-qt5-devel -l pl.UTF-8
131 Pliki nagłówkowe biblioteki telepathy-qt5.
134 %setup -q -n %{orgname}-%{version}
141 -DENABLE_FARSTREAM:BOOL=ON \
142 -DDESIRED_QT_VERSION=4 \
143 -DQT_QMAKE_EXECUTABLE_FINDQT=%{_libdir}/qt4/bin/qmake
153 -DENABLE_FARSTREAM:BOOL=ON \
154 -DDESIRED_QT_VERSION=5 \
155 -DQT_QMAKE_EXECUTABLE_FINDQT=%{_libdir}/qt5/bin/qmake
162 rm -rf $RPM_BUILD_ROOT
165 %{__make} -C build-qt4 install \
166 DESTDIR=$RPM_BUILD_ROOT
170 %{__make} -C build-qt5 install \
171 DESTDIR=$RPM_BUILD_ROOT
175 rm -rf $RPM_BUILD_ROOT
177 %post -p /sbin/ldconfig
178 %postun -p /sbin/ldconfig
180 %post -n telepathy-qt5 -p /sbin/ldconfig
181 %postun -n telepathy-qt5 -p /sbin/ldconfig
185 %defattr(644,root,root,755)
186 %doc AUTHORS ChangeLog NEWS README
187 %attr(755,root,root) %{_libdir}/libtelepathy-qt4.so.*.*.*
188 %attr(755,root,root) %ghost %{_libdir}/libtelepathy-qt4.so.2
189 %attr(755,root,root) %{_libdir}/libtelepathy-qt4-farstream.so.*.*.*
190 %attr(755,root,root) %ghost %{_libdir}/libtelepathy-qt4-farstream.so.2
193 %defattr(644,root,root,755)
195 %attr(755,root,root) %{_libdir}/libtelepathy-qt4.so
196 %attr(755,root,root) %{_libdir}/libtelepathy-qt4-farstream.so
197 %{_libdir}/libtelepathy-qt4-service.a
198 %{_libdir}/cmake/TelepathyQt4
199 %{_libdir}/cmake/TelepathyQt4Farstream
200 %{_libdir}/cmake/TelepathyQt4Service
201 %{_includedir}/telepathy-qt4
202 %{_pkgconfigdir}/TelepathyQt4.pc
203 %{_pkgconfigdir}/TelepathyQt4Farstream.pc
204 %{_pkgconfigdir}/TelepathyQt4Service.pc
208 %defattr(644,root,root,755)
212 %files -n telepathy-qt5
213 %defattr(644,root,root,755)
214 %doc AUTHORS ChangeLog NEWS README
215 %attr(755,root,root) %{_libdir}/libtelepathy-qt5.so.*.*.*
216 %attr(755,root,root) %ghost %{_libdir}/libtelepathy-qt5.so.0
217 %attr(755,root,root) %{_libdir}/libtelepathy-qt5-farstream.so.*.*.*
218 %attr(755,root,root) %ghost %{_libdir}/libtelepathy-qt5-farstream.so.0
220 %files -n telepathy-qt5-devel
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_libdir}/libtelepathy-qt5.so
223 %attr(755,root,root) %{_libdir}/libtelepathy-qt5-farstream.so
224 %{_libdir}/libtelepathy-qt5-service.a
225 %{_libdir}/cmake/TelepathyQt5
226 %{_libdir}/cmake/TelepathyQt5Farstream
227 %{_libdir}/cmake/TelepathyQt5Service
228 %{_includedir}/telepathy-qt5
229 %{_pkgconfigdir}/TelepathyQt5.pc
230 %{_pkgconfigdir}/TelepathyQt5Farstream.pc
231 %{_pkgconfigdir}/TelepathyQt5Service.pc