source: spec/trunk/SPECS/heimdal.spec@ 1569

Last change on this file since 1569 was 1537, checked in by Silvan Scherrer, 7 years ago

spec: heimdal: Release version 7.5.0-1.

File size: 7.6 KB
Line 
1
2Name: heimdal
3Version: 7.5.0
4Release: 1%{?dist}
5Summary: A Kerberos 5 implementation without export restrictions
6License: BSD and MIT
7URL: http://www.h5l.org/
8Group: System Environment/Libraries
9Vendor: bww bitwise works GmbH
10%scm_source github https://github.com/bitwiseworks/heimdal-os2 master-os2
11
12BuildRequires: bison
13BuildRequires: flex
14BuildRequires: readline-devel
15BuildRequires: libtool
16BuildRequires: ncurses-devel
17#BuildRequires: openldap-devel
18#Required for tests/ldap
19#BuildRequires: openldap-servers
20#BuildRequires: pam-devel
21BuildRequires: perl(JSON)
22BuildRequires: sqlite-devel
23BuildRequires: texinfo
24BuildRequires: db4-devel
25BuildRequires: python2
26
27
28# Bundled libtommath (https://bugzilla.redhat.com/1118462)
29Provides: bundled(libtommath) = 0.42.0
30
31%description
32Kerberos 5 is a network authentication and single sign-on system.
33Heimdal is a free Kerberos 5 implementation without export restrictions
34written from the spec (rfc1510 and successors) including advanced features
35like thread safety, IPv6, master-slave replication of Kerberos Key
36Distribution Center server and support for ticket delegation (S4U2Self,
37S4U2Proxy).
38This package can coexist with MIT Kerberos 5 packages. Hesiod is disabled
39by default since it is deemed too big a security risk by the packager.
40
41
42%package workstation
43Summary: Heimdal kerberos programs for use on workstations
44Group: System Environment/Base
45
46%description workstation
47This package contains Heimdal Kerberos 5 programs and utilities for
48use on workstations (kinit, klist, kdestroy, kpasswd)
49
50
51%package server
52Summary: Heimdal kerberos server
53Group: System Environment/Daemons
54#Requires: logrotate
55Provides: heimdal-kdc = %{version}-%{release}
56Obsoletes: heimdal-kdc < 1.5
57
58%description server
59This package contains the master Heimdal kerberos Key Distribution
60Center (KDC), admin interface server (admind) and master-slave
61synchronisation daemons. Install this package if you intend to
62set up Kerberos server.
63
64
65%package libs
66Summary: Heimdal kerberos shared libraries
67Group: System Environment/Libraries
68Requires(post): info
69Requires(preun): info
70
71%description libs
72This package contains shared libraries required by several of the other
73Heimdal packages.
74
75
76%package devel
77Summary: Header and other development files for Heimdal kerberos
78Group: System Environment/Libraries
79Provides: %{name}-static = %{version}-%{release}
80
81%description devel
82Contains files needed to compile and link software using the Heimdal
83kerberos headers/libraries.
84
85
86%debug_package
87
88
89%prep
90%scm_setup
91autoreconf -fvi
92
93
94%build
95export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
96export LIBS="-lcx -ltinfo"
97export VENDOR="%{vendor}"
98
99%ifarch i386
100%global build_fix "-march=i686"
101%else
102%global build_fix ""
103%endif
104%configure \
105 --prefix=%{_prefix} \
106 --includedir=%{_includedir}/%{name} \
107 --enable-shared \
108 --enable-pthread-support \
109 --enable-kcm \
110 --enable-pk-init \
111 --with-sqlite3=%{_prefix} \
112 --with-readline=%{_prefix} \
113 --with-libintl=/@unixroot/usr \
114 CFLAGS="%{optflags} %{build_fix}"
115
116export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/lib/roken/.libs
117make %{?_smp_mflags}
118make %{?_smp_mflags} -C doc html
119
120
121%check
122# Several intermittent test failures here, so make this non-fatal:
123#make check || :
124
125
126%install
127rm -rf %{buildroot}
128make DESTDIR=%{buildroot} install
129mkdir -p %{buildroot}%{_localstatedir}/heimdal/
130mkdir -p %{buildroot}%{_sysconfdir}
131echo "# see man heimdal-kadmind(8)" > %{buildroot}%{_sysconfdir}/heimdal-kadmind.acl
132ln -s %{_sysconfdir}/heimdal-kadmind.acl %{buildroot}%{_localstatedir}/heimdal/kadmind.acl
133touch %{buildroot}%{_sysconfdir}/heimdal-slaves
134ln -s %{_sysconfdir}/heimdal-slaves %{buildroot}%{_localstatedir}/heimdal/slaves
135install -d -m 700 %{buildroot}%{_localstatedir}/log/heimdal
136install -d -m 755 %{buildroot}/%{_pkgdocdir}
137install -p -D -m 644 LICENSE %{buildroot}/%{_pkgdocdir}/LICENSE
138rm -rf %{buildroot}%{_infodir}/dir
139# NOTICE: no support for X11
140rm -f %{buildroot}%{_mandir}/man1/kx.1*
141rm -f %{buildroot}%{_mandir}/man1/rxtelnet.1*
142rm -f %{buildroot}%{_mandir}/man1/rxterm.1*
143rm -f %{buildroot}%{_mandir}/man1/tenletxr.1*
144rm -f %{buildroot}%{_mandir}/man1/xnlock.1*
145rm -f %{buildroot}%{_mandir}/man8/kxd.8*
146# Remove CAT files, they are not needed
147rm -rf %{buildroot}%{_mandir}/cat*
148# Remove libtool archives
149find %{buildroot} -type f -name '*.la' -exec rm -f {} ';'
150
151ln -s %{_bindir}/kinit.exe %{buildroot}%{_bindir}/kauth
152
153rm %{buildroot}%{_mandir}/man5/qop.5
154ln -s mech.5.gz %{buildroot}%{_mandir}/man5/qop.5.gz
155
156if find %{buildroot} -name '*.mo' | grep .; then
157 %find_lang %{name} --all-name
158else
159 touch %{name}.lang
160fi
161
162
163%post server
164
165
166%preun server
167
168
169%postun server
170
171
172%post libs
173# %{_sbindir}/ldconfig
174 %{_sbindir}/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
175
176
177%preun libs
178if [ $1 = 0 ] ; then
179 %{_sbindir}/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
180fi
181
182
183%postun libs
184# %{_sbindir}/ldconfig
185
186
187%files libs -f %{name}.lang
188%{_libdir}/*.dll
189%{_infodir}/heimdal.info*
190%{_infodir}/hx509.info*
191%{_mandir}/man5/krb5.conf.5*
192%{_mandir}/man5/qop.5*
193%{_mandir}/man5/mech.5*
194%{_mandir}/man8/kerberos.8*
195%{_bindir}/string2key.exe
196%{_mandir}/man8/string2key.8*
197%{_libexecdir}/kdigest.exe
198%{_mandir}/man8/kdigest.8*
199%{_bindir}/verify_krb5_conf.exe
200%{_mandir}/man8/verify_krb5_conf.8*
201%{_libexecdir}/digest-service.exe
202%doc %{_pkgdocdir}
203
204
205%files server
206%dir %attr(700,root,root) %{_localstatedir}/heimdal
207%dir %attr(700,root,root) %{_localstatedir}/log/heimdal
208%config(noreplace) %attr(600,root,root) %{_sysconfdir}/heimdal-kadmind.acl
209%config(noreplace) %{_localstatedir}/heimdal/kadmind.acl
210%config(noreplace) %attr(600,root,root) %{_sysconfdir}/heimdal-slaves
211%config(noreplace) %{_localstatedir}/heimdal/slaves
212%{_libexecdir}/hprop.exe
213%{_mandir}/man8/hprop.8*
214%{_libexecdir}/hpropd.exe
215%{_mandir}/man8/hpropd.8*
216%{_mandir}/man8/iprop.8*
217%{_sbindir}/iprop-log.exe
218%{_mandir}/man8/iprop-log.8*
219%{_libexecdir}/ipropd-master.exe
220%{_mandir}/man8/ipropd-master.8*
221%{_libexecdir}/ipropd-slave.exe
222%{_mandir}/man8/ipropd-slave.8*
223%{_libexecdir}/kadmind.exe
224%{_mandir}/man8/kadmind.8*
225%{_libexecdir}/kdc.exe
226%{_mandir}/man8/kdc.8*
227%{_libexecdir}/kpasswdd.exe
228%{_mandir}/man8/kpasswdd.8*
229%{_sbindir}/kstash.exe
230%{_mandir}/man8/kstash.8*
231
232
233%files workstation
234%{_bindir}/afslog.exe
235%{_mandir}/man1/afslog.1*
236%{_bindir}/bsearch.exe
237%{_mandir}/man1/bsearch.1*
238%{_bindir}/pagsh.exe
239%{_mandir}/man1/pagsh.1*
240%{_bindir}/gsstool.exe
241%{_bindir}/heimtools.exe
242%{_bindir}/hxtool.exe
243%{_bindir}/idn-lookup.exe
244%{_bindir}/kdestroy.exe
245%{_mandir}/man1/kdestroy.1*
246%{_bindir}/kf.exe
247%{_mandir}/man1/kf.1*
248%{_bindir}/kgetcred.exe
249%{_mandir}/man1/kgetcred.1*
250%{_libexecdir}/kimpersonate.exe
251%{_mandir}/man8/kimpersonate.8*
252%{_bindir}/kinit.exe
253%{_bindir}/kauth
254%{_mandir}/man1/kinit.1*
255%{_bindir}/klist
256%{_mandir}/man1/klist.1*
257%{_bindir}/kpasswd.exe
258%{_mandir}/man1/kpasswd.1*
259%{_bindir}/kswitch
260%{_mandir}/man1/kswitch.1*
261%{_bindir}/otp.exe
262%{_mandir}/man1/otp.1*
263%{_bindir}/otpprint.exe
264%{_mandir}/man1/otpprint.1*
265%{_bindir}/kadmin.exe
266%{_mandir}/man1/kadmin.1*
267%{_libexecdir}/kcm.exe
268%{_mandir}/man8/kcm.8*
269%{_libexecdir}/kfd.exe
270%{_mandir}/man8/kfd.8*
271%{_bindir}/ktutil.exe
272%{_mandir}/man1/ktutil.1*
273%attr(04550,root,root) %{_bindir}/su.exe
274%{_mandir}/man1/su.1*
275
276
277%files devel
278%dir %{_libexecdir}/%{name}
279%{_bindir}/krb5-config
280%{_mandir}/man1/krb5-config.1*
281%{_includedir}/*
282%{_libdir}/*.a
283%{_mandir}/man3/*
284%{_mandir}/man7/*
285%{_libexecdir}/%{name}/asn1_compile.exe
286%{_libexecdir}/%{name}/asn1_print.exe
287%{_libexecdir}/%{name}/slc.exe
288%{_libdir}/pkgconfig/*.pc
289
290
291%changelog
292* Fri Apr 20 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 7.5.0-1
293- first public build
Note: See TracBrowser for help on using the repository browser.