]> git.pld-linux.org Git - packages/telepathy-qt4.git/blame - telepathy-qt4.spec
- updated to 0.9.6.1
[packages/telepathy-qt4.git] / telepathy-qt4.spec
CommitLineData
cac18b25
JB
1#
2# Conditional build:
3%bcond_without qt4 # Qt4 interface
4%bcond_without qt5 # Qt5 interface
d9c999a5 5
cac18b25
JB
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)
1865d69b 8%define orgname telepathy-qt
cac18b25
JB
9%define qt4_ver 4.8.2
10%define qt5_ver 5.0.0
d9c999a5 11
bfe5cf24
JB
12Summary: Library for Qt4-based Telepathy clients
13Summary(pl.UTF-8): Biblioteka dla klientów Telepathy opartych na Qt4
978e3d8c 14Name: telepathy-qt4
aecbea1f
JB
15Version: 0.9.6.1
16Release: 1
cac18b25
JB
17License: LGPL v2.1+
18Group: Libraries
1865d69b 19Source0: http://telepathy.freedesktop.org/releases/telepathy-qt/%{orgname}-%{version}.tar.gz
aecbea1f
JB
20# Source0-md5: bebebfbe29d194a9ba00b4f422a44f74
21Patch0: telepathy-qt-warnings.patch
978e3d8c 22URL: http://telepathy.freedesktop.org/wiki/Telepathy-Qt4
bfe5cf24
JB
23BuildRequires: cmake >= 2.6
24BuildRequires: dbus-devel
25BuildRequires: dbus-glib-devel
96bc7e81 26BuildRequires: farstream-devel >= 0.2.0
bfe5cf24
JB
27BuildRequires: glib2-devel >= 2.0
28BuildRequires: libxml2-devel >= 2.0
978e3d8c 29BuildRequires: pkgconfig
e521664a 30BuildRequires: python-dbus
bfe5cf24
JB
31BuildRequires: python-devel >= 1:2.5
32BuildRequires: python-modules >= 1:2.5
e521664a 33BuildRequires: python-pygobject
978e3d8c 34BuildRequires: rpmbuild(macros) >= 1.293
96bc7e81 35BuildRequires: telepathy-farstream-devel >= 0.6.0
cac18b25
JB
36BuildRequires: telepathy-glib-devel >= 0.18.0
37%if %{with qt4}
38BuildRequires: QtCore-devel >= %{qt4_ver}
39BuildRequires: QtDBus-devel >= %{qt4_ver}
40BuildRequires: QtGui-devel >= %{qt4_ver}
41BuildRequires: QtHelp >= %{qt4_ver}
42BuildRequires: QtNetwork-devel >= %{qt4_ver}
43BuildRequires: QtXml-devel >= %{qt4_ver}
44BuildRequires: QtTest-devel >= %{qt4_ver}
45BuildRequires: qt4-build >= %{qt4_ver}
46BuildRequires: qt4-qmake >= %{qt4_ver}
47%endif
48%if %{with qt5}
49BuildRequires: Qt5Core-devel >= %{qt5_ver}
50BuildRequires: Qt5DBus-devel >= %{qt5_ver}
51BuildRequires: Qt5Gui-devel >= %{qt5_ver}
52BuildRequires: Qt5Network-devel >= %{qt5_ver}
53BuildRequires: Qt5Test-devel >= %{qt5_ver}
54BuildRequires: Qt5Widgets-devel >= %{qt5_ver}
55BuildRequires: Qt5Xml-devel >= %{qt5_ver}
56BuildRequires: qt5-assistant >= %{qt5_ver}
57BuildRequires: qt5-build >= %{qt5_ver}
58BuildRequires: qt5-qmake >= %{qt5_ver}
59%endif
60Requires: QtCore >= %{qt4_ver}
61Requires: QtDBus >= %{qt4_ver}
62Requires: QtNetwork >= %{qt4_ver}
63Requires: QtXml >= %{qt4_ver}
96bc7e81 64Requires: telepathy-farstream >= 0.6.0
cac18b25 65Requires: telepathy-glib >= 0.18.0
bcc96c2f 66Obsoletes: telepathy-qt4-yell
978e3d8c
AM
67BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
68
69%description
bfe5cf24
JB
70Library for Qt4-based Telepathy clients.
71
72%description -l pl.UTF-8
73Biblioteka dla klientów Telepathy opartych na Qt4.
978e3d8c
AM
74
75%package devel
76Summary: Header files for telepathy-qt4 library
77Summary(pl.UTF-8): Pliki nagłówkowe biblioteki telepathy-qt4
78Group: Development/Libraries
79Requires: %{name} = %{version}-%{release}
cac18b25
JB
80Requires: QtCore-devel >= %{qt4_ver}
81Requires: QtDBus-devel >= %{qt4_ver}
82Requires: QtNetwork-devel >= %{qt4_ver}
83Requires: QtXml-devel >= %{qt4_ver}
bcc96c2f 84Obsoletes: telepathy-qt4-yell-devel
978e3d8c
AM
85
86%description devel
87Header files for telepathy-qt4 library.
88
89%description devel -l pl.UTF-8
cac18b25
JB
90Pliki nagłówkowe biblioteki telepathy-qt4.
91
92%package apidocs
93Summary: API documentation for telepathy-qt4 and telepathy-qt5 libraries
94Summary(pl.UTF-8): Dokumentacja API bibliotek telepathy-qt5 i telepathy-qt5
95Group: Documentation
96
97%description apidocs
98API documentation for telepathy-qt4 and telepathy-qt5 libraries.
99
100%description apidocs -l pl.UTF-8
101Dokumentacja API bibliotek telepathy-qt5 i telepathy-qt5.
102
103%package -n telepathy-qt5
104Summary: Library for Qt5-based Telepathy clients
105Summary(pl.UTF-8): Biblioteka dla klientów Telepathy opartych na Qt5
106Group: Libraries
107Requires: Qt5Core >= %{qt5_ver}
108Requires: Qt5DBus >= %{qt5_ver}
109Requires: Qt5Network >= %{qt5_ver}
110Requires: Qt5Xml >= %{qt5_ver}
96bc7e81 111Requires: telepathy-farstream >= 0.6.0
cac18b25
JB
112Requires: telepathy-glib >= 0.18.0
113
114%description -n telepathy-qt5
115Library for Qt5-based Telepathy clients.
116
117%description -n telepathy-qt5 -l pl.UTF-8
118Biblioteka dla klientów Telepathy opartych na Qt5.
119
120%package -n telepathy-qt5-devel
121Summary: Header files for telepathy-qt5 library
122Summary(pl.UTF-8): Pliki nagłówkowe biblioteki telepathy-qt5
123Group: Development/Libraries
124Requires: telepathy-qt5 = %{version}-%{release}
125Requires: Qt5Core-devel >= %{qt5_ver}
126Requires: Qt5DBus-devel >= %{qt5_ver}
127
128%description -n telepathy-qt5-devel
129Header files for telepathy-qt5 library.
130
131%description -n telepathy-qt5-devel -l pl.UTF-8
132Pliki nagłówkowe biblioteki telepathy-qt5.
978e3d8c 133
978e3d8c 134%prep
1865d69b 135%setup -q -n %{orgname}-%{version}
aecbea1f 136%patch0 -p1
978e3d8c
AM
137
138%build
cac18b25
JB
139%if %{with qt4}
140install -d build-qt4
141cd build-qt4
142%cmake .. \
143 -DENABLE_FARSTREAM:BOOL=ON \
a4c49aa8 144 -DDESIRED_QT_VERSION=4 \
cac18b25
JB
145 -DQT_QMAKE_EXECUTABLE_FINDQT=%{_libdir}/qt4/bin/qmake
146
147%{__make}
148cd ..
149%endif
150
151%if %{with qt5}
152install -d build-qt5
153cd build-qt5
154%cmake .. \
78f577fa 155 -DENABLE_FARSTREAM:BOOL=ON \
a4c49aa8 156 -DDESIRED_QT_VERSION=5 \
cac18b25 157 -DQT_QMAKE_EXECUTABLE_FINDQT=%{_libdir}/qt5/bin/qmake
1f9778f5 158
978e3d8c 159%{__make}
cac18b25
JB
160cd ..
161%endif
978e3d8c
AM
162
163%install
164rm -rf $RPM_BUILD_ROOT
165
cac18b25
JB
166%if %{with qt4}
167%{__make} -C build-qt4 install \
1f9778f5 168 DESTDIR=$RPM_BUILD_ROOT
cac18b25
JB
169%endif
170
171%if %{with qt5}
172%{__make} -C build-qt5 install \
173 DESTDIR=$RPM_BUILD_ROOT
174%endif
978e3d8c
AM
175
176%clean
177rm -rf $RPM_BUILD_ROOT
178
179%post -p /sbin/ldconfig
180%postun -p /sbin/ldconfig
181
cac18b25
JB
182%post -n telepathy-qt5 -p /sbin/ldconfig
183%postun -n telepathy-qt5 -p /sbin/ldconfig
184
185%if %{with qt4}
978e3d8c
AM
186%files
187%defattr(644,root,root,755)
188%doc AUTHORS ChangeLog NEWS README
d9c999a5 189%attr(755,root,root) %{_libdir}/libtelepathy-qt4.so.*.*.*
bfe5cf24 190%attr(755,root,root) %ghost %{_libdir}/libtelepathy-qt4.so.2
34c867e1 191%attr(755,root,root) %{_libdir}/libtelepathy-qt4-farstream.so.*.*.*
bfe5cf24 192%attr(755,root,root) %ghost %{_libdir}/libtelepathy-qt4-farstream.so.2
978e3d8c
AM
193
194%files devel
195%defattr(644,root,root,755)
196%doc doc/html
197%attr(755,root,root) %{_libdir}/libtelepathy-qt4.so
34c867e1 198%attr(755,root,root) %{_libdir}/libtelepathy-qt4-farstream.so
96bc7e81 199%{_libdir}/libtelepathy-qt4-service.a
1865d69b 200%{_libdir}/cmake/TelepathyQt4
34c867e1 201%{_libdir}/cmake/TelepathyQt4Farstream
96bc7e81 202%{_libdir}/cmake/TelepathyQt4Service
1865d69b 203%{_includedir}/telepathy-qt4
978e3d8c 204%{_pkgconfigdir}/TelepathyQt4.pc
34c867e1 205%{_pkgconfigdir}/TelepathyQt4Farstream.pc
96bc7e81 206%{_pkgconfigdir}/TelepathyQt4Service.pc
cac18b25
JB
207%endif
208
209%files apidocs
210%defattr(644,root,root,755)
211%doc doc/html/*
212
213%if %{with qt5}
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
221
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
96bc7e81 226%{_libdir}/libtelepathy-qt5-service.a
cac18b25
JB
227%{_libdir}/cmake/TelepathyQt5
228%{_libdir}/cmake/TelepathyQt5Farstream
96bc7e81 229%{_libdir}/cmake/TelepathyQt5Service
cac18b25
JB
230%{_includedir}/telepathy-qt5
231%{_pkgconfigdir}/TelepathyQt5.pc
232%{_pkgconfigdir}/TelepathyQt5Farstream.pc
96bc7e81 233%{_pkgconfigdir}/TelepathyQt5Service.pc
cac18b25 234%endif
This page took 0.142344 seconds and 4 git commands to generate.