]> git.pld-linux.org Git - packages/telepathy-qt4.git/blob - telepathy-qt4.spec
0a1d0462b7548d4a4c86d33469d7c0b5f0e37825
[packages/telepathy-qt4.git] / telepathy-qt4.spec
1
2 %define         orgname telepathy-qt
3 %define         qt_ver          4.8.2
4
5 Summary:        Library for Qt4-based Telepathy clients
6 Summary(pl.UTF-8):      Biblioteka dla klientów Telepathy opartych na Qt4
7 Name:           telepathy-qt4
8 Version:        0.9.3
9 Release:        4
10 License:        LGPL v2.1
11 Group:          X11/Applications
12 Source0:        http://telepathy.freedesktop.org/releases/telepathy-qt/%{orgname}-%{version}.tar.gz
13 # Source0-md5:  94ac93aedf5f6fff49837bc8368e5a37
14 Patch0:         %{name}-build.patch
15 URL:            http://telepathy.freedesktop.org/wiki/Telepathy-Qt4
16 BuildRequires:  QtCore-devel >= %{qt_ver}
17 BuildRequires:  QtDBus-devel >= %{qt_ver}
18 BuildRequires:  QtGui-devel >= %{qt_ver}
19 BuildRequires:  QtNetwork-devel >= %{qt_ver}
20 BuildRequires:  QtXml-devel >= %{qt_ver}
21 BuildRequires:  QtTest-devel >= %{qt_ver}
22 BuildRequires:  cmake >= 2.6
23 BuildRequires:  dbus-devel
24 BuildRequires:  dbus-glib-devel
25 BuildRequires:  farstream-devel >= 0.1.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:  qt4-build >= %{qt_ver}
34 BuildRequires:  qt4-qmake >= %{qt_ver}
35 BuildRequires:  rpmbuild(macros) >= 1.293
36 BuildRequires:  telepathy-farstream-devel >= 0.2.2
37 BuildRequires:  telepathy-glib-devel >= 0.19.5
38 Requires:       QtCore >= %{qt_ver}
39 Requires:       QtDBus >= %{qt_ver}
40 Requires:       QtNetwork >= %{qt_ver}
41 Requires:       QtXml >= %{qt_ver}
42 Requires:       telepathy-farstream >= 0.2.2
43 Requires:       telepathy-glib >= 0.19.5
44 Obsoletes:      telepathy-qt4-yell
45 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47 %description
48 Library for Qt4-based Telepathy clients.
49
50 %description -l pl.UTF-8
51 Biblioteka dla klientów Telepathy opartych na Qt4.
52
53 %package devel
54 Summary:        Header files for telepathy-qt4 library
55 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki telepathy-qt4
56 Group:          Development/Libraries
57 Requires:       %{name} = %{version}-%{release}
58 Requires:       QtCore-devel >= %{qt_ver}
59 Requires:       QtDBus-devel >= %{qt_ver}
60 Obsoletes:      telepathy-qt4-yell-devel
61
62 %description devel
63 Header files for telepathy-qt4 library.
64
65 %description devel -l pl.UTF-8
66 Pliki nagłówkowe biblioteki telepathy-qt4
67
68 %prep
69 %setup -q -n %{orgname}-%{version}
70 %patch0 -p1
71
72 %build
73 install -d build
74 cd build
75 %cmake \
76         -DENABLE_FARSTREAM:BOOL=ON \
77         -DENABLE_FARSIGHT:BOOL=OFF \
78         -DQT_QMAKE_EXECUTABLE_FINDQT=%{_libdir}/qt4/bin/qmake \
79         ../
80
81 %{__make}
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85
86 %{__make} -C build install \
87         DESTDIR=$RPM_BUILD_ROOT
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %post   -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
94
95 %files
96 %defattr(644,root,root,755)
97 %doc AUTHORS ChangeLog NEWS README
98 %attr(755,root,root) %{_libdir}/libtelepathy-qt4.so.*.*.*
99 %attr(755,root,root) %ghost %{_libdir}/libtelepathy-qt4.so.2
100 %attr(755,root,root) %{_libdir}/libtelepathy-qt4-farstream.so.*.*.*
101 %attr(755,root,root) %ghost %{_libdir}/libtelepathy-qt4-farstream.so.2
102
103 %files devel
104 %defattr(644,root,root,755)
105 %doc doc/html
106 %attr(755,root,root) %{_libdir}/libtelepathy-qt4.so
107 %attr(755,root,root) %{_libdir}/libtelepathy-qt4-farstream.so
108 %{_libdir}/cmake/TelepathyQt4
109 %{_libdir}/cmake/TelepathyQt4Farstream
110 %{_includedir}/telepathy-qt4
111 %{_pkgconfigdir}/TelepathyQt4.pc
112 %{_pkgconfigdir}/TelepathyQt4Farstream.pc
This page took 0.145686 seconds and 2 git commands to generate.