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