View | Details | Raw Unified | Return to bug 32982
Collapse All | Expand All

(-)a/krb5.spec (-11 / +61 lines)
Lines 1-7 Link Here
1
%def_with doc
2
%def_with ldap
3
%def_with selinux
4
%def_with verto
5
%def_enable check
1
6
2
Name: krb5
7
Name: krb5
3
Version: 1.14.2
8
Version: 1.14.2
4
Release: alt2
9
Release: alt2.1
5
10
6
%define _docdir %_defaultdocdir/%name-%version
11
%define _docdir %_defaultdocdir/%name-%version
7
12
Lines 37-58 Patch165: krb5-1.15-kdc_hooks_test.patch Link Here
37
42
38
BuildRequires: /dev/pts /proc
43
BuildRequires: /dev/pts /proc
39
BuildRequires: flex libcom_err-devel libkeyutils-devel
44
BuildRequires: flex libcom_err-devel libkeyutils-devel
40
BuildRequires: libldap-devel libsasl2-devel
45
%{?_with_ldap:BuildRequires: libldap-devel libsasl2-devel}
41
BuildRequires: libncurses-devel libss-devel libssl-devel libtinfo-devel
46
BuildRequires: libncurses-devel libss-devel libssl-devel libtinfo-devel
42
BuildRequires: libverto-devel libselinux-devel
47
%{?_with_selinux:BuildRequires: libselinux-devel}
43
BuildRequires: libpam-devel
48
BuildRequires: libpam-devel
49
%{?_with_verto:BuildRequires: libverto-devel}
44
50
51
%if_with doc
45
BuildRequires: python-module-sphinx
52
BuildRequires: python-module-sphinx
46
BuildRequires: texlive-latex-base texlive-base-bin texlive-latex-recommended
53
BuildRequires: texlive-latex-base texlive-base-bin texlive-latex-recommended
54
%endif
47
55
48
%ifarch %{ix86} x86_64
56
%ifarch %{ix86} x86_64
49
BuildRequires: yasm
57
%{?!_with_bootstrap:BuildRequires: yasm}
50
%endif
58
%endif
51
59
60
%if_enabled check
52
# for tests
61
# for tests
53
BuildRequires: libverto-libev python-modules gcc-c++
62
BuildRequires: libverto-libev python-modules gcc-c++
54
# dejagnu tests disabled
63
# dejagnu tests disabled
55
# BuildRequires: dejagnu tcl-devel
64
# BuildRequires: dejagnu tcl-devel
65
%endif
56
66
57
%description
67
%description
58
Kerberos V5 is a trusted-third-party network authentication system,
68
Kerberos V5 is a trusted-third-party network authentication system,
Lines 75-87 Requires: lib%name = %version-%release Link Here
75
Summary: Development files needed to compile Kerberos 5 programs
85
Summary: Development files needed to compile Kerberos 5 programs
76
Group: System/Libraries
86
Group: System/Libraries
77
Requires: lib%name = %version-%release
87
Requires: lib%name = %version-%release
78
Requires: lib%name-ldap = %version-%release
88
%{?_with_ldap:Requires: lib%name-ldap = %version-%release}
79
Requires: libcom_err-devel
89
Requires: libcom_err-devel
80
Provides: %name-services = %version-%release
90
Provides: %name-services = %version-%release
81
Provides: %name-clients = %version-%release
91
Provides: %name-clients = %version-%release
82
Obsoletes: %name-services < %version-%release
92
Obsoletes: %name-services < %version-%release
83
Obsoletes: %name-clients < %version-%release
93
Obsoletes: %name-clients < %version-%release
84
94
95
%if_without verto
96
%package -n libverto
97
Version: 0.0.%version
98
Summary: verto shared libraries (bootstrap build)
99
Group: System/Legacy libraries
100
101
%description -n libverto
102
This is a temporary libverto package built within krb5;
103
only used for bootstrap.
104
%endif
105
85
%package kdc
106
%package kdc
86
Group: System/Servers
107
Group: System/Servers
87
Summary: The Kerberos 5 Key Distribution Center
108
Summary: The Kerberos 5 Key Distribution Center
Lines 175-180 MIT Kerberos. Link Here
175
%patch164 -p1 -b .kdc_send_receive_hooks
196
%patch164 -p1 -b .kdc_send_receive_hooks
176
%patch165 -p1 -b .kdc_hooks_test
197
%patch165 -p1 -b .kdc_hooks_test
177
198
199
%ifarch e2k
200
sed -r -i 's, error=(pointer-arith|uninitialized),,g' \
201
	src/aclocal.m4 src/configure*
