]>
Commit | Line | Data |
---|---|---|
d9c999a5 | 1 | |
1865d69b | 2 | %define orgname telepathy-qt |
1f9778f5 | 3 | %define qt_ver 4.8.2 |
d9c999a5 | 4 | |
bfe5cf24 JB |
5 | Summary: Library for Qt4-based Telepathy clients |
6 | Summary(pl.UTF-8): Biblioteka dla klientów Telepathy opartych na Qt4 | |
978e3d8c | 7 | Name: telepathy-qt4 |
1865d69b | 8 | Version: 0.9.3 |
34c867e1 | 9 | Release: 3 |
978e3d8c AM |
10 | License: LGPL v2.1 |
11 | Group: X11/Applications | |
1865d69b AM |
12 | Source0: http://telepathy.freedesktop.org/releases/telepathy-qt/%{orgname}-%{version}.tar.gz |
13 | # Source0-md5: 94ac93aedf5f6fff49837bc8368e5a37 | |
978e3d8c AM |
14 | URL: http://telepathy.freedesktop.org/wiki/Telepathy-Qt4 |
15 | BuildRequires: QtCore-devel >= %{qt_ver} | |
16 | BuildRequires: QtDBus-devel >= %{qt_ver} | |
17 | BuildRequires: QtGui-devel >= %{qt_ver} | |
d9c999a5 | 18 | BuildRequires: QtNetwork-devel >= %{qt_ver} |
bfe5cf24 | 19 | BuildRequires: QtXml-devel >= %{qt_ver} |
d9c999a5 | 20 | BuildRequires: QtTest-devel >= %{qt_ver} |
bfe5cf24 JB |
21 | BuildRequires: cmake >= 2.6 |
22 | BuildRequires: dbus-devel | |
23 | BuildRequires: dbus-glib-devel | |
24 | BuildRequires: farstream-devel >= 0.1.0 | |
25 | BuildRequires: glib2-devel >= 2.0 | |
26 | BuildRequires: libxml2-devel >= 2.0 | |
978e3d8c | 27 | BuildRequires: pkgconfig |
e521664a | 28 | BuildRequires: python-dbus |
bfe5cf24 JB |
29 | BuildRequires: python-devel >= 1:2.5 |
30 | BuildRequires: python-modules >= 1:2.5 | |
e521664a | 31 | BuildRequires: python-pygobject |
978e3d8c AM |
32 | BuildRequires: qt4-build >= %{qt_ver} |
33 | BuildRequires: qt4-qmake >= %{qt_ver} | |
34 | BuildRequires: rpmbuild(macros) >= 1.293 | |
34c867e1 | 35 | BuildRequires: telepathy-farstream-devel >= 0.2.2 |
1865d69b | 36 | BuildRequires: telepathy-glib-devel >= 0.19.5 |
bfe5cf24 JB |
37 | Requires: QtCore >= %{qt_ver} |
38 | Requires: QtDBus >= %{qt_ver} | |
39 | Requires: QtNetwork >= %{qt_ver} | |
40 | Requires: QtXml >= %{qt_ver} | |
41 | Requires: telepathy-farstream >= 0.2.2 | |
42 | Requires: telepathy-glib >= 0.19.5 | |
bcc96c2f | 43 | Obsoletes: telepathy-qt4-yell |
978e3d8c AM |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
45 | ||
46 | %description | |
bfe5cf24 JB |
47 | Library for Qt4-based Telepathy clients. |
48 | ||
49 | %description -l pl.UTF-8 | |
50 | Biblioteka dla klientów Telepathy opartych na Qt4. | |
978e3d8c AM |
51 | |
52 | %package devel | |
53 | Summary: Header files for telepathy-qt4 library | |
54 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki telepathy-qt4 | |
55 | Group: Development/Libraries | |
56 | Requires: %{name} = %{version}-%{release} | |
bfe5cf24 JB |
57 | Requires: QtCore-devel >= %{qt_ver} |
58 | Requires: QtDBus-devel >= %{qt_ver} | |
bcc96c2f | 59 | Obsoletes: telepathy-qt4-yell-devel |
978e3d8c AM |
60 | |
61 | %description devel | |
62 | Header files for telepathy-qt4 library. | |
63 | ||
64 | %description devel -l pl.UTF-8 | |
65 | Pliki nagłówkowe biblioteki telepathy-qt4 | |
66 | ||
978e3d8c | 67 | %prep |
1865d69b | 68 | %setup -q -n %{orgname}-%{version} |
978e3d8c AM |
69 | |
70 | %build | |
1f9778f5 AM |
71 | install -d build |
72 | cd build | |
73 | %cmake \ | |
0f75cb27 | 74 | -DQT_QMAKE_EXECUTABLE_FINDQT=%{_libdir}/qt4/bin/qmake \ |
1f9778f5 AM |
75 | ../ |
76 | ||
978e3d8c AM |
77 | %{__make} |
78 | ||
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
1f9778f5 AM |
82 | %{__make} -C build install \ |
83 | DESTDIR=$RPM_BUILD_ROOT | |
978e3d8c AM |
84 | |
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post -p /sbin/ldconfig | |
89 | %postun -p /sbin/ldconfig | |
90 | ||
91 | %files | |
92 | %defattr(644,root,root,755) | |
93 | %doc AUTHORS ChangeLog NEWS README | |
d9c999a5 | 94 | %attr(755,root,root) %{_libdir}/libtelepathy-qt4.so.*.*.* |
bfe5cf24 | 95 | %attr(755,root,root) %ghost %{_libdir}/libtelepathy-qt4.so.2 |
34c867e1 | 96 | %attr(755,root,root) %{_libdir}/libtelepathy-qt4-farstream.so.*.*.* |
bfe5cf24 | 97 | %attr(755,root,root) %ghost %{_libdir}/libtelepathy-qt4-farstream.so.2 |
978e3d8c AM |
98 | |
99 | %files devel | |
100 | %defattr(644,root,root,755) | |
101 | %doc doc/html | |
102 | %attr(755,root,root) %{_libdir}/libtelepathy-qt4.so | |
34c867e1 | 103 | %attr(755,root,root) %{_libdir}/libtelepathy-qt4-farstream.so |
1865d69b | 104 | %{_libdir}/cmake/TelepathyQt4 |
34c867e1 | 105 | %{_libdir}/cmake/TelepathyQt4Farstream |
1865d69b | 106 | %{_includedir}/telepathy-qt4 |
978e3d8c | 107 | %{_pkgconfigdir}/TelepathyQt4.pc |
34c867e1 | 108 | %{_pkgconfigdir}/TelepathyQt4Farstream.pc |