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