202
%endif
203
178
%build
204
%build
179
# Go ahead and supply tcl info, because configure doesn't know how to find it.
205
# Go ahead and supply tcl info, because configure doesn't know how to find it.
180
# . %_libdir/tclConfig.sh
206
# . %_libdir/tclConfig.sh
Lines 194-210 util/reconf --verbose --force Link Here
194
	--localstatedir=%_localstatedir/kerberos \
220
	--localstatedir=%_localstatedir/kerberos \
195
	--with-system-et \
221
	--with-system-et \
196
	--with-system-ss \
222
	--with-system-ss \
197
	--with-system-verto \
223
	%{?_with_verto:--with-system-verto} \
198
	--with-ldap \
224
	%{subst_with ldap} \
225
	%{subst_with selinux} \
199
	--enable-dns-for-realm \
226
	--enable-dns-for-realm \
200
	--with-dirsrv-account-locking \
227
	--with-dirsrv-account-locking \
201
	--enable-pkinit \
228
	--enable-pkinit \
229
%if_without bootstrap
202
	--with-pkinit-crypto-impl=openssl \
230
	--with-pkinit-crypto-impl=openssl \
203
	--with-tls-impl=openssl \
231
	--with-tls-impl=openssl \
232
%endif
204
	--with-pam \
233
	--with-pam \
205
	--with-netlib=-lresolv \
234
	--with-netlib=-lresolv \
206
	--disable-rpath \
235
	--disable-rpath \
207
	--with-selinux
208
	#
236
	#
209
237
210
# dejagnu tests disabled
238
# dejagnu tests disabled
Lines 219-224 if test "$configured_kdcrundir" != %_runtimedir/krb5kdc ; then Link Here
219
    exit 1
247
    exit 1
220
fi
248
fi
221
249
250
%if_with doc
222
# Build the docs.
251
# Build the docs.
223
make -C src/doc paths.py version.py
252
make -C src/doc paths.py version.py
224
cp src/doc/paths.py doc/
253
cp src/doc/paths.py doc/
Lines 231-236 sphinx-build -a -b latex -t pathsubs doc build-pdf Link Here
231
for pdf in admin appdev basic build plugindev user ; do
260
for pdf in admin appdev basic build plugindev user ; do
232
    test -s build-pdf/$pdf.pdf || make -C build-pdf
261
    test -s build-pdf/$pdf.pdf || make -C build-pdf
