]>
Commit | Line | Data |
---|---|---|
76a2e470 | 1 | # |
465d9a7c RT |
2 | # Conditional build: |
3 | %bcond_without apidocs # do not prepare API documentation | |
76a2e470 | 4 | # |
b415cfb4 | 5 | %define qtver 4.5.2 |
1407e147 | 6 | %define _state stable |
805357fc | 7 | %define orgname kdepimlibs |
b415cfb4 | 8 | %define svn 979380 |
9 | ||
76a2e470 JB |
10 | Summary: Personal Information Management (PIM) libraries for KDE |
11 | Summary(pl.UTF-8): Biblioteki zarządzania informacjami osobistymi (PIM) dla KDE | |
3985f3d1 | 12 | Name: kde4-kdepimlibs |
b415cfb4 | 13 | Version: 4.3.0 |
14 | Release: 1 | |
465d9a7c RT |
15 | License: GPL |
16 | Group: X11/Applications | |
4fb4fc81 | 17 | Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.bz2 |
b415cfb4 | 18 | # Source0-md5: 313f1a9d353f82c2ffee517115404dd5 |
19 | #Patch100: %{name}-branch.diff | |
9aa55fb0 | 20 | BuildRequires: Qt3Support-devel >= %{qtver} |
d7a0eb54 | 21 | BuildRequires: QtCore-devel >= %{qtver} |
22 | BuildRequires: QtDBus-devel >= %{qtver} | |
23 | BuildRequires: QtGui-devel >= %{qtver} | |
24 | BuildRequires: QtSvg-devel >= %{qtver} | |
3917ea05 | 25 | BuildRequires: QtTest-devel >= %{qtver} |
b415cfb4 | 26 | BuildRequires: QtXml-devel >= %{qtver} |
27 | BuildRequires: akonadi-devel >= 1.1.95 | |
9aa55fb0 | 28 | BuildRequires: automoc4 >= 0.9.88 |
465d9a7c | 29 | BuildRequires: bison |
1d2e36d6 | 30 | BuildRequires: boost-devel >= 1.35.0 |
7b6b81a1 | 31 | BuildRequires: cmake >= 2.6.3 |
465d9a7c RT |
32 | BuildRequires: cyrus-sasl-devel |
33 | BuildRequires: docbook-dtd42-xml | |
34 | %{?with_apidocs:BuildRequires: doxygen} | |
465d9a7c | 35 | BuildRequires: flex |
465d9a7c RT |
36 | BuildRequires: gpgme-devel |
37 | %{?with_apidocs:BuildRequires: graphviz} | |
6ef0fbce | 38 | BuildRequires: kde4-kdelibs-devel >= %{version} |
b415cfb4 | 39 | BuildRequires: libical-devel >= 0.43 |
465d9a7c RT |
40 | BuildRequires: openssl-devel |
41 | BuildRequires: pcre-devel | |
d7a0eb54 | 42 | BuildRequires: qt4-build >= %{qtver} |
43 | %{?with_apidocs:BuildRequires: qt4-doc >= %{qtver}} | |
44 | BuildRequires: qt4-qmake >= %{qtver} | |
74bc8b78 | 45 | BuildRequires: rpmbuild(macros) >= 1.293 |
465d9a7c RT |
46 | BuildRequires: zlib-devel |
47 | BuildConflicts: indexlib | |
48 | BuildConflicts: kdepim-kontact-libs | |
49 | BuildConflicts: kdepim-libkmailprivate | |
9aa55fb0 | 50 | Requires(post,postun): /sbin/ldconfig |
b415cfb4 | 51 | Requires: %{name} = %{version}-%{release} |
3985f3d1 | 52 | Obsoletes: kdepimlibs4 |
c4690781 | 53 | Conflicts: kdelibs |
3985f3d1 | 54 | Conflicts: kdepimlibs4 |
465d9a7c RT |
55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
56 | ||
465d9a7c | 57 | %description |
76a2e470 JB |
58 | kdepimlibs is a collection of Personal Information Management (PIM) |
59 | libraries for the K Desktop Environment (KDE). | |
465d9a7c RT |
60 | |
61 | %description -l pl.UTF-8 | |
76a2e470 | 62 | kdepimlibs to zestaw bibliotek PIM dla K Desktop Environment (KDE). |
465d9a7c RT |
63 | |
64 | %package devel | |
76a2e470 JB |
65 | Summary: Development files for KDE PIM libraries |
66 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek KDE PIM | |
465d9a7c | 67 | Group: X11/Development/Libraries |
310b49d7 | 68 | Requires: %{name} = %{version}-%{release} |
3a292712 | 69 | Requires: kde4-kdelibs-devel >= %{version} |
465d9a7c RT |
70 | |
71 | %description devel | |
72 | This package contains header files needed if you wish to build | |
76a2e470 | 73 | applications based on kdepimlibs. |
465d9a7c RT |
74 | |
75 | %description devel -l pl.UTF-8 | |
76 | Pakiet ten zawiera pliki nagłówkowe potrzebne do budowy aplikacji | |
76a2e470 | 77 | opartych na kdepimlibs. |
465d9a7c RT |
78 | |
79 | %prep | |
80 | %setup -q -n %{orgname}-%{version} | |
b415cfb4 | 81 | ##%setup -q -n %{orgname}-%{version}svn%{svn} |
61e0855c | 82 | #%patch100 -p0 |
465d9a7c RT |
83 | |
84 | %build | |
97ea6728 | 85 | install -d build |
465d9a7c RT |
86 | cd build |
87 | %cmake \ | |
88 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
b415cfb4 | 89 | -DLIB_INSTALL_DIR=%{_libdir} \ |
d93ee9a1 | 90 | -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \ |
a0f6ae38 | 91 | -DCMAKE_BUILD_TYPE=%{!?debug:release}%{?debug:debug} \ |
a4df2387 | 92 | %if "%{_lib}" == "lib64" |
93 | -DLIB_SUFFIX=64 \ | |
94 | %endif | |
465d9a7c RT |
95 | ../ |
96 | ||
97 | %{__make} | |
98 | ||
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %{__make} -C build/ install \ | |
103 | DESTDIR=$RPM_BUILD_ROOT \ | |
104 | kde_htmldir=%{_kdedocdir} | |
105 | ||
106 | %clean | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
805357fc JB |
109 | %post -p /sbin/ldconfig |
110 | %postun -p /sbin/ldconfig | |
465d9a7c RT |
111 | |
112 | %files | |
113 | %defattr(644,root,root,755) | |
114 | %attr(755,root,root) %{_libdir}/libkabc.so.4.*.* | |
805357fc | 115 | %attr(755,root,root) %ghost %{_libdir}/libkabc.so.4 |
465d9a7c | 116 | %attr(755,root,root) %{_libdir}/libkabc_file_core.so.4.*.* |
805357fc | 117 | %attr(755,root,root) %ghost %{_libdir}/libkabc_file_core.so.4 |
465d9a7c | 118 | %attr(755,root,root) %{_libdir}/libkcal.so.4.*.* |
805357fc | 119 | %attr(755,root,root) %ghost %{_libdir}/libkcal.so.4 |
465d9a7c | 120 | %attr(755,root,root) %{_libdir}/libkldap.so.4.*.* |
805357fc | 121 | %attr(755,root,root) %ghost %{_libdir}/libkldap.so.4 |
465d9a7c | 122 | %attr(755,root,root) %{_libdir}/libkresources.so.4.*.* |
805357fc | 123 | %attr(755,root,root) %ghost %{_libdir}/libkresources.so.4 |
465d9a7c | 124 | %attr(755,root,root) %{_libdir}/libktnef.so.4.*.* |
805357fc | 125 | %attr(755,root,root) %ghost %{_libdir}/libktnef.so.4 |
465d9a7c | 126 | %attr(755,root,root) %{_libdir}/libkxmlrpcclient.so.4.*.* |
805357fc | 127 | %attr(755,root,root) %ghost %{_libdir}/libkxmlrpcclient.so.4 |
e18e743d | 128 | %attr(755,root,root) %{_libdir}/libgpgme++-pthread.so.2.*.* |
9aa55fb0 | 129 | %attr(755,root,root) %ghost %{_libdir}/libgpgme++-pthread.so.2 |
e18e743d | 130 | %attr(755,root,root) %{_libdir}/libgpgme++.so.2.*.* |
9aa55fb0 | 131 | %attr(755,root,root) %ghost %{_libdir}/libgpgme++.so.2 |
465d9a7c | 132 | %attr(755,root,root) %{_libdir}/libkblog.so.4.*.* |
805357fc | 133 | %attr(755,root,root) %ghost %{_libdir}/libkblog.so.4 |
465d9a7c | 134 | %attr(755,root,root) %{_libdir}/libkimap.so.4.*.* |
805357fc | 135 | %attr(755,root,root) %ghost %{_libdir}/libkimap.so.4 |
465d9a7c | 136 | %attr(755,root,root) %{_libdir}/libkmime.so.4.*.* |
805357fc | 137 | %attr(755,root,root) %ghost %{_libdir}/libkmime.so.4 |
465d9a7c | 138 | %attr(755,root,root) %{_libdir}/libkpimidentities.so.4.*.* |
805357fc | 139 | %attr(755,root,root) %ghost %{_libdir}/libkpimidentities.so.4 |
465d9a7c | 140 | %attr(755,root,root) %{_libdir}/libkpimutils.so.4.*.* |
805357fc | 141 | %attr(755,root,root) %ghost %{_libdir}/libkpimutils.so.4 |
465d9a7c | 142 | %attr(755,root,root) %{_libdir}/libmailtransport.so.4.*.* |
805357fc | 143 | %attr(755,root,root) %ghost %{_libdir}/libmailtransport.so.4 |
465d9a7c | 144 | %attr(755,root,root) %{_libdir}/libqgpgme.so.1.*.* |
9aa55fb0 | 145 | %attr(755,root,root) %ghost %{_libdir}/libqgpgme.so.1 |
e18e743d | 146 | %attr(755,root,root) %{_libdir}/libgpgme++-pth.so.2.*.* |
9aa55fb0 | 147 | %attr(755,root,root) %ghost %{_libdir}/libgpgme++-pth.so.2 |
805357fc | 148 | %attr(755,root,root) %ghost %{_libdir}/libsyndication.so.4 |
9aa55fb0 | 149 | %attr(755,root,root) %{_libdir}/libsyndication.so.4.*.* |
01d426f1 | 150 | %attr(755,root,root) %ghost %{_libdir}/libakonadi-kde.so.4 |
151 | %attr(755,root,root) %{_libdir}/libakonadi-kde.so.4.*.* | |
152 | %attr(755,root,root) %ghost %{_libdir}/libakonadi-kmime.so.4 | |
153 | %attr(755,root,root) %{_libdir}/libakonadi-kmime.so.4.*.* | |
9aa55fb0 | 154 | %attr(755,root,root) %ghost %{_libdir}/libakonadi-kabc.so.4 |
155 | %attr(755,root,root) %{_libdir}/libakonadi-kabc.so.4.*.* | |
b415cfb4 | 156 | %attr(755,root,root) %ghost %{_libdir}/libkholidays.so.4 |
157 | %attr(755,root,root) %{_libdir}/libkholidays.so.4.*.* | |
158 | %attr(755,root,root) %ghost %{_libdir}/libkpimtextedit.so.4 | |
159 | %attr(755,root,root) %{_libdir}/libkpimtextedit.so.4.*.* | |
160 | %attr(755,root,root) %ghost %{_libdir}/libmicroblog.so.4 | |
161 | %attr(755,root,root) %{_libdir}/libmicroblog.so.4.*.* | |
465d9a7c RT |
162 | |
163 | %attr(755,root,root) %{_libdir}/kde4/kabc_directory.so | |
164 | %attr(755,root,root) %{_libdir}/kde4/kabc_file.so | |
165 | %attr(755,root,root) %{_libdir}/kde4/kabc_ldapkio.so | |
166 | %attr(755,root,root) %{_libdir}/kde4/kabc_net.so | |
167 | %attr(755,root,root) %{_libdir}/kde4/kabcformat_binary.so | |
168 | %attr(755,root,root) %{_libdir}/kde4/kcal_local.so | |
169 | %attr(755,root,root) %{_libdir}/kde4/kcal_localdir.so | |
170 | %attr(755,root,root) %{_libdir}/kde4/kcm_kresources.so | |
171 | %attr(755,root,root) %{_libdir}/kde4/kcm_mailtransport.so | |
172 | %attr(755,root,root) %{_libdir}/kde4/kio_imap4.so | |
173 | %attr(755,root,root) %{_libdir}/kde4/kio_ldap.so | |
174 | %attr(755,root,root) %{_libdir}/kde4/kio_mbox.so | |
175 | %attr(755,root,root) %{_libdir}/kde4/kio_nntp.so | |
176 | %attr(755,root,root) %{_libdir}/kde4/kio_pop3.so | |
177 | %attr(755,root,root) %{_libdir}/kde4/kio_sieve.so | |
178 | %attr(755,root,root) %{_libdir}/kde4/kio_smtp.so | |
27d9e33b | 179 | |
465d9a7c | 180 | %dir %{_datadir}/apps/kabc |
14335097 | 181 | %{_datadir}/apps/kabc/*countrytransl.map |
465d9a7c | 182 | %dir %{_datadir}/apps/kabc/formats |
14335097 | 183 | %{_datadir}/apps/kabc/formats/*binary.desktop |
01d426f1 | 184 | %dir %{_datadir}/apps/akonadi-kde |
185 | %{_datadir}/apps/akonadi-kde/kcfg2dbus.xsl | |
465d9a7c RT |
186 | |
187 | %{_datadir}/apps/kconf_update/mailtransports.upd | |
188 | %{_datadir}/apps/kconf_update/migrate-transports.pl | |
b415cfb4 | 189 | %{_datadir}/apps/libkholidays |
465d9a7c RT |
190 | |
191 | %{_datadir}/config.kcfg/mailtransport.kcfg | |
465d9a7c RT |
192 | |
193 | %{_datadir}/dbus-1/interfaces/org.kde.KResourcesManager.xml | |
194 | %{_datadir}/dbus-1/interfaces/org.kde.pim.IdentityManager.xml | |
195 | ||
196 | %{_datadir}/kde4/services/imap4.protocol | |
197 | %{_datadir}/kde4/services/imaps.protocol | |
198 | %{_datadir}/kde4/services/ldap.protocol | |
199 | %{_datadir}/kde4/services/ldaps.protocol | |
200 | %{_datadir}/kde4/services/mbox.protocol | |
201 | %{_datadir}/kde4/services/nntp.protocol | |
202 | %{_datadir}/kde4/services/nntps.protocol | |
203 | %{_datadir}/kde4/services/pop3.protocol | |
204 | %{_datadir}/kde4/services/pop3s.protocol | |
205 | %{_datadir}/kde4/services/sieve.protocol | |
206 | %{_datadir}/kde4/services/smtp.protocol | |
207 | %{_datadir}/kde4/services/smtps.protocol | |
208 | ||
209 | %{_datadir}/kde4/services/kcm_mailtransport.desktop | |
210 | %{_datadir}/kde4/services/kresources.desktop | |
211 | %dir %{_datadir}/kde4/services/kresources | |
212 | %{_datadir}/kde4/services/kresources/kabc/dir.desktop | |
213 | %dir %{_datadir}/kde4/services/kresources/kabc | |
214 | %{_datadir}/kde4/services/kresources/kabc/file.desktop | |
215 | %{_datadir}/kde4/services/kresources/kabc/ldapkio.desktop | |
216 | %{_datadir}/kde4/services/kresources/kabc/net.desktop | |
217 | %{_datadir}/kde4/services/kresources/kabc_manager.desktop | |
218 | %dir %{_datadir}/kde4/services/kresources/kcal | |
219 | %{_datadir}/kde4/services/kresources/kcal/local.desktop | |
220 | %{_datadir}/kde4/services/kresources/kcal/localdir.desktop | |
221 | %{_datadir}/kde4/services/kresources/kcal_manager.desktop | |
222 | ||
223 | %{_datadir}/kde4/servicetypes/kresources_manager.desktop | |
224 | %{_datadir}/kde4/servicetypes/kresources_plugin.desktop | |
9aa55fb0 | 225 | %lang(en) %{_kdedocdir}/en/kcontrol/kresources |
226 | %lang(en) %{_kdedocdir}/en/kioslave/imap | |
227 | %lang(en) %{_kdedocdir}/en/kioslave/ldap | |
228 | %lang(en) %{_kdedocdir}/en/kioslave/nntp | |
229 | %lang(en) %{_kdedocdir}/en/kioslave/pop3 | |
230 | %lang(en) %{_kdedocdir}/en/kioslave/smtp | |
465d9a7c | 231 | |
b415cfb4 | 232 | %{_datadir}/mime/packages/kdepimlibs-mime.xml |
233 | ||
465d9a7c RT |
234 | %files devel |
235 | %defattr(644,root,root,755) | |
76a2e470 | 236 | %attr(755,root,root) %{_libdir}/*.so |
b415cfb4 | 237 | %{_includedir}/KDE/Akonadi |
238 | %{_includedir}/KDE/KABC | |
239 | %{_includedir}/KDE/KBlog | |
240 | %{_includedir}/KDE/KCal | |
241 | %{_includedir}/KDE/KHolidays | |
242 | %{_includedir}/KDE/KLDAP | |
243 | %{_includedir}/KDE/KPIMIdentities | |
244 | %{_includedir}/KDE/KPIMTextEdit | |
245 | %{_includedir}/KDE/KPIMUtils | |
246 | %{_includedir}/KDE/KResources | |
247 | %{_includedir}/KDE/Syndication | |
01d426f1 | 248 | %{_includedir}/akonadi |
465d9a7c RT |
249 | %{_includedir}/kabc |
250 | %{_includedir}/kcal | |
b415cfb4 | 251 | %{_includedir}/kholidays |
465d9a7c RT |
252 | %{_includedir}/kldap |
253 | %{_includedir}/kresources | |
254 | %{_includedir}/ktnef | |
255 | %{_includedir}/syndication | |
256 | %{_includedir}/kxmlrpcclient | |
257 | %{_includedir}/gpgme++ | |
258 | %{_includedir}/kblog | |
259 | %{_includedir}/kimap | |
260 | %{_includedir}/kmime | |
261 | %{_includedir}/kpimidentities | |
b415cfb4 | 262 | %{_includedir}/kpimtextedit |
465d9a7c RT |
263 | %{_includedir}/kpimutils |
264 | %{_includedir}/mailtransport | |
b415cfb4 | 265 | %{_includedir}/microblog |
465d9a7c RT |
266 | %{_includedir}/qgpgme |
267 | ||
14335097 AM |
268 | %dir %{_libdir}/gpgmepp |
269 | %{_libdir}/gpgmepp/*.cmake | |
7b6b81a1 | 270 | %dir %{_libdir}/cmake |
b415cfb4 | 271 | %{_libdir}/cmake/KdepimLibs |
465d9a7c | 272 | %{_datadir}/apps/cmake/modules/*.cmake |