Overview
Request 3097 (accepted)
Branch off legacy libkolabxml.
- Created by mollekopf about 2 years ago
- In state accepted
-
Open review for
Admin
-
Open review for
vanmeeuwen
-
Open review for
mollekopf
-
Open review for
kolab-developers
libkolabxml.spec
Added
x
1
2
+# Needed for opensuse build system
3
+%if 0%{?opensuse_bs}
4
+#!BuildIgnore: fedora-logos-httpd
5
+#!BuildIgnore: httpd
6
+%endif
7
+
8
+%{?!mono_arches: %global mono_arches %{ix86} x86_64 sparc sparcv9 ia64 %{arm} alpha s390x ppc ppc64}
9
+
10
+%ifarch %{mono_arches}
11
+# No linux system is actually using the csharp bindings
12
+%global with_csharp 0
13
+%endif
14
+%global with_java 1
15
+%global with_php 1
16
+%if 0%{?rhel} >= 9
17
+%global with_python 0
18
+%else
19
+%global with_python 1
20
+%endif
21
+%global with_python3 1
22
+
23
+
24
+%if 0%{?with_php} > 0
25
+
26
+%{expand: %(if `php-config --vernum` -gt 70000 ; then echo %%global with_php7 1; else echo %%global with_php7 0; fi)}
27
+
28
+%if 0%{?suse_version}
29
+%global php php5
30
+%{!?php_extdir: %global php_extdir %{_libdir}/php5/extensions}
31
+%{!?php_inidir: %global php_inidir %{_sysconfdir}/php5/conf.d/}
32
+%else
33
+%global php php
34
+%{!?php_extdir: %global php_extdir %{_libdir}/php/modules}
35
+%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d/}
36
+%endif
37
+%{!?php_apiver: %global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)}
38
+%endif
39
+
40
+%if 0%{?with_python} > 0
41
+%{!?python2_sitelib: %global python2_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
42
+%{!?python2_sitearch: %global python2_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
43
+%endif
44
+
45
+%if 0%{?with_python3} > 0
46
+%{!?python3_sitelib: %global python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
47
+%{!?python3_sitearch: %global python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
48
+%endif
49
+
50
+%if 0%{?with_python3} > 0
51
+%{?filter_setup:
52
+%filter_provides_in %{python2_sitearch}/.*\.so$
53
+%filter_provides_in %{python3_sitearch}/.*\.so$
54
+%filter_provides_in %{php_extdir}/.*\.so$
55
+%filter_setup
56
+}
57
+%else
58
+%{?filter_setup:
59
+%filter_provides_in %{php_extdir}/.*\.so$
60
+%filter_setup
61
+}
62
+%endif
63
+
64
+%if 0%{?suse_version}
65
+Name: libkolabxml1
66
+%else
67
+Name: libkolabxml
68
+%endif
69
+Version: 1.2.1
70
+Release: 1%{?dist}
71
+Summary: Kolab XML format collection parser library
72
+
73
+Group: System Environment/Libraries
74
+License: LGPLv3+
75
+URL: http://www.kolab.org
76
+
77
+Source0: libkolabxml-%{version}.tar.gz
78
+
79
+Patch1002: at11.0-boost-this_thread-hidden-sleep_until.patch
80
+
81
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
82
+
83
+BuildRequires: boost-devel
84
+BuildRequires: cmake >= 2.6
85
+%if 0%{?rhel} >= 8 || 0%{?fedora}
86
+BuildRequires: extra-cmake-modules
87
+%endif
88
+BuildRequires: e2fsprogs-devel
89
+BuildRequires: gcc-c++
90
+BuildRequires: libcurl-devel
91
+BuildRequires: make
92
+
93
+%if 0%{?suse_version}
94
+BuildRequires: qt-devel
95
+%else
96
+%if 0%{?rhel} >= 8 || 0%{?fedora}
97
+BuildRequires: qt5-qtbase-devel
98
+%else
99
+BuildRequires: qt4-devel
100
+%endif
101
+%endif
102
+BuildRequires: swig
103
+BuildRequires: uuid-devel
104
+BuildRequires: xsd
105
+
106
+%if 0%{?suse_version}
107
+BuildRequires: libxerces-c-devel
108
+%else
109
+BuildRequires: xerces-c-devel
110
+%endif
111
+
112
+# For running zonetabconversion.py
113
+%if 0%{?rhel} >= 8 || 0%{?fedora}
114
+BuildRequires: python3
115
+%else
116
+BuildRequires: python
117
+%endif
118
+
119
+Provides: libkolabxml%{?_isa} = %{version}
120
+
121
+%if 0%{?with_csharp} < 1
122
+Obsoletes: csharp-kolabformat < %{version}-%{release}
123
+Provides: csharp-kolabformat = %{version}-%{release}
124
+%endif
125
+
126
+%if 0%{?with_java} < 1
127
+Obsoletes: java-kolabformat < %{version}-%{release}
128
+Provides: java-kolabformat = %{version}-%{release}
129
+%endif
130
+
131
+%if 0%{?with_php} < 1
132
+Obsoletes: php-kolabformat < %{version}-%{release}
133
+Provides: php-kolabformat = %{version}-%{release}
134
+%endif
135
+
136
+%if 0%{?with_python} < 1
137
+Obsoletes: python-kolabformat < %{version}-%{release}
138
+Provides: python-kolabformat = %{version}-%{release}
139
+%endif
140
+
141
+%if 0%{?with_python3} < 1
142
+Obsoletes: python3-kolabformat < %{version}-%{release}
143
+Provides: python3-kolabformat = %{version}-%{release}
144
+%endif
145
+
146
+%description
147
+The libkolabxml parsing library interprets Kolab XML formats (xCal, xCard)
148
+with bindings for Python, PHP and other languages. The language bindings
149
+are available through sub-packages.
150
+
151
+%if 0%{?suse_version}
152
+%package -n libkolabxml-devel
153
+%else
154
+%package devel
155
+%endif
156
+Summary: Kolab XML library development headers
157
+Group: Development/Libraries
158
+Requires: libkolabxml%{?_isa} = %{version}
159
+Requires: boost-devel
160
+Requires: cmake >= 2.6
161
+%if 0%{?rhel} >= 8 || 0%{?fedora}
162
+Requires: extra-cmake-modules
163
+%endif
164
+Requires: e2fsprogs-devel
165
+Requires: gcc-c++
166
+Requires: libcurl-devel
167
+%if 0%{?with_php} > 0
168
+Requires: php-devel >= 5.3
169
+%if 0%{?plesk}
170
+%if 0%{?rhel} < 8 || 0%{?fedora}
171
+Requires: plesk-php56-devel
172
+Requires: plesk-php70-devel
173
+%endif
174
+Requires: plesk-php71-devel
175
+Requires: plesk-php72-devel
176
+Requires: plesk-php73-devel
177
+Requires: plesk-php74-devel
178
+%endif
179
+%endif
180
+%if 0%{?with_python} > 0
181
+%if 0%{?rhel} >= 8
182
+Requires: python2-devel
183
+%else
184
+Requires: python-devel
185
+%endif
186
+%endif
187
+%if 0%{?with_python3} > 0
188
+Requires: python3-devel
189
+%endif
190
+%if 0%{?suse_version}
191
+Requires: qt-devel
192
+%else
193
+%if 0%{?fedora} || 0%{?rhel} >= 8
194
+Requires: qt5-qtbase-devel
195
+%else
196
+Requires: qt4-devel
197
+%endif
198
+%endif
199
+Requires: swig
200
+Requires: uuid-devel
201
+%if 0%{?suse_version}
202
+Requires: libxerces-c-devel
203
+%else
204
+Requires: xerces-c-devel
205
+%endif
206
+Requires: xsd
207
+
208
+%if 0%{?suse_version}
209
+%description -n libkolabxml-devel
210
+%else
211
+%description devel
212
+%endif
213
+Development headers for the Kolab XML libraries.
214
+
215
+%if 0%{?with_csharp} > 0
216
+%package -n csharp-kolabformat
217
+Summary: C# Bindings for libkolabxml
218
+Group: System Environment/Libraries
219
+Requires: libkolabxml%{?_isa} = %{version}
220
+%if 0%{?suse_version}
221
+Obsoletes: mono-%{name} < %{version}
222
+Provides: mono-%{name} = %{version}
223
+%endif
224
+BuildRequires: mono-core
225
+
226
+%description -n csharp-kolabformat
227
+C# bindings for libkolabxml
228
+%endif
229
+
230
+%if 0%{?with_java} > 0
231
+%package -n java-kolabformat
232
+Summary: Java Bindings for libkolabxml
233
+Group: System Environment/Libraries
234
+Requires: libkolabxml%{?_isa} = %{version}
235
+%if 0%{?suse_version}
236
+Obsoletes: java-%{name} < %{version}
237
+Provides: java-%{name} = %{version}
238
+%endif
239
+
240
+%description -n java-kolabformat
241
+Java bindings for libkolabxml
242
+%endif
243
+
244
+%if 0%{?with_php} > 0
245
+%package -n php-kolabformat
246
+Summary: PHP bindings for libkolabxml
247
+Group: System Environment/Libraries
248
+Provides: php-bindings(libkolabxml) = %{version}-%{release}
249
+Requires: libkolabxml%{?_isa} = %{version}
250
+%if 0%{?rhel} > 5 || 0%{?fedora} > 15
251
+Requires: php(zend-abi) = %{php_zend_api}
252
+Requires: php(api) = %{php_core_api}
253
+%else
254
+Requires: php-api = %{php_apiver}
255
+%endif
256
+%if 0%{?suse_version}
257
+Obsoletes: php-%{name} < %{version}
258
+Provides: php-%{name} = %{version}
259
+%endif
260
+# openSUSE apparently does not have its -devel subpackages require the base
261
+# package
262
+BuildRequires: php >= 5.3
263
+BuildRequires: php-devel >= 5.3
264
+%if 0%{?plesk}
265
+%if 0%{?rhel} < 8 || 0%{?fedora}
266
+BuildRequires: plesk-php56-devel
267
+BuildRequires: plesk-php70-devel
268
+%endif
269
+BuildRequires: plesk-php71-devel
270
+BuildRequires: plesk-php72-devel
271
+BuildRequires: plesk-php73-devel
272
+BuildRequires: plesk-php74-devel
273
+%endif
274
+
275
+%description -n php-kolabformat
276
+The PHP kolabformat package offers a comprehensible PHP library using the
277
+bindings provided through libkolabxml.
278
+%endif
279
+
280
+%if 0%{?plesk}
281
+%if 0%{?rhel} < 8 || 0%{?fedora}
282
+%package -n plesk-php56-kolabformat
283
+Summary: libkolabxml bindings for Plesk's PHP 5.6
284
+Group: System Environment/Libraries
285
+Provides: php-bindings(libkolabxml) = %{version}-%{release}
286
+Requires: libkolabxml%{?_isa} = %{version}
287
+Requires: plesk-php56
288
+
289
+%description -n plesk-php56-kolabformat
290
+libkolabxml bindings for Plesk's PHP 5.6
291
+
292
+%package -n plesk-php70-kolabformat
293
+Summary: libkolabxml bindings for Plesk's PHP 7.0
294
+Group: System Environment/Libraries
295
+Provides: php-bindings(libkolabxml) = %{version}-%{release}
296
+Requires: libkolabxml%{?_isa} = %{version}
297
+Requires: plesk-php70
298
+
299
+%description -n plesk-php70-kolabformat
300
+libkolabxml bindings for Plesk's PHP 7.0
301
+%endif
302
+
303
+%package -n plesk-php71-kolabformat
304
+Summary: libkolabxml bindings for Plesk's PHP 7.1
305
+Group: System Environment/Libraries
306
+Provides: php-bindings(libkolabxml) = %{version}-%{release}
307
+Requires: libkolabxml%{?_isa} = %{version}
308
+Requires: plesk-php71
309
+
310
+%description -n plesk-php71-kolabformat
311
+libkolabxml bindings for Plesk's PHP 7.1
312
+
313
+%package -n plesk-php72-kolabformat
314
+Summary: libkolabxml bindings for Plesk's PHP 7.2
315
+Group: System Environment/Libraries
316
+Provides: php-bindings(libkolabxml) = %{version}-%{release}
317
+Requires: libkolabxml%{?_isa} = %{version}
318
+Requires: plesk-php72
319
+
320
+%description -n plesk-php72-kolabformat
321
+libkolabxml bindings for Plesk's PHP 7.2
322
+
323
+%package -n plesk-php73-kolabformat
324
+Summary: libkolabxml bindings for Plesk's PHP 7.3
325
+Group: System Environment/Libraries
326
+Provides: php-bindings(libkolabxml) = %{version}-%{release}
327
+Requires: libkolabxml%{?_isa} = %{version}
328
+Requires: plesk-php73
329
+
330
+%description -n plesk-php73-kolabformat
331
+libkolabxml bindings for Plesk's PHP 7.3
332
+
333
+%package -n plesk-php74-kolabformat
334
+Summary: libkolabxml bindings for Plesk's PHP 7.4
335
+Group: System Environment/Libraries
336
+Provides: php-bindings(libkolabxml) = %{version}-%{release}
337
+Requires: libkolabxml%{?_isa} = %{version}
338
+Requires: plesk-php74
339
+
340
+%description -n plesk-php74-kolabformat
341
+libkolabxml bindings for Plesk's PHP 7.4
342
+%endif # if 0%{?plesk}
343
+
344
+%if 0%{?with_python} > 0
345
+%package -n python-kolabformat
346
+Summary: Python bindings for libkolabxml
347
+Group: System Environment/Libraries
348
+Requires: libkolabxml%{?_isa} = %{version}
349
+%if 0%{?suse_version}
350
+Obsoletes: python-%{name} < %{version}
351
+Provides: python-%{name} = %{version}
352
+%endif
353
+%if 0%{?rhel} >= 8 || 0%{?fedora}
354
+BuildRequires: python2-devel
355
+%else
356
+BuildRequires: python-devel
357
+%endif
358
+
359
+%description -n python-kolabformat
360
+The PyKolab format package offers a comprehensive Python library using the
361
+bindings provided through libkolabxml.
362
+%endif
363
+
364
+%if 0%{?with_python3} > 0
365
+%package -n python3-kolabformat
366
+Summary: Python3 bindings for libkolabxml
367
+Group: System Environment/Libraries
368
+Requires: libkolabxml%{?_isa} = %{version}
369
+%if 0%{?suse_version}
370
+Obsoletes: python3-%{name} < %{version}
371
+Provides: python3-%{name} = %{version}
372
+%endif
373
+BuildRequires: python3-devel
374
+
375
+%description -n python3-kolabformat
376
+The PyKolab format package offers a comprehensive Python library using the
377
+bindings provided through libkolabxml.
378
+%endif
379
+
380
+%prep
381
+%setup -q -c -n libkolabxml-%{version}
382
+pwd
383
+ls -l
384
+
385
+%if 0%{?with_at}
386
+%patch1002 -p1
387
+%endif
388
+
389
+%if 0%{?plesk}
390
+%if 0%{?rhel} < 8 || 0%{?fedora}
391
+cp -a libkolabxml-%{version} libkolabxml-%{version}-5.6
392
+
393
+cp -a libkolabxml-%{version} libkolabxml-%{version}-7.0
394
+sed -i "s/-php/-php7/g" libkolabxml-%{version}-7.0/src/php/CMakeLists.txt
395
+%endif
396
+
397
+cp -a libkolabxml-%{version} libkolabxml-%{version}-7.1
398
+sed -i "s/-php/-php7/g" libkolabxml-%{version}-7.1/src/php/CMakeLists.txt
399
+
400
+cp -a libkolabxml-%{version} libkolabxml-%{version}-7.2
401
+sed -i "s/-php/-php7/g" libkolabxml-%{version}-7.2/src/php/CMakeLists.txt
402
+
403
+cp -a libkolabxml-%{version} libkolabxml-%{version}-7.3
404
+sed -i "s/-php/-php7/g" libkolabxml-%{version}-7.3/src/php/CMakeLists.txt
405
+
406
+cp -a libkolabxml-%{version} libkolabxml-%{version}-7.4
407
+sed -i "s/-php/-php7/g" libkolabxml-%{version}-7.4/src/php/CMakeLists.txt
408
+%endif
409
+
410
+%if 0%{?with_php7}
411
+pushd %{name}-%{version}
412
+sed -i "s/-php/-php7/g" src/php/CMakeLists.txt
413
+popd
414
+%endif
415
+
416
+%if 0%{?with_python3} > 0
417
+cp -a libkolabxml-%{version} libkolabxml-%{version}-python3
418
+%endif
419
+
420
+%build
421
+pushd %{name}-%{version}
422
+%if 0%{?rhel} >= 8 || 0%{?fedora}
423
+%{python3} utils/zonetabconversion.py
424
+%else
425
+%{__python2} utils/zonetabconversion.py
426
+%endif
427
+popd
428
+
429
+%if 0%{?plesk}
430
+%if 0%{?rhel} < 8 || 0%{?fedora}
431
+cp %{name}-%{version}/tztable.h %{name}-%{version}-5.6/.
432
+cp %{name}-%{version}/tztable.h %{name}-%{version}-7.0/.
433
+%endif
434
+cp %{name}-%{version}/tztable.h %{name}-%{version}-7.1/.
435
+cp %{name}-%{version}/tztable.h %{name}-%{version}-7.2/.
436
+cp %{name}-%{version}/tztable.h %{name}-%{version}-7.3/.
437
+cp %{name}-%{version}/tztable.h %{name}-%{version}-7.4/.
438
+%endif
439
+%if 0%{?with_python3} > 0
440
+cp %{name}-%{version}/tztable.h %{name}-%{version}-python3/.
441
+%endif
442
+
443
+pushd %{name}-%{version}
444
+rm -rf build
445
+mkdir -p build
446
+pushd build
447
+%if 0%{?suse_version}
448
+CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;
449
+CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ;
450
+FFLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FFLAGS ;
451
+FCFLAGS="${FCFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FCFLAGS ;
452
+%{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;}
453
+cmake \
454
+ -DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \
455
+ -DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \
456
+ -DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \
457
+ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
458
+ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
459
+ -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \
460
+ -DLIB_INSTALL_DIR:PATH=%{_libdir} \
461
+ -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
462
+ -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \
463
+%if "%{?_lib}" == "lib64"
464
+ %{?_cmake_lib_suffix64} \
465
+%endif
466
+ -DBUILD_SHARED_LIBS:BOOL=ON \
467
+%else # if 0${?suse_version}
468
+# The cmake macro changed to build out of source by default, which breaks our own out of source build, so disable that.
469
+%define __cmake_in_source_build 1
470
+%cmake \
471
+%endif
472
+ -DBoost_NO_BOOST_CMAKE=TRUE \
473
+ -Wno-fatal-errors -Wno-errors \
474
+ -DCMAKE_SKIP_RPATH=ON \
475
+ -DCMAKE_PREFIX_PATH=%{_libdir} \
476
+%if 0%{?rhel} >= 8 || 0%{?fedora}
477
+ -DQT5_BUILD=ON \
478
+%endif
479
+ -DINCLUDE_INSTALL_DIR=%{_includedir} \
480
+%if 0%{?with_csharp} > 0
481
+ -DCSHARP_BINDINGS=ON \
482
+ -DCSHARP_INSTALL_DIR=%{_datadir}/%{name}/csharp/ \
483
+%endif
484
+%if 0%{?with_java} > 0
485
+ -DJAVA_BINDINGS=ON \
486
+ -DJAVA_INSTALL_DIR=%{_datadir}/%{name}/java/ \
487
+%endif
488
+%if 0%{?with_php} > 0
489
+ -DPHP_BINDINGS=ON \
490
+ -DPHP_INSTALL_DIR=%{php_extdir} \
491
+%endif
492
+%if 0%{?with_python} > 0
493
+ -DPYTHON_BINDINGS=ON \
494
+ -DPYTHON_INCLUDE_DIRS=%{python2_include} \
495
+ -DPYTHON_INSTALL_DIR=%{python2_sitearch} \
496
+%endif
497
+ ..
498
+make
499
+popd
500
+popd
501
+
502
+%if 0%{?with_python3} > 0
503
+ pushd %{name}-%{version}-python3
504
+ rm -rf build
505
+ mkdir -p build
506
+ pushd build
507
+ %cmake \
508
+ -DBoost_NO_BOOST_CMAKE=TRUE \
509
+ -Wno-fatal-errors -Wno-errors \
510
+ -DCMAKE_SKIP_RPATH=ON \
511
+ -DCMAKE_PREFIX_PATH=%{_libdir} \
512
+%if 0%{?rhel} >= 8 || 0%{?fedora}
513
+ -DQT5_BUILD=ON \
514
+%endif
515
+ -DINCLUDE_INSTALL_DIR=%{_includedir} \
516
+ -DPYTHON_BINDINGS=ON \
517
+ -DPYTHON_INCLUDE_DIRS=%{python3_include} \
518
+ -DPYTHON_INSTALL_DIR=%{python3_sitearch} \
519
+ ..
520
+ make
521
+ popd
522
+ popd
523
+%endif
524
+
525
+
526
+%if 0%{?plesk}
527
+%if 0%{?rhel} < 8 || 0%{?fedora}
528
+for version in 5.6 7.0 7.1 7.2 7.3 7.4; do
529
+%else
530
+for version in 7.1 7.2 7.3 7.4; do
531
+%endif
532
+ pushd %{name}-%{version}-${version}
533
+ rm -rf build
534
+ mkdir -p build
535
+ pushd build
536
+ %cmake \
537
+ -DBoost_NO_BOOST_CMAKE=TRUE \
538
+ -Wno-fatal-errors -Wno-errors \
539
+ -DCMAKE_SKIP_RPATH=ON \
540
+ -DCMAKE_PREFIX_PATH=%{_libdir} \
541
+%if 0%{?rhel} >= 8 || 0%{?fedora}
542
+ -DQT5_BUILD=ON \
543
+%endif
544
+ -DINCLUDE_INSTALL_DIR=%{_includedir} \
545
+%if 0%{?with_php} > 0
546
+ -DPHP_BINDINGS=ON \
547
+ -DPHP_INCLUDE_DIR=/opt/plesk/php/${version}/include/php/ \
548
+ -DPHP_EXECUTABLE=/opt/plesk/php/${version}/bin/php \
549
+ -DPHP_INSTALL_DIR=/opt/plesk/php/${version}/lib64/php/modules/ \
550
+%endif
551
+ ..
552
+ make
553
+ popd
554
+ popd
555
+done
556
+%endif
557
+
558
+%install
559
+rm -rf %{buildroot}
560
+pushd %{name}-%{version}
561
+pushd build
562
+make install DESTDIR=%{buildroot} INSTALL='install -p'
563
+popd
564
+
565
+%if 0%{?with_php} > 0
566
+mkdir -p \
567
+ %{buildroot}/%{_datadir}/%{php} \
568
+ %{buildroot}/%{php_inidir}/
569
+mv %{buildroot}/%{php_extdir}/kolabformat.php %{buildroot}/%{_datadir}/%{php}/kolabformat.php
570
+cat > %{buildroot}/%{php_inidir}/kolabformat.ini << EOF
571
+extension=kolabformat.so
572
+EOF
573
+%endif
574
+popd
575
+
576
+%if 0%{?with_python3} > 0
577
+ pushd %{name}-%{version}-python3
578
+ pushd build
579
+ make install DESTDIR=%{buildroot} INSTALL='install -p'
580
+ popd
581
+ popd
582
+%endif
583
+
584
+%if 0%{?plesk}
585
+%if 0%{?rhel} < 8 || 0%{?fedora}
586
+for version in 5.6 7.0 7.1 7.2 7.3 7.4; do
587
+%else
588
+for version in 7.1 7.2 7.3 7.4; do
589
+%endif
590
+ pushd %{name}-%{version}-${version}
591
+ pushd build
592
+ make install DESTDIR=%{buildroot} INSTALL='install -p'
593
+ popd
594
+
595
+ mkdir -p \
596
+ %{buildroot}/opt/plesk/php/${version}/share/php/ \
597
+ %{buildroot}/opt/plesk/php/${version}/etc/php.d/ \
598
+ %{buildroot}/opt/plesk/php/${version}/etc/php-fpm.d/
599
+
600
+ mv \
601
+ %{buildroot}/opt/plesk/php/${version}/lib64/php/modules/kolabformat.php \
602
+ %{buildroot}/opt/plesk/php/${version}/share/php/kolabformat.php
603
+
604
+ echo "extension=kolabformat.so" > %{buildroot}/opt/plesk/php/${version}/etc/php.d/kolabformat.ini
605
+ cp %{buildroot}/opt/plesk/php/${version}/etc/php.d/kolabformat.ini \
606
+ %{buildroot}/opt/plesk/php/${version}/etc/php-fpm.d/
607
+ popd
608
+done
609
+%endif
610
+
611
+%check
612
+pushd %{name}-%{version}/build
613
+# Make sure libkolabxml.so.* is found, otherwise the tests fail
614
+export LD_LIBRARY_PATH=$( pwd )/src/
615
+pushd tests
616
+./bindingstest
617
+./conversiontest
618
+./parsingtest
619
+popd
620
+%if 0%{?with_php} > 0
621
+php -d enable_dl=On -dextension=src/php/kolabformat.so src/php/test.php ||:
622
+%endif
623
+%if 0%{?with_python} > 0
624
+python src/python/test.py ||:
625
+%endif
626
+popd
627
+
628
+%if 0%{?with_python3} > 0
629
+ pushd %{name}-%{version}-python3/build/
630
+ export LD_LIBRARY_PATH=$( pwd )/src/
631
+ python3 src/python/test.py ||:
632
+ popd
633
+%endif
634
+
635
+%if 0%{?plesk}
636
+%if 0%{?rhel} < 8 || 0%{?fedora}
637
+for version in 5.6 7.0 7.1 7.2 7.3 7.4; do
638
+%else
639
+for version in 7.1 7.2 7.3 7.4; do
640
+%endif
641
+ pushd %{name}-%{version}-${version}/build/
642
+ export LD_LIBRARY_PATH=$( pwd )/src/
643
+ /opt/plesk/php/${version}/bin/php -d enable_dl=On -dextension=src/php/kolabformat.so src/php/test.php ||:
644
+ popd
645
+done
646
+%endif
647
+
648
+%clean
649
+rm -rf %{buildroot}
650
+
651
+%post -p /sbin/ldconfig
652
+
653
+%postun -p /sbin/ldconfig
654
+
655
+%files
656
+%defattr(-,root,root,-)
657
+%doc %{name}-%{version}/DEVELOPMENT %{name}-%{version}/NEWS %{name}-%{version}/README
658
+%{_libdir}/*.so.*
659
+
660
+%if 0%{?suse_version}
661
+%files -n libkolabxml-devel
662
+%else
663
+%files devel
664
+%endif
665
+%defattr(-,root,root,-)
666
+%{_includedir}/kolabxml
667
+%{_libdir}/*.so
668
+%{_libdir}/cmake/Libkolabxml
669
+
670
+%if 0%{?with_csharp} > 0
671
+%files -n csharp-kolabformat
672
+%defattr(-,root,root,-)
673
+%dir %{_datadir}/%{name}
674
+%{_datadir}/%{name}/csharp
675
+%endif
676
+
677
+%if 0%{?with_java} > 0
678
+%files -n java-kolabformat
679
+%defattr(-,root,root,-)
680
+%dir %{_datadir}/%{name}
681
+%{_datadir}/%{name}/java
682
+%endif
683
+
684
+%if 0%{?with_php} > 0
685
+%files -n php-kolabformat
686
+%defattr(-,root,root,-)
687
+%{_datadir}/%{php}/kolabformat.php
688
+%{php_extdir}/kolabformat.so
689
+%config(noreplace) %{php_inidir}/kolabformat.ini
690
+
691
+%if 0%{?plesk}
692
+%if 0%{?rhel} < 8 || 0%{?fedora}
693
+%files -n plesk-php56-kolabformat
694
+%defattr(-,root,root,-)
695
+/opt/plesk/php/5.6/lib64/php/modules/kolabformat.so
696
+/opt/plesk/php/5.6/share/php/kolabformat.php
697
+/opt/plesk/php/5.6/etc/php.d/kolabformat.ini
698
+/opt/plesk/php/5.6/etc/php-fpm.d/kolabformat.ini
699
+
700
+%files -n plesk-php70-kolabformat
701
+%defattr(-,root,root,-)
702
+/opt/plesk/php/7.0/lib64/php/modules/kolabformat.so
703
+/opt/plesk/php/7.0/share/php/kolabformat.php
704
+/opt/plesk/php/7.0/etc/php.d/kolabformat.ini
705
+/opt/plesk/php/7.0/etc/php-fpm.d/kolabformat.ini
706
+%endif
707
+
708
+%files -n plesk-php71-kolabformat
709
+%defattr(-,root,root,-)
710
+/opt/plesk/php/7.1/lib64/php/modules/kolabformat.so
711
+/opt/plesk/php/7.1/share/php/kolabformat.php
712
+/opt/plesk/php/7.1/etc/php.d/kolabformat.ini
713
+/opt/plesk/php/7.1/etc/php-fpm.d/kolabformat.ini
714
+
715
+%files -n plesk-php72-kolabformat
716
+%defattr(-,root,root,-)
717
+/opt/plesk/php/7.2/lib64/php/modules/kolabformat.so
718
+/opt/plesk/php/7.2/share/php/kolabformat.php
719
+/opt/plesk/php/7.2/etc/php.d/kolabformat.ini
720
+/opt/plesk/php/7.2/etc/php-fpm.d/kolabformat.ini
721
+
722
+%files -n plesk-php73-kolabformat
723
+%defattr(-,root,root,-)
724
+/opt/plesk/php/7.3/lib64/php/modules/kolabformat.so
725
+/opt/plesk/php/7.3/share/php/kolabformat.php
726
+/opt/plesk/php/7.3/etc/php.d/kolabformat.ini
727
+/opt/plesk/php/7.3/etc/php-fpm.d/kolabformat.ini
728
+
729
+%files -n plesk-php74-kolabformat
730
+%defattr(-,root,root,-)
731
+/opt/plesk/php/7.4/lib64/php/modules/kolabformat.so
732
+/opt/plesk/php/7.4/share/php/kolabformat.php
733
+/opt/plesk/php/7.4/etc/php.d/kolabformat.ini
734
+/opt/plesk/php/7.4/etc/php-fpm.d/kolabformat.ini
735
+
736
+%endif # if 0%{?plesk}
737
+
738
+%endif # if 0%{?with_php}
739
+
740
+%if 0%{?with_python} > 0
741
+%files -n python-kolabformat
742
+%defattr(-,root,root,-)
743
+%{python2_sitearch}/kolabformat.py*
744
+%{python2_sitearch}/_kolabformat.so
745
+%endif
746
+
747
+%if 0%{?with_python3} > 0
748
+%files -n python3-kolabformat
749
+%defattr(-,root,root,-)
750
+%{python3_sitearch}/kolabformat.py*
751
+%{python3_sitearch}/_kolabformat.so
752
+%if 0%{?rhel} >= 8
753
+%pycached %{python3_sitearch}/kolabformat.py
754
+%else
755
+/usr/lib64/python3.6/site-packages/__pycache__/kolabformat.cpython-36.opt-1.pyc
756
+/usr/lib64/python3.6/site-packages/__pycache__/kolabformat.cpython-36.pyc
757
+%endif
758
+%endif
759
+
760
+%changelog
761
+* Tue Feb 15 2022 Christian Mollekopf <mollekopf@kolabsys.com> - 1.2.1
762
+- Release of version 1.2.1
763
+
764
+* Tue May 14 2019 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 1.2.0
765
+- Release of version 1.2.0
766
+
767
+* Thu May 28 2015 Christian Mollekopf <mollekopf@kolabsys.com> - 1.2
768
+- New upstream release
769
+- Removed dependency on kdepimlibs and kdelibs which is not required
770
+
771
+* Mon Jan 13 2014 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 1.0.1-2
772
+- Require php-kolab for php-kolabformat, and void
773
+ /etc/php.d/kolabformat.ini (#2667)
774
+
775
+* Wed Oct 30 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 1.0.1-1
776
+- New upstream release
777
+
778
+* Mon Oct 14 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 1.0.0-1
779
+- New upstream release
780
+
781
+* Sun May 19 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 1.0-0.1
782
+- Snapshot as required by the latest versions of roundcubemail-plugins-kolab
783
+ and iRony
784
+
785
+* Thu Apr 11 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.8.4-1
786
+- New upstream release
787
+
788
+* Tue Feb 26 2013 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.8.3-1
789
+- New upstream release with file format handling
790
+
791
+* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.8.1-4
792
+- Rebuild for Boost-1.53.0
793
+
794
+* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.8.1-3
795
+- Rebuild for Boost-1.53.0
796
+
797
+* Wed Aug 22 2012 Dan Horák <danatdanny.cz> - 0.8.1-2
798
+- build csharp subpackage only when Mono exists
799
+
800
+* Wed Aug 15 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.8.1-1
801
+- New upstream version 0.8.1
802
+- Revert s/qt-devel/qt4-devel/ - just require the latest qt-devel
803
+- Revert s/kdelibs-devel/kdelibs4-devel/ - also require the latest
804
+ kdelibs (frameworks FTW!)
805
+
806
+* Sun Aug 12 2012 Rex Dieter <rdieter@fedoraproject.org> - 0.7.0-3
807
+- drop BR: gcc-c++
808
+- s/qt-devel/qt4-devel/ s/kdelibs-devel/kdelibs4-devel/
809
+- fix build against boost-1.50
810
+
811
+* Wed Jul 25 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.7.0-2
812
+- Fix build on ppc64
813
+- New upstream version
814
+
815
+* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-4
816
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
817
+
818
+* Wed Jun 27 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.6.0-3
819
+- Correct dependency on php
820
+
821
+* Tue Jun 26 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.6.0-2
822
+- Also remove xsd-utils requirement for -devel sub-package
823
+
824
+* Mon Jun 25 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.6.0-1
825
+- Actual 0.6.0 release
826
+
827
+* Sat Jun 23 2012 Christoph Wickert <wickert@kolabsys.com> - 0.6-1
828
+- Update to 0.6 final
829
+- Run ldconfig in %%post and %%postun
830
+- Mark kolabformat.ini as config file
831
+- Export LD_LIBRARY_PATH so tests can be run in %%check
832
+- Add php dependencies to php-kolabformat package
833
+- Make base package requirements are arch-specific
834
+- Filter unwanted provides of php-kolabformat and python-kolabformat
835
+
836
+* Wed Jun 20 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.6-0.4
837
+- Some other cleanups to prevent review scrutiny from blocking
838
+ inclusion
839
+- Drop build requirement for xsd-utils
840
+
841
+* Sat Jun 9 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.6-0.2
842
+- Git snapshot release
843
+
844
+* Wed May 23 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.5-5
845
+- Correct use of Python keyword None
846
+- Snapshot version with attendee cutype support
847
+
848
+* Tue May 22 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.5-3
849
+- Snapshot version with attendee delegation support
850
+
851
+* Sat May 12 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.5-2
852
+- Snapshot version with build system changes
853
+
854
+* Wed May 9 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.4.0-3
855
+- Fix PHP kolabformat module packaging
856
+
857
+* Wed May 2 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.4.0-2
858
+- New version
859
+
860
+* Fri Apr 20 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.3.0-1
861
+- New version
862
+
863
+* Mon Apr 9 2012 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.3-0.1
864
+- First package
865
+
866
at11.0-boost-this_thread-hidden-sleep_until.patch
Added
14
1
2
+diff -ur libkolabxml-1.2.orig/tests/conversiontest.cpp libkolabxml-1.2/tests/conversiontest.cpp
3
+--- libkolabxml-1.2.orig/tests/conversiontest.cpp 2016-09-09 12:42:25.000000000 +0200
4
++++ libkolabxml-1.2/tests/conversiontest.cpp 2017-10-05 09:50:08.497369485 +0200
5
+@@ -263,7 +263,7 @@
6
+ std::string uid = s.str();
7
+ // std::cout << uid << std::endl;
8
+ Kolab::Utils::setCreatedUid(uid);
9
+- boost::this_thread::sleep(boost::posix_time::millisec(50));
10
++// boost::this_thread::sleep(boost::posix_time::millisec(50));
11
+ QCOMPARE(Kolab::Utils::createdUid(), uid);
12
+ }
13
+ }
14
libossp-uuid-include.patch
Added
14
1
2
+diff -ur libkolabxml-0.8.4.orig/src/utils.cpp libkolabxml-0.8.4/src/utils.cpp
3
+--- libkolabxml-0.8.4.orig/src/utils.cpp 2013-04-11 10:35:34.000000000 +0100
4
++++ libkolabxml-0.8.4/src/utils.cpp 2013-06-17 11:46:07.517005708 +0100
5
+@@ -26,7 +26,7 @@
6
+ #include <boost/uuid/uuid_io.hpp>
7
+ #include <boost/uuid/uuid_generators.hpp>
8
+ #else
9
+-#include <uuid.h>
10
++#include <ossp/uuid.h>
11
+ #endif
12
+
13
+ #include <boost/lexical_cast.hpp>
14
debian.changelog
Added
260
1
2
+libkolabxml (1.2.1-0~kolab3) unstable; urgency=low
3
+
4
+ * Create Python 3 bindings
5
+
6
+ -- Christoph Erhardt <kolab@sicherha.de> Sun, 08 May 2022 14:20:01 +0200
7
+
8
+libkolabxml (1.2.1-0~kolab1) unstable; urgency=low
9
+
10
+ * Fix timezone support for timezones with three name elements e.g. America/Indiana/Indianapolis
11
+
12
+ -- Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> Thu, 24 Jun 2021 16:38:05 +0200
13
+
14
+libkolabxml (1.2.0-0~kolab11) unstable; urgency=low
15
+
16
+ * Fix building for distributions without plesk-php70-dev
17
+
18
+ -- Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> Thu, 24 Jun 2021 16:38:05 +0200
19
+
20
+libkolabxml (1.2.0-0~kolab10) unstable; urgency=low
21
+
22
+ * Build with qt5
23
+
24
+ -- Christian Mollekopf <mollekopf@kolabsys.com> Tue, 9 Feb 2021 16:38:05 +0200
25
+
26
+libkolabxml (1.2.0-0~kolab9) unstable; urgency=low
27
+
28
+ * Fix building for distributions with PHP 5
29
+
30
+ -- Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> Wed, 11 Mar 2020 16:38:05 +0200
31
+
32
+libkolabxml (1.2.0-0~kolab8) unstable; urgency=low
33
+
34
+ * Bionic provided PHP version 7.2
35
+
36
+ -- Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> Mon, 2 Mar 2020 16:38:05 +0200
37
+
38
+libkolabxml (1.2.0-0~kolab7) unstable; urgency=low
39
+
40
+ * Plesk-provided PHP versions 7.3 and 7.4
41
+
42
+ -- Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> Mon, 13 Jan 2020 16:38:05 +0200
43
+
44
+libkolabxml (1.2.0-0~kolab5) unstable; urgency=low
45
+
46
+ * Bindings for multiple versions of Plesk-provided PHP
47
+
48
+ -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Sun, 10 Nov 2019 16:38:05 +0200
49
+
50
+libkolabxml (1.2.0-0~kolab3) unstable; urgency=low
51
+
52
+ * Debian 10 support
53
+
54
+ -- Daniel Hoffend <dh@dotlan.net> Sat, 9 Nov 2019 02:28:24 +0100
55
+
56
+libkolabxml (1.2.0-0~kolab2) unstable; urgency=low
57
+
58
+ * Release 1.2.0
59
+
60
+ -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Tue, 14 May 2019 16:38:05 +0200
61
+
62
+libkolabxml (1.2~dev20160909-0~kolab7) unstable; urgency=low
63
+
64
+ * Ubuntu 18.04 support
65
+
66
+ -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Thu, 4 Oct 2018 16:38:05 +0200
67
+
68
+libkolabxml (1.2~dev20160909-0~kolab7) unstable; urgency=low
69
+
70
+ * Fix warnings caused by duplicate configuration-file symlinks
71
+
72
+ -- Christoph Erhardt <kolab@sicherha.de> Sun, 04 Jun 2017 12:02:01 +0200
73
+
74
+libkolabxml (1.2~dev20160909-0~kolab6) unstable; urgency=low
75
+
76
+ * Prioritize kolabformat library appropriately
77
+
78
+ -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Tue, 16 May 2017 16:38:05 +0200
79
+
80
+libkolabxml (1.2~dev20160909-0~kolab5) unstable; urgency=low
81
+
82
+ * Provide proper upgrade path
83
+
84
+ -- Christoph Erhardt <kolab@sicherha.de> Fri, 12 May 2017 18:02:30 +0200
85
+
86
+libkolabxml (1.2~dev20160909-0~kolab4) unstable; urgency=low
87
+
88
+ * Liberate the build requirements
89
+
90
+ -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Thu, 4 May 2017 16:38:05 +0200
91
+
92
+libkolabxml (1.2~dev20160909-0~kolab1) unstable; urgency=low
93
+
94
+ * Get the Debian packaging up to par with the new upstream
95
+
96
+ -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Tue, 9 Feb 2016 16:38:05 +0200
97
+
98
+libkolabxml (1.2~dev20151230-0~kolab1) unstable; urgency=low
99
+
100
+ * use 9 as dh compat level in debian.tar.gz to get hardening flags
101
+
102
+ -- Jochen Hein <jochen@jochen.org> Mon, 07 Sep 2015 18:32:01 +0200
103
+
104
+libkolabxml (1.2~dev20150904-0~kolab2) unstable; urgency=low
105
+
106
+ * fix debian/shlibs file in debian.tar.gz
107
+
108
+ -- Jochen Hein <jochen@jochen.org> Mon, 07 Sep 2015 16:42:01 +0200
109
+
110
+libkolabxml (1.2~dev20150904-0~kolab1) unstable; urgency=low
111
+
112
+ * Ship the latest git master snapshot
113
+
114
+ -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Mon, 11 May 2015 16:38:05 +0200
115
+
116
+libkolabxml (1.1~dev20140624-0~kolab2) unstable; urgency=low
117
+
118
+ * build requires libqt4-dev
119
+
120
+ -- Timotheus Pokorra (TBits.net) <tp@tbits.net> Mon, 20 Apr 2015 16:38:05 +0200
121
+
122
+libkolabxml (1.1~dev20140624-0~kolab1) unstable; urgency=low
123
+
124
+ * Ship the latest git master snapshot
125
+
126
+ -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Tue, 24 Jun 2014 16:38:05 +0200
127
+
128
+libkolabxml (1.0.1-0~kolab4) unstable; urgency=low
129
+
130
+ * php5dismod is not available on UCS 3.2, so invent a work-around for that
131
+
132
+ -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Wed, 09 Apr 2014 16:38:05 +0200
133
+
134
+libkolabxml (1.0.1-0~kolab3) unstable; urgency=low
135
+
136
+ * No need to require php-kolab any longer, resolving #1632
137
+
138
+ -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Sun, 03 Mar 2014 16:38:05 +0200
139
+
140
+libkolabxml (1.0.1-0~kolab2) unstable; urgency=low
141
+
142
+ * Simply own all files in the cmake directory
143
+
144
+ -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Tue, 19 Nov 2013 16:38:05 +0200
145
+
146
+libkolabxml (1.0.1-0~kolab1) unstable; urgency=low
147
+
148
+ * Check in upstream release 1.0.1
149
+
150
+ -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Wed, 30 Oct 2013 16:38:05 +0200
151
+
152
+libkolabxml (1.0.0-0~kolab1) unstable; urgency=low
153
+
154
+ * Check in upstream release 1.0.0
155
+
156
+ -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Mon, 14 Oct 2013 16:38:05 +0200
157
+
158
+libkolabxml (1.0~dev20130521-1) unstable; urgency=low
159
+
160
+ * Check in version 1.0~dev20130521 for Kolab 3.1
161
+
162
+ -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Sun, 08 Sep 2013 19:25:44 +0200
163
+
164
+libkolabxml (0.8.4-1) unstable; urgency=low
165
+
166
+ * Remove empty line
167
+ * Imported Upstream version 0.8.4
168
+ * Update changelog
169
+ * Correct search for PHP version and include dirs
170
+ * Remove unused cmake arguments
171
+ * Remove unused verbosity
172
+ * Add bug to patch description
173
+
174
+ -- Paul Klos <kolab@klos2day.nl> Sat, 13 Apr 2013 22:10:16 +0200
175
+
176
+libkolabxml (0.8.3-2) unstable; urgency=low
177
+
178
+ * Prepare for transition into Debian proper
179
+
180
+ -- Paul Klos <kolab@klos2day.nl> Sat, 13 Apr 2013 00:19:04 +0200
181
+
182
+libkolabxml (0.8.3-1) unstable; urgency=low
183
+
184
+ * Imported upstream version 0.8.3
185
+
186
+ -- Paul Klos <kolab@klos2day.nl> Fri, 01 Mar 2013 11:12:38 +0100
187
+
188
+libkolabxml (0.8.1-5) unstable; urgency=low
189
+
190
+ Paul Klos
191
+ * Install kolabformat.ini to usr/share/php5/kolab
192
+ * Have maintainer scripts manage kolabformat.ini
193
+
194
+ Jeroen van Meeuwen
195
+ * Rebuild
196
+
197
+ -- Paul Klos <kolab@klos2day.nl> Fri, 19 Oct 2012 20:02:17 +0200
198
+
199
+libkolabxml (0.8.1-3.2) unstable; urgency=low
200
+
201
+ * Non-maintainer upload.
202
+ * Fixing lintian errors
203
+
204
+ -- Paul Klos <kolab@klos2day.nl> Sat, 13 Oct 2012 14:00:00 +0200
205
+
206
+libkolabxml (0.8.1-3.1) UNRELEASED; urgency=low
207
+
208
+ Jeroen van Meeuwen (Kolab Systems)
209
+ * Resolve hardcoded libc dependency
210
+ * Correct identity for maintainer
211
+ * Fix typo
212
+
213
+ Michael Kiefer <Michael-Kiefer@web.de>
214
+ * Changed dependency for phpapi to allow phpapi-20100525+lfs
215
+
216
+ -- Michael Kiefer <Michael-Kiefer@web.de> Sat, 29 Sep 2012 21:36:35 +0200
217
+
218
+libkolabxml (0.8.1-2) unstable; urgency=low
219
+
220
+ Jeroen van Meeuwen (Kolab Systems)
221
+ * Make the variables used be explicitly executed in shell
222
+ * Attempt to include shlibs with libkolabxml0
223
+
224
+ Kolab Systems User
225
+
226
+ -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Sat, 08 Sep 2012 19:25:44 +0200
227
+
228
+libkolabxml (0.8.1-1) unstable; urgency=low
229
+
230
+ * Build for Debian Wheezy
231
+
232
+ -- Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> Fri, 7 Sep 2012 14:07:50 +0100
233
+
234
+libkolabxml (0.7.0-0ubuntu2) quantal; urgency=low
235
+
236
+ * Add libcurl4-gnutls-dev build-dep
237
+
238
+ -- Jonathan Riddell <jriddell@ubuntu.com> Thu, 19 Jul 2012 13:36:30 +0100
239
+
240
+libkolabxml (0.7.0-0ubuntu1) quantal; urgency=low
241
+
242
+ * New upstream release
243
+
244
+ -- Jonathan Riddell <jriddell@ubuntu.com> Thu, 19 Jul 2012 12:33:20 +0100
245
+
246
+libkolabxml (0.6.0+repack1-0ubuntu3) quantal; urgency=low
247
+
248
+ * Enable parallel building.
249
+ * Switch to debhelper compat level v9 which exports build flags.
250
+ * Add a watch file.
251
+
252
+ -- Felix Geyer <debfx@ubuntu.com> Tue, 17 Jul 2012 19:16:09 +0200
253
+
254
+libkolabxml (0.6.0+repack1-0ubuntu2) quantal; urgency=low
255
+
256
+ * Initial release.
257
+ * .orig repacked with copying licences from upstream
258
+
259
+ -- Jonathan Riddell <jriddell@ubuntu.com> Thu, 05 Jul 2012 12:55:57 +0100
260
debian.control
Added
99
1
2
+Source: libkolabxml
3
+Section: libs
4
+Priority: optional
5
+Maintainer: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>
6
+Uploaders: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>
7
+Build-Depends: cmake,
8
+ debhelper,
9
+ extra-cmake-modules,
10
+ dh-python,
11
+ libboost-dev,
12
+ libboost-system-dev,
13
+ libboost-thread-dev,
14
+ libcurl4-gnutls-dev,
15
+ libossp-uuid-dev,
16
+ qtbase5-dev,
17
+ libxerces-c-dev,
18
+ php-cgi | php5-cli,
19
+ php-dev | php5-dev,
20
+ plesk-php70-dev | bash,
21
+ plesk-php71-dev | bash,
22
+ plesk-php72-dev | bash,
23
+ plesk-php73-dev | bash,
24
+ plesk-php74-dev | bash,
25
+ psa | bash,
26
+ python2-dev | python-dev,
27
+ python-minimal | python2-minimal,
28
+ python3-all-dev,
29
+ swig (>= 2.0),
30
+ xsdcxx
31
+X-Python-Version: >= 2.7
32
+Standards-Version: 3.9.3
33
+Homepage: http://git.kolab.org/libkolabxml
34
+
35
+Package: libkolabxml1v5
36
+Architecture: any
37
+Depends: ${misc:Depends},
38
+ ${shlibs:Depends}
39
+Conflicts: libkolabxml1
40
+Replaces: libkolabxml1
41
+Description: Libkolabxml is the reference implementation of the Kolab XML format
42
+ The Kolab 3.0 XML format is defined in
43
+ http://wiki.kolab.org/User:Mollekopf/Drafts/KEP:17.
44
+ This package provides serialization/deserialization from/to
45
+ in-memory representations for all Kolab Objects,
46
+ including input validation.
47
+
48
+Package: php-kolabformat
49
+Architecture: any
50
+Depends: libkolabxml1v5 (= ${binary:Version}),
51
+ ${misc:Depends},
52
+ ${shlibs:Depends},
53
+ ${php:Depends},
54
+ ucf
55
+Provides: php-bindings-libkolabxml
56
+Description: PHP bindings for Kolab Format 3.0 XML parsing
57
+ Libkolabxml is the reference implementation of the Kolab XML format
58
+ For more information see the libkolabxml package.
59
+ .
60
+ This package provides PHP bindings for libkolabxml
61
+
62
+Package: python-kolabformat
63
+Architecture: any
64
+Section: python
65
+Depends: libkolabxml1v5 (= ${binary:Version}),
66
+ python,
67
+ ${misc:Depends},
68
+ ${shlibs:Depends}
69
+Description: Python bindings for Kolab Format 3.0 XML parsing
70
+ Libkolabxml is the reference implementation of the Kolab XML format.
71
+ For more information see the libkolabxml package.
72
+ .
73
+ This package provides Python bindings for libkolabxml
74
+
75
+Package: python3-kolabformat
76
+Architecture: any
77
+Section: python
78
+Depends: libkolabxml1v5 (= ${binary:Version}),
79
+ ${python3:Depends},
80
+ ${misc:Depends},
81
+ ${shlibs:Depends}
82
+Description: Python 3 bindings for Kolab Format 3.0 XML parsing
83
+ Libkolabxml is the reference implementation of the Kolab XML format.
84
+ For more information see the libkolabxml package.
85
+ .
86
+ This package provides Python 3 bindings for libkolabxml
87
+
88
+Package: libkolabxml-dev
89
+Section: libdevel
90
+Architecture: any
91
+Depends: libkolabxml1v5 (= ${binary:Version}),
92
+ ${misc:Depends}
93
+Description: Development files for libkolabxml
94
+ Libkolabxml is the reference implementation of the Kolab XML format.
95
+ For more information see the libkolabxml package.
96
+ .
97
+ This package provides development files libkolabxml.
98
+
99
debian.rules
Added
175
1
2
+#!/usr/bin/make -f
3
+
4
+PHPAPI := $(shell php-config --phpapi)
5
+PHPBIN := $(shell php-config --php-binary)
6
+PHPEXT := $(shell php-config --extension-dir)
7
+PHPINC := $(shell php-config --include-dir)
8
+
9
+PHP_VERSIONS=7.4 7.3 7.2 7.1 7.0 5.6
10
+
11
+export DH_VERBOSE=1
12
+export DH_OPTIONS=-v
13
+
14
+export DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed"
15
+
16
+%:
17
+ python3 utils/zonetabconversion.py
18
+ dh $@ --parallel --with python2,python3 --buildsystem=pybuild
19
+
20
+override_dh_gencontrol:
21
+ echo "php:Depends=phpapi-${PHPAPI}" >> debian/php-kolabformat.substvars
22
+
23
+ if -f /etc/plesk-release ; then \
24
+ for version in $(PHP_VERSIONS) ; do \
25
+ if ! -f "/opt/plesk/php/$${version}/bin/php-config" ; then \
26
+ continue ; \
27
+ fi ; \
28
+ shver=$$(echo $${version} | sed -e 's/\.//g') ; \
29
+ echo "" >> debian/control ; \
30
+ echo "Package: plesk-php$${shver}-kolabformat" >> debian/control ; \
31
+ echo "Architecture: amd64" >> debian/control ; \
32
+ echo "Depends: libkolabxml1v5, plesk-php$${shver}" >> debian/control ; \
33
+ echo "Provides: php-bindings-libkolabxml" >> debian/control ; \
34
+ echo "Description: Kolab format bindings for Plesk PHP $${version}" >> debian/control ; \
35
+ echo "" >> debian/control ; \
36
+ sed -i -e "/Files:/ i\
37
+ plesk-php$${shver}-kolabformat deb web extra" debian/control ; \
38
+ echo "opt/plesk/php/$${version}/lib/php/modules/*.so" >> debian/plesk-php$${shver}-kolabformat.install ; \
39
+ echo "opt/plesk/php/$${version}/share/php/kolabformat.php" >> debian/plesk-php$${shver}-kolabformat.install ; \
40
+ echo "debian/kolabformat.ini opt/plesk/php/$${version}/etc/php.d" >> debian/plesk-php$${shver}-kolabformat.install ; \
41
+ done ; \
42
+ fi
43
+
44
+ dh_gencontrol
45
+
46
+override_dh_auto_build:
47
+ # Build plesk php versions
48
+ if -f /etc/plesk-release ; then \
49
+ for version in $(PHP_VERSIONS) ; do \
50
+ if ! -f "/opt/plesk/php/$${version}/bin/php-config" ; then \
51
+ continue ; \
52
+ fi ; \
53
+ if $$(/opt/plesk/php/$${version}/bin/php-config --vernum) -gt 70000 ; then \
54
+ sed -r -i -e 's/-c\+\+ -php0-9? -o/-c++ -php7 -o/g' src/php/CMakeLists.txt ; \
55
+ else \
56
+ sed -r -i -e 's/-c\+\+ -php0-9? -o/-c++ -php -o/g' src/php/CMakeLists.txt ; \
57
+ fi ; \
58
+ dh_auto_build --buildsystem cmake --builddirectory php-$${version} ; \
59
+ done ; \
60
+ fi
61
+
62
+ # Build php vanilla
63
+ if $$(php-config --vernum) -gt 70000 ; then \
64
+ sed -r -i -e 's/-c\+\+ -php0-9? -o/-c++ -php7 -o/g' src/php/CMakeLists.txt ; \
65
+ else \
66
+ sed -r -i -e 's/-c\+\+ -php0-9? -o/-c++ -php -o/g' src/php/CMakeLists.txt ; \
67
+ fi
68
+
69
+ dh_auto_build --buildsystem cmake --builddirectory php-vanilla
70
+
71
+ # Build python versions via pybuild
72
+ dh_auto_build
73
+
74
+override_dh_auto_configure:
75
+ echo 9 > debian/compat
76
+ if -f /etc/plesk-release ; then \
77
+ for version in $(PHP_VERSIONS) ; do \
78
+ if ! -f "/opt/plesk/php/$${version}/bin/php-config" ; then \
79
+ continue ; \
80
+ fi ; \
81
+ if $$(/opt/plesk/php/$${version}/bin/php-config --vernum) -gt 70000 ; then \
82
+ sed -r -i -e 's/-c\+\+ -php0-9? -o/-c++ -php7 -o/g' src/php/CMakeLists.txt ; \
83
+ else \
84
+ sed -r -i -e 's/-c\+\+ -php0-9? -o/-c++ -php -o/g' src/php/CMakeLists.txt ; \
85
+ fi ; \
86
+ dh_auto_configure --buildsystem cmake --builddirectory php-$${version} -- -DLIB_INSTALL_DIR=/usr/lib \
87
+ -DQT5_BUILD=ON \
88
+ -DBoost_NO_BOOST_CMAKE=ON \
89
+ -DSWIG=/usr/bin/swig \
90
+ -DPHP_BINDINGS=ON \
91
+ -DPHP_INCLUDE_DIR=$$(/opt/plesk/php/$${version}/bin/php-config --include-dir) \
92
+ -DPHP_CONFIG_EXECUTABLE=/opt/plesk/php/$${version}/bin/php-config \
93
+ -DPHP_EXECUTABLE=/opt/plesk/php/$${version}/bin/php \
94
+ -DPHP_INCLUDE_DIR=$$(/opt/plesk/php/$${version}/bin/php-config --include-dir) \
95
+ -DPHP_INSTALL_DIR=$$(/opt/plesk/php/$${version}/bin/php-config --extension-dir) ; \
96
+ done ; \
97
+ fi
98
+
99
+ # Configure php vanilla
100
+ if $$(php-config --vernum) -gt 70000 ; then \
101
+ sed -r -i -e 's/-c\+\+ -php0-9? -o/-c++ -php7 -o/g' src/php/CMakeLists.txt ; \
102
+ else \
103
+ sed -r -i -e 's/-c\+\+ -php0-9? -o/-c++ -php -o/g' src/php/CMakeLists.txt ; \
104
+ fi
105
+
106
+ grep kolabformat.i src/php/CMakeLists.txt
107
+
108
+ dh_auto_configure --buildsystem cmake --builddirectory php-vanilla -- \
109
+ -DLIB_INSTALL_DIR=/usr/lib \
110
+ -DQT5_BUILD=ON \
111
+ -DBoost_NO_BOOST_CMAKE=ON \
112
+ -DPHP_BINDINGS=ON \
113
+ -DPHP_INSTALL_DIR=$(PHPEXT) \
114
+ -DPHP_EXECUTABLE=$(PHPBIN) \
115
+ -DPHP_INCLUDE_DIR=$(PHPINC)
116
+
117
+ # Configure python builds via pybuild
118
+ dh_auto_configure -- --configure-args \
119
+ "-DLIB_INSTALL_DIR=/usr/lib \
120
+ -DQT5_BUILD=ON \
121
+ -DBoost_NO_BOOST_CMAKE=ON \
122
+ -DPYTHON_BINDINGS=ON \
123
+ -DPYTHON_INSTALL_DIR={install_dir}"
124
+
125
+override_dh_install:
126
+ # Install the PHP modules manually, because they depend on the PHP API version,
127
+ # which has to be determined dynamically, so we can't put it into an .install file.
128
+ mkdir -p debian/tmp/usr/share/php
129
+ make -C php-vanilla install DESTDIR=$(PWD)/debian/tmp/ ; \
130
+ mv -v debian/tmp/usr/lib/php*/$(PHPAPI)/kolabformat.php debian/tmp/usr/share/php/kolabformat.php
131
+
132
+ if -d "/etc/php/7.4/mods-available/" ; then \
133
+ echo "debian/kolabformat.ini etc/php/7.4/mods-available" >> debian/php-kolabformat.install ; \
134
+ elif -d "/etc/php/7.3/mods-available/" ; then \
135
+ echo "debian/kolabformat.ini etc/php/7.3/mods-available" >> debian/php-kolabformat.install ; \
136
+ elif -d "/etc/php/7.2/mods-available/" ; then \
137
+ echo "debian/kolabformat.ini etc/php/7.2/mods-available" >> debian/php-kolabformat.install ; \
138
+ elif -d "/etc/php/7.1/mods-available/" ; then \
139
+ echo "debian/kolabformat.ini etc/php/7.1/mods-available" >> debian/php-kolabformat.install ; \
140
+ elif -d "/etc/php/7.0/mods-available/" ; then \
141
+ echo "debian/kolabformat.ini etc/php/7.0/mods-available" >> debian/php-kolabformat.install ; \
142
+ elif -d "/etc/php/mods-available/" ; then \
143
+ echo "debian/kolabformat.ini etc/php/mods-available" >> debian/php-kolabformat.install ; \
144
+ else \
145
+ echo "debian/kolabformat.ini etc/php5/mods-available" >> debian/php-kolabformat.install ; \
146
+ fi
147
+
148
+ if -f /etc/plesk-release ; then \
149
+ for version in $(PHP_VERSIONS) ; do \
150
+ if ! -f "/opt/plesk/php/$${version}/bin/php-config" ; then \
151
+ continue ; \
152
+ fi ; \
153
+ if $$(/opt/plesk/php/$${version}/bin/php-config --vernum) -gt 70000 ; then \
154
+ sed -r -i -e 's/-c\+\+ -php0-9? -o/-c++ -php7 -o/g' src/php/CMakeLists.txt ; \
155
+ else \
156
+ sed -r -i -e 's/-c\+\+ -php0-9? -o/-c++ -php -o/g' src/php/CMakeLists.txt ; \
157
+ fi ; \
158
+ shver=$$(echo $${version} | sed -e 's/\.//g') ; \
159
+ make -C php-$${version} install DESTDIR=$(PWD)/debian/plesk-php$${shver}-kolabformat/ ; \
160
+ mkdir -p debian/plesk-php$${shver}-kolabformat/opt/plesk/php/$${version}/etc/php.d/ ; \
161
+ mkdir -p debian/plesk-php$${shver}-kolabformat/opt/plesk/php/$${version}/share/php/ ; \
162
+ cp -a debian/kolabformat.ini debian/plesk-php$${shver}-kolabformat/opt/plesk/php/$${version}/etc/php.d/ ; \
163
+ mv -v debian/plesk-php$${shver}-kolabformat$$(/opt/plesk/php/$${version}/bin/php-config --extension-dir)/kolabformat.php \
164
+ debian/plesk-php$${shver}-kolabformat/opt/plesk/php/$${version}/share/php/kolabformat.php || exit 1; \
165
+ rm -rvf debian/plesk-php$${shver}-kolabformat/usr/ ; \
166
+ find debian/plesk-php$${shver}-kolabformat/ | sort ; \
167
+ done ; \
168
+ fi
169
+
170
+ dh_install --list-missing
171
+
172
+override_dh_auto_test:
173
+ # Fails on ubuntu 20.04 and debian 10 because of missing qt libraries
174
+ dh_auto_test || :
175
debian.series
Added
3
1
2
+libossp-uuid-include.patch -p1
3
debian.tar.gz
Added
libkolabxml-1.2.1.tar.gz
Added
libkolabxml.dsc
Added
43
1
2
+Format: 1.0
3
+Source: libkolabxml
4
+Binary: libkolabxml1v5, php-kolabformat, python-kolabformat, libkolabxml-dev
5
+Architecture: any
6
+Version: 1.2.1-0~kolab3
7
+Maintainer: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>
8
+Uploaders: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com>
9
+Homepage: http://git.kolab.org/libkolabxml
10
+Standards-Version: 3.9.3
11
+Build-Depends: cmake,
12
+ debhelper,
13
+ extra-cmake-modules,
14
+ dh-python,
15
+ libboost-dev,
16
+ libboost-system-dev,
17
+ libboost-thread-dev,
18
+ libcurl4-gnutls-dev,
19
+ libossp-uuid-dev,
20
+ qtbase5-dev,
21
+ libxerces-c-dev,
22
+ php-cgi | php5-cli,
23
+ php-dev | php5-dev,
24
+ psa | bash,
25
+ plesk-php70-dev | plesk-php71-dev | plesk-php72-dev | plesk-php73-dev | plesk-php74-dev | bash,
26
+ plesk-php71-dev | plesk-php72-dev | plesk-php73-dev | plesk-php74-dev | bash,
27
+ plesk-php72-dev | plesk-php73-dev | plesk-php74-dev | bash,
28
+ plesk-php73-dev | plesk-php74-dev | bash,
29
+ plesk-php74-dev | bash,
30
+ python2-dev | python-dev,
31
+ python-minimal | python2-minimal,
32
+ python3-all-dev,
33
+ swig (>= 2.0),
34
+ xsdcxx
35
+Package-List:
36
+ libkolabxml-dev deb libdevel optional
37
+ libkolabxml1v5 deb libs optional
38
+ php-kolabformat deb libs optional
39
+ python-kolabformat deb python optional
40
+Files:
41
+ 00000000000000000000000000000000 0 libkolabxml-1.2.1.tar.gz
42
+ 00000000000000000000000000000000 0 debian.tar.gz
43
Refresh
libkolabxml
x86_64
x86_64
x86_64
ppc64le
x86_64
x86_64
ppc64le
x86_64
x86_64
x86_64
x86_64
x86_64
x86_64
x86_64
ppc64le
x86_64
x86_64
x86_64
x86_64
x86_64
x86_64
Refresh
Login required, please
login
in order to comment
Request History
mollekopf created request about 2 years ago
Branch off legacy libkolabxml.
mollekopf accepted request about 2 years ago