233
done
262
done
263
%endif
234
264
235
%check
265
%check
236
make -C src runenv.py
266
make -C src runenv.py
Lines 278-288 mkdir -m 755 -p %buildroot%_sysconfdir/gss Link Here
278
# hard-coded in g_initialize.c.
308
# hard-coded in g_initialize.c.
279
mkdir -m 755 -p %buildroot%_sysconfdir/gss/mech.d
309
mkdir -m 755 -p %buildroot%_sysconfdir/gss/mech.d
280
310
311
%if_with doc
281
# Install docs
312
# Install docs
282
mkdir -p %buildroot%_docdir/pdf
313
mkdir -p %buildroot%_docdir/pdf
283
cp build-pdf/*.pdf %buildroot%_docdir/pdf/
314
cp build-pdf/*.pdf %buildroot%_docdir/pdf/
284
cp -R build-html/ %buildroot/%_docdir/
315
cp -R build-html/ %buildroot/%_docdir/
285
cp -p src/plugins/kdb/ldap/libkdb_ldap/kerberos.{ldif,schema} %buildroot%_docdir/
316
cp -p src/plugins/kdb/ldap/libkdb_ldap/kerberos.{ldif,schema} %buildroot%_docdir/
317
%endif
286
318
287
# cleanups
319
# cleanups
288
rm -rf %buildroot%_datadir/gnats
320
rm -rf %buildroot%_datadir/gnats
Lines 291-296 touch %buildroot%_sysconfdir/krb5.keytab Link Here
291
323
292
%find_lang mit-krb5
324
%find_lang mit-krb5
293
325
326
%if_without bootstrap
294
%post kdc
327
%post kdc
295
%post_service krb5kdc
328
%post_service krb5kdc
296
%post_service kadmin
329
%post_service kadmin
Lines 300-305 touch %buildroot%_sysconfdir/krb5.keytab Link Here
300
%preun_service krb5kdc
333
%preun_service krb5kdc
301
%preun_service kadmin
334
%preun_service kadmin
302
%preun_service kprop
335
%preun_service kprop
336
%endif
303
337
304
%files -n lib%name -f mit-krb5.lang
338
%files -n lib%name -f mit-krb5.lang
305
%config(noreplace) %_sysconfdir/krb5.conf
339
%config(noreplace) %_sysconfdir/krb5.conf
Lines 331-339 touch %buildroot%_sysconfdir/krb5.keytab Link Here
331
365
332
%_man5dir/krb5.conf.5*
366
%_man5dir/krb5.conf.5*
333
367
368
%if_with ldap
334
%files -n lib%name-ldap
369
%files -n lib%name-ldap
335
%_libdir/libkdb_ldap.so.*
370
%_libdir/libkdb_ldap.so.*
336
%_libdir/%name/plugins/kdb/kldap.so
371
%_libdir/%name/plugins/kdb/kldap.so
372
%endif
337
373
338
%files -n lib%name-devel
374
%files -n lib%name-devel
339
%_includedir/*
375
%_includedir/*
Lines 353-358 touch %buildroot%_sysconfdir/krb5.keytab Link Here
353
%_man8dir/sserver.8*
389
%_man8dir/sserver.8*
354
%_pkgconfigdir/*
390
%_pkgconfigdir/*
355
391
392
%if_without verto
393
%files -n libverto
394
%_prefix/lib*/libverto.so.*
395
%endif
396
397
%if_without bootstrap
356
%files kdc
398
%files kdc
357
%dir %_localstatedir/kerberos/krb5kdc
399
%dir %_localstatedir/kerberos/krb5kdc
358
%config(noreplace) %_localstatedir/kerberos/krb5kdc/kdc.conf
400
%config(noreplace) %_localstatedir/kerberos/krb5kdc/kdc.conf
Lines 372-378 touch %buildroot%_sysconfdir/krb5.keytab Link Here
372
%_sbindir/kadmin.local
414
%_sbindir/kadmin.local
373
%_sbindir/kadmind
415
%_sbindir/kadmind
374
%_sbindir/kdb5_util
416
%_sbindir/kdb5_util
375
%_sbindir/kdb5_ldap_util
417
%{?_with_ldap:%_sbindir/kdb5_ldap_util}
376
%_sbindir/kprop
418
%_sbindir/kprop
377
%_sbindir/kproplog
419
%_sbindir/kproplog
378
%_sbindir/kpropd
420
%_sbindir/kpropd
Lines 383-393 touch %buildroot%_sysconfdir/krb5.keytab Link Here
383
%_man8dir/kadmin.local.8*
425
%_man8dir/kadmin.local.8*
384
%_man8dir/kadmind.8*
426
%_man8dir/kadmind.8*
385
%_man8dir/kdb5_util.8*
427
%_man8dir/kdb5_util.8*
386
%_man8dir/kdb5_ldap_util.8*
428
%{?_with_ldap:%_man8dir/kdb5_ldap_util.8*}
387
%_man8dir/kprop.8*
429
%_man8dir/kprop.8*
388
%_man8dir/kproplog.8*
430
%_man8dir/kproplog.8*
389
%_man8dir/kpropd.8*
431
%_man8dir/kpropd.8*
390
%_man8dir/krb5kdc.8*
432
%_man8dir/krb5kdc.8*
433
%endif
391
434
392
%files kadmin
435
%files kadmin
393
%_bindir/kadmin
436
%_bindir/kadmin
Lines 421-432 touch %buildroot%_sysconfdir/krb5.keytab Link Here
421
%_man5dir/.k5identity.5*
464
%_man5dir/.k5identity.5*
422
%_man5dir/k5identity.5*
465
%_man5dir/k5identity.5*
423
466
467
%if_with doc
424
%files doc
468
%files doc
425
%doc %_docdir
469
%doc %_docdir
470
%endif
426
471
427
# {{{ changelog
472
# {{{ changelog
428
473
429
%changelog
474
%changelog
475
* Fri Jan 06 2017 Michael Shigorin <mike@altlinux.org> 1.14.2-alt2.1
476
- BOOTSTRAP:
477
  + introduce doc, ldap, selinux, verto knobs (on by default)
478
  + conditionally package bundled libverto
479
- E2K: disable -Werror={pointer-arith,uninitialized} (lcc)
480
430
* Thu Jun 09 2016 Anton V. Boyarshinov <boyarsh@altlinux.org> 1.14.2-alt2
481
* Thu Jun 09 2016 Anton V. Boyarshinov <boyarsh@altlinux.org> 1.14.2-alt2
431
- krb5kdc.service: start after slapd
482
- krb5kdc.service: start after slapd
432
483
433
- 

Return to bug 32982