| 1 |
|
|---|
| 2 | Name: heimdal
|
|---|
| 3 | Version: 7.5.0
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 | Summary: A Kerberos 5 implementation without export restrictions
|
|---|
| 6 | License: BSD and MIT
|
|---|
| 7 | URL: http://www.h5l.org/
|
|---|
| 8 | Group: System Environment/Libraries
|
|---|
| 9 | Vendor: bww bitwise works GmbH
|
|---|
| 10 | %scm_source github https://github.com/bitwiseworks/heimdal-os2 master-os2
|
|---|
| 11 |
|
|---|
| 12 | BuildRequires: bison
|
|---|
| 13 | BuildRequires: flex
|
|---|
| 14 | BuildRequires: readline-devel
|
|---|
| 15 | BuildRequires: libtool
|
|---|
| 16 | BuildRequires: ncurses-devel
|
|---|
| 17 | #BuildRequires: openldap-devel
|
|---|
| 18 | #Required for tests/ldap
|
|---|
| 19 | #BuildRequires: openldap-servers
|
|---|
| 20 | #BuildRequires: pam-devel
|
|---|
| 21 | BuildRequires: perl(JSON)
|
|---|
| 22 | BuildRequires: sqlite-devel
|
|---|
| 23 | BuildRequires: texinfo
|
|---|
| 24 | BuildRequires: db4-devel
|
|---|
| 25 | BuildRequires: python2
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 | # Bundled libtommath (https://bugzilla.redhat.com/1118462)
|
|---|
| 29 | Provides: bundled(libtommath) = 0.42.0
|
|---|
| 30 |
|
|---|
| 31 | %description
|
|---|
| 32 | Kerberos 5 is a network authentication and single sign-on system.
|
|---|
| 33 | Heimdal is a free Kerberos 5 implementation without export restrictions
|
|---|
| 34 | written from the spec (rfc1510 and successors) including advanced features
|
|---|
| 35 | like thread safety, IPv6, master-slave replication of Kerberos Key
|
|---|
| 36 | Distribution Center server and support for ticket delegation (S4U2Self,
|
|---|
| 37 | S4U2Proxy).
|
|---|
| 38 | This package can coexist with MIT Kerberos 5 packages. Hesiod is disabled
|
|---|
| 39 | by default since it is deemed too big a security risk by the packager.
|
|---|
| 40 |
|
|---|
| 41 |
|
|---|
| 42 | %package workstation
|
|---|
| 43 | Summary: Heimdal kerberos programs for use on workstations
|
|---|
| 44 | Group: System Environment/Base
|
|---|
| 45 |
|
|---|
| 46 | %description workstation
|
|---|
| 47 | This package contains Heimdal Kerberos 5 programs and utilities for
|
|---|
| 48 | use on workstations (kinit, klist, kdestroy, kpasswd)
|
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 | %package server
|
|---|
| 52 | Summary: Heimdal kerberos server
|
|---|
| 53 | Group: System Environment/Daemons
|
|---|
| 54 | #Requires: logrotate
|
|---|
| 55 | Provides: heimdal-kdc = %{version}-%{release}
|
|---|
| 56 | Obsoletes: heimdal-kdc < 1.5
|
|---|
| 57 |
|
|---|
| 58 | %description server
|
|---|
| 59 | This package contains the master Heimdal kerberos Key Distribution
|
|---|
| 60 | Center (KDC), admin interface server (admind) and master-slave
|
|---|
| 61 | synchronisation daemons. Install this package if you intend to
|
|---|
| 62 | set up Kerberos server.
|
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 | %package libs
|
|---|
| 66 | Summary: Heimdal kerberos shared libraries
|
|---|
| 67 | Group: System Environment/Libraries
|
|---|
| 68 | Requires(post): info
|
|---|
| 69 | Requires(preun): info
|
|---|
| 70 |
|
|---|
| 71 | %description libs
|
|---|
| 72 | This package contains shared libraries required by several of the other
|
|---|
| 73 | Heimdal packages.
|
|---|
| 74 |
|
|---|
| 75 |
|
|---|
| 76 | %package devel
|
|---|
| 77 | Summary: Header and other development files for Heimdal kerberos
|
|---|
| 78 | Group: System Environment/Libraries
|
|---|
| 79 | Provides: %{name}-static = %{version}-%{release}
|
|---|
| 80 |
|
|---|
| 81 | %description devel
|
|---|
| 82 | Contains files needed to compile and link software using the Heimdal
|
|---|
| 83 | kerberos headers/libraries.
|
|---|
| 84 |
|
|---|
| 85 |
|
|---|
| 86 | %debug_package
|
|---|
| 87 |
|
|---|
| 88 |
|
|---|
| 89 | %prep
|
|---|
| 90 | %scm_setup
|
|---|
| 91 | autoreconf -fvi
|
|---|
| 92 |
|
|---|
| 93 |
|
|---|
| 94 | %build
|
|---|
| 95 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 96 | export LIBS="-lcx -ltinfo"
|
|---|
| 97 | export 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 |
|
|---|
| 116 | export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/lib/roken/.libs
|
|---|
| 117 | make %{?_smp_mflags}
|
|---|
| 118 | make %{?_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
|
|---|
| 127 | rm -rf %{buildroot}
|
|---|
| 128 | make DESTDIR=%{buildroot} install
|
|---|
| 129 | mkdir -p %{buildroot}%{_localstatedir}/heimdal/
|
|---|
| 130 | mkdir -p %{buildroot}%{_sysconfdir}
|
|---|
| 131 | echo "# see man heimdal-kadmind(8)" > %{buildroot}%{_sysconfdir}/heimdal-kadmind.acl
|
|---|
| 132 | ln -s %{_sysconfdir}/heimdal-kadmind.acl %{buildroot}%{_localstatedir}/heimdal/kadmind.acl
|
|---|
| 133 | touch %{buildroot}%{_sysconfdir}/heimdal-slaves
|
|---|
| 134 | ln -s %{_sysconfdir}/heimdal-slaves %{buildroot}%{_localstatedir}/heimdal/slaves
|
|---|
| 135 | install -d -m 700 %{buildroot}%{_localstatedir}/log/heimdal
|
|---|
| 136 | install -d -m 755 %{buildroot}/%{_pkgdocdir}
|
|---|
| 137 | install -p -D -m 644 LICENSE %{buildroot}/%{_pkgdocdir}/LICENSE
|
|---|
| 138 | rm -rf %{buildroot}%{_infodir}/dir
|
|---|
| 139 | # NOTICE: no support for X11
|
|---|
| 140 | rm -f %{buildroot}%{_mandir}/man1/kx.1*
|
|---|
| 141 | rm -f %{buildroot}%{_mandir}/man1/rxtelnet.1*
|
|---|
| 142 | rm -f %{buildroot}%{_mandir}/man1/rxterm.1*
|
|---|
| 143 | rm -f %{buildroot}%{_mandir}/man1/tenletxr.1*
|
|---|
| 144 | rm -f %{buildroot}%{_mandir}/man1/xnlock.1*
|
|---|
| 145 | rm -f %{buildroot}%{_mandir}/man8/kxd.8*
|
|---|
| 146 | # Remove CAT files, they are not needed
|
|---|
| 147 | rm -rf %{buildroot}%{_mandir}/cat*
|
|---|
| 148 | # Remove libtool archives
|
|---|
| 149 | find %{buildroot} -type f -name '*.la' -exec rm -f {} ';'
|
|---|
| 150 |
|
|---|
| 151 | ln -s %{_bindir}/kinit.exe %{buildroot}%{_bindir}/kauth
|
|---|
| 152 |
|
|---|
| 153 | rm %{buildroot}%{_mandir}/man5/qop.5
|
|---|
| 154 | ln -s mech.5.gz %{buildroot}%{_mandir}/man5/qop.5.gz
|
|---|
| 155 |
|
|---|
| 156 | if find %{buildroot} -name '*.mo' | grep .; then
|
|---|
| 157 | %find_lang %{name} --all-name
|
|---|
| 158 | else
|
|---|
| 159 | touch %{name}.lang
|
|---|
| 160 | fi
|
|---|
| 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
|
|---|
| 178 | if [ $1 = 0 ] ; then
|
|---|
| 179 | %{_sbindir}/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|---|
| 180 | fi
|
|---|
| 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
|
|